I've been trying to get SSI's enable on a server I've been working on. It is an Ubuntu 10.10 Server running Apache2, PHP5 and MySQL. The default page loads correctly and soon I will need to deploy it with html includes available. No amount of configuration on my part has fixed this. These are my notable config files. Does anybody see what I am doing wrong? And I am restarting the apache server after changes to the config files:
From /etc/apache2/apache2.conf
/etc/apache2/sites-available/defaultCode:AccessFileName .htaccess # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy all </Files>
/var/www/.htaccessCode:<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews +Includes AllowOverride All Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride All Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch +Includes Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks +Includes AllowOverride All Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost>
My index.html pageCode:AddType text/html .shtml .html .htm AddHandler server-parsed .shtml .html .htm Options Indexes FollowSymLinks Includes
The .htaccess file does work properly because when I put gibberish into it I receive a 500 Internal Server Error. Can anybody see what I'm missing? This is a fresh LAMP install. I ran into the same problem getting it up and running on a Zend Server as well.Code:<html><body><h1>It works!</h1> <p>This is the default web page for this server.</p> <p>The web server software is running but no content has been added, yet.</p> <!--#include virtual="/footer.shtml" --> </body></html>


Reply With Quote
I can live with that compared to all the problems in Ubuntu (and other distro's) I kept running into.

Bookmarks