Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Originally posted by rocketgo i am runing yellow dog linux with apache 2.0 i have looked at apache.org but it did not help me
Well, do you even have mod_ssl installed? Did you install apache yourself or is it the version that came with Yellow Dog? That's why its best to ask more specific questions instead of vague type questions, were not here to really rewrite howto's you know..
Where did you look on their site, I always find it very helpful with great information.
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Open your configuration file httpd.conf and search for:
# To use server-parsed HTML files
#AddType text/html .shtml
#AddHandler server-parsed .shtml
Remove the # before the AddType and commands. The AddType command instructs the server to return text or HTML for the content type whenever it serves a file with the extension .shtml. The AddHandler command instructs Apache to pass the contents of the file to mod_include. From there, it is up to mod_include to handle the response correctly.
Next, add the following directive either in your httpd.conf file, or in a .htaccess file:
You will probably need to apply the Options to the specific directory where you want SSI enabled in order to assure that it gets evaluated last.
<Directory "/your/path to/htdocs">
Options Indexes +Includes MultiViews
Allow from all
This line tells Apache to execute server-side includes in the httpd directory. In order for these changes to take effect, you must restart the server.