Fluffy654 Posted August 26, 2008 Share Posted August 26, 2008 First off I am a complete noob when it comes to doing anything with servers. I'm just beginning to learn today because I need to start adding SSI to my websites. I apologise in advance if I am making a really obvious mistake. To test this, I have successfully installed apache and have read the official documentation on how to get SSI functionality working. Unfortunately, I can't get it to work at all. After reading tons of threads on this matter on various forums, I am still short of an answer. Being a complete noob, I am not used to editing the httpd.conf and so I think I have probably just screwed this up somehow. My test directory looks like this: index.shtml menu.html index.shtml contains <!--#include virtual="/menu.html" --> menu.html only contains html content without body, head or html tags The relevant parts of my httpd.conf look like this: Options Indexes FollowSymLinks Includes ... AddType text/html .shtml AddOutputFilter INCLUDES .shtml However, when I go to http://localhost/ it brings up a directory list instead of automatically opening index.shtml (as it would if it were index.html) and when I click on index.shtml, the page is rendered in code rather than content. I have also tried changing all the ".shtml"s to ".html"s and this renders the content of index.html correctly but ignores the SSI. Thanks very much for any help that anyone can provide! Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted August 26, 2008 Share Posted August 26, 2008 To get index.shtml to be automatically served when you browse to a folder, you need to add it to the DirectoryIndex statement. Also, have you stopped and started your web server to get any changes made to httpd.conf to take effect? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.