Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm new to this and have (for me, at least) a bit of a strange problem. I've set up SSI on my home apache2 server, adding some lines to /etc/apache2/apache2.conf (on Debian). The strange thing its working fine if I go to http://myip/index.html or http://myip/stuff.html, but when I go to just http://myip/ it doesn't include the text (the include command shows as a comment in the page source). I thought a request to http://myip/ just pulled the index.html file so am unsure what's going on... By the way, I have the same results using AddOutputFilterByType INCLUDES .html and XBitHack on.

Any help greatly appreciated

Phil

P.S. Just so you know what's happening, here's the site: http://86.7.112.192/ which doesn't parse the includes, and http://86.7.112.192/index.html which does.

share|improve this question
1  
My guess: the first format 86.7.112.192 becomes GET /, it does not contain .html ending, thus it's not parsed for SSI. –  ott-- Feb 5 '13 at 14:05
    
That's what someone else has said also, any ideas how to get around it? –  user2043088 Feb 5 '13 at 15:57
    
You could try with a rewrite rule in .htaccess rewrite ^/$ /index.html permanent;. –  ott-- Feb 5 '13 at 16:14
    
hmmm, good thinking. i tried but no cigar. might just be something way over my head in the conf. I'll keep plugging away. Thanks for your suggestion (got me to learn about mod_rewrite :)) –  user2043088 Feb 5 '13 at 23:31
    
have you set RewriteEngine on? too? –  ott-- Feb 6 '13 at 9:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.