[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sheflug] Apache, shtml and php config. problem
On Sun, 2006-08-13 at 18:12 +0100, Ruth Gunstone wrote:
> > You need to a2enmod include for that.
>
> O.k, restarted Apache ... and includes are still not working.
>
> D'oh! :-(
Ah, you probably also need to adjust the config for your site.
I have an shtml site, which has:
<Directory /var/www/site/>
Options Indexes FollowSymLinks MultiViews +Includes
DirectoryIndex index.shtml index.html
AllowOverride All
Order allow,deny
allow from all
</Directory>
That +Includes in the Options is probably what you're missing.
> I've just taken a look in /etc/apache2/sites-available/ - there's just
> the one file: "default". I can't see anything in it that looks as if
> it will enable SSIs.
Each file in sites-available/ should be particular to a site. I usually
name them after the hostname - sites-available/www.example.com or
something - and then you put in the <VirtualHost *> directive and the
rest of the usual stuff.
That way, you don't touch httpd.conf, apache.conf, etc.
a2ensite/a2dissite is then used to turn websites on and off.
Cheers,
Alex.
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.