Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 15, 2008, 04:32:20 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Struggling with SSI  (Read 662 times)
geolev
Intergalactic Cowboy
*****
Offline Offline

Posts: 74


WWW
« on: October 21, 2007, 08:26:17 AM »

I got this working in one of my other environments but I having trouble getting it to work in a new domain I setup in my VPS.

Server Side Includes.

When I setup the new domain, is specified SSI support in Plesk. I uploaded the site to the httpdocs folder and included a .htaccess file which contains the following:


# GPL 11/04/2006 Added SSI
AddType text/html .shtml
AddHandler server-parsed .shtml

Options +Includes
XBitHack on
RewriteEngine On
Options +FollowSymlinks


Any ideas why this doesn't work. I don't get any errors in the logs and the page is renedered partially. It just doesn't include the bits I'm trying to include like the header or footer.

Thanks,
George
Logged

perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1060



« Reply #1 on: October 24, 2007, 11:47:59 PM »

Hi George,

If you have SSI enabled for your domain in Plesk, you don't need to re-enable them via .htaccess file. Did you try to remove the lines related to SSI from .htaccess and check how the page is rendered after that?

Logged

Kind Regards,
Vlad Artamonov
geolev
Intergalactic Cowboy
*****
Offline Offline

Posts: 74


WWW
« Reply #2 on: October 29, 2007, 07:45:06 PM »

Doh!  Doh

I forgot to make the pages executable. Once I did that, SSI worked perfectly. It is because I am using the XBitHack which is the only way I have been able to get SSI to work.

George
Logged

perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1060



« Reply #3 on: November 01, 2007, 04:44:15 AM »

Hi,

I am glad to hear you have found the cause of this issue.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM