Home › Forums › OS X Server and Client Discussion › Questions and Answers › Apache config problems after Security Update 2008-002
- This topic has 4 replies, 2 voices, and was last updated 17 years ago by
drewbles.
-
AuthorPosts
-
March 20, 2008 at 12:04 am #371944
drewbles
ParticipantAs a fairly novice OS X Server admin I’m a little stumped on this one.
I’ve installed the 2008-002 security update onto 10.4.11 server yesterday and it appears to have broken my apache config pretty badly.
I have quite a few URL’s that people use on my server that they don’t put the trailing / on (ie http://www.domain.com/here) and apache is not happy.
It would appear on closer inspection that the performance cache port, 16080, has been substituted in the virtual host directives *everywhere* even though it’s not enabled anywhere including the server admin tool.
If I attempt to access the site without the trailing slash, I am redirected to http://www.domain.com:16080/here/ which obviously is not what i want. I’ve attempted to change the *:16080 entries in all the virtual host configs and this just breaks things even more.
Has anyone seen any similar problems with the latest security update? Any assistance appreciated.
Drew
March 20, 2008 at 1:24 am #371945khiltd
ParticipantDo you not have a backup of your previous configuration? It’s been my experience that Apple updates routinely trash those things beyond recognition.
March 20, 2008 at 1:30 am #371946drewbles
Participant[QUOTE][u]Quote by: khiltd[/u][p]Do you not have a backup of your previous configuration? It’s been my experience that Apple updates routinely trash those things beyond recognition. [/p][/QUOTE]
Alas no. I should have read the update notes to see what it was updating. That’s the hugely annoying part, no backup of this.
The fact that I change it to a random port in server admin (say 801) then check the files in /private/etc/httpd/sites and it shows *:801, then stop/start apache, then change back to 80, save, stop/start and the config file has gone to *:16080 again.
Anyone had the same problem and found an easy fix?
March 20, 2008 at 5:51 pm #371949khiltd
ParticipantWhat’s in /etc/webperfcache/webperfcache.conf? It sounds like the UI isn’t representing something accurately.
March 25, 2008 at 11:16 pm #372003drewbles
ParticipantThanks for that. I checked the perfcache config and saw some strangeness. I have around 15 vhosts in the config, some of which are disabled. I noticed that two of the disabled hosts had performance caching enabled, but were commented out of the config file due to the hosts being disabled in apache. Once I removed the performance caching option from the sites in the Server Admin, they disappeared from the perfcache config. I restarted the apache server and it’s now all working. So for some reason when the perf cache config had a disabled host with performance caching enabled, it was putting it on all vhosts regardless when people tried to go to a page that used mod_rewrite to fix the trailing slash issue.
Strangeness all around but your help was invaluable. Thanks again!
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed