Forum Moderators: phranque

Message Too Old, No Replies

Nginx vs Apache & SSIs

         

Lorel

6:11 pm on Sep 4, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I redesigned a website using SSIs for the includes and then realized the site is on an Nginx server. I'm used to working on an Apache server. From the research I've read Nginx does/doesnot support SSIs although everything else works in htaccess on the website.

Can someone tell me if I can get the SSIs working on Nginx?

Key_Master

6:19 pm on Sep 4, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Does this help?

[wiki.nginx.org...]

Lorel

1:16 pm on Sep 8, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It took several days (site is hosted on iPower = lousy support) but I found out that NginX only supports SSIs if you change all file names to .shtml which isn't an option if you want to keep your ranking.

Key_Master

2:19 pm on Sep 8, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's been a while since I have worked on a Nginx server but I do know it supports ssi for other file types. It might just be an issue with the host. If you can edit the conf file, try the following:

location ~* ^.+\.(php|html|htm)$ {
ssi on;
}