Home Forums OS X Server and Client Discussion Questions and Answers Apache config problems after Security Update 2008-002

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #371944
    drewbles
    Participant

    As 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

    #371945
    khiltd
    Participant

    Do you not have a backup of your previous configuration? It’s been my experience that Apple updates routinely trash those things beyond recognition.

    #371946
    drewbles
    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?

    #371949
    khiltd
    Participant

    What’s in /etc/webperfcache/webperfcache.conf? It sounds like the UI isn’t representing something accurately.

    #372003
    drewbles
    Participant

    Thanks 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!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed