Billy Apple

Q: Server 5.0.4 ignores server side includes

I updated my server to install Server app 5.0.4 on Yosemite 10.10.5, and since the update, none of my server side includes are included. The pages are served up, but there's no error messages I can see anywhere. SSI were working perfectly before. The sole change was installing Server app 5.0.4. I've tried rebooting, but that didn't solve the issue, and neither did toggling web services on and off. The sites are all virtual sites, and each sites config file still has includes turned on. Any pointers to where to look?

Posted on Sep 28, 2015 9:55 AM

Close

Q: Server 5.0.4 ignores server side includes

  • All replies
  • Helpful answers

  • by Steven Major,

    Steven Major Steven Major Sep 30, 2015 3:19 PM in response to Billy Apple
    Level 1 (44 points)
    Sep 30, 2015 3:19 PM in response to Billy Apple

    I can't help, but I am seeing the same sort of thing, but I can get mine working if I toggle the services on/off a couple of times.

     

    Sometimes if I check/uncheck the SSI box in server or modify a site's config, it will force it to work again.  I have no idea what is happening and can't find an error in the logs.

     

    Of note, this was happening with the 5.0.3 release too - hoped 5.0.4 would correct it.

  • by Steven Major,

    Steven Major Steven Major Sep 30, 2015 3:37 PM in response to Steven Major
    Level 1 (44 points)
    Sep 30, 2015 3:37 PM in response to Steven Major

    You got me thinking... I hadn't updated my .htaccess file since I created my site that uses SSI - probably Apache1 back in 10.1.  I wondered if I had some legacy commands in there that was causing a problem with the updated Apache.  Here are my directives, current for Apache2:

     

    Options +Includes

    AddType text/html .shtml

    AddOutputFilter INCLUDES .shtml

     

    I use solely .shtml for SSI directives.  If you're using the execute bit on files for shtml, you'd do:

     

    Options +Includes

    XBitHack on


    I toggled web serves off and on a few times and SSI always works after this.  Maybe I was just lucky this time. Something for you to try?

  • by Billy Apple,

    Billy Apple Billy Apple Oct 1, 2015 3:44 AM in response to Steven Major
    Level 1 (10 points)
    Oct 1, 2015 3:44 AM in response to Steven Major

    Thanks for the info. I did notice this with the 5.0.3 update, but first I tackled all the other changes: I have only one IP but a number of virtual hosts. By the time I got virtual hosts working again, SSI was working. I don't use .htaccess files. Instead, each config file for each virtual host adds the Includes options and I use the Server gui to set the default files as either index.html or index.shtml. I don't use the XBitHack.

     

    I saw in another thread (which I didn't see until after I posted), that toggling the SSI setting in Server App does temporarily restore SSI, just like you mention. However, this doesn't persist over reboots for me. I haven't yet upgraded to El Capitan: given the time needed to reconfigure everything from just Server app upgrades (and Calendar is still not working correctly: no web access via http://f.q.d.n.com/webcal and some clients can connect but some can't) I'm waiting before inflicting more damage.

  • by Paul Kleeberg,

    Paul Kleeberg Paul Kleeberg Nov 22, 2015 3:03 PM in response to Billy Apple
    Level 1 (48 points)
    Notebooks
    Nov 22, 2015 3:03 PM in response to Billy Apple

    I am still seeing this with server 5.0.15.  I have to go to the server app and toggle SSI off and on again to fix the problem.  Is there another solution?

     

    Paul

  • by TigerKR,

    TigerKR TigerKR Jan 17, 2016 12:22 PM in response to Billy Apple
    Level 1 (30 points)
    Jan 17, 2016 12:22 PM in response to Billy Apple

    I can't even get ssi to work at all with Server 5.0.15 on OS X 10.11.2. No amount of toggling, restarting, editing http configs will get it to work. My system is an upgrade from OS X Server Mavericks where I previously had XBitHack On. I've wiped the config files for the virtual host for which I want ssi, and I tried creating everything from the Server.app interface. Nothing has worked.