battalion
asked on
enableing server side includes
I just setup a new linux server and for some reason apache isn't allowing server side includes to work. how do I enable this?
ASKER
below is the setup for my httpd.conf file.
NameVirtualHost 10.1.6.201:80
<Directory "/web/Intranet">
AllowOverride All
allow from all
Options +Indexes
</Directory>
<VirtualHost 10.1.6.201:80>
DocumentRoot /web/Intranet
ServerName intranet
</VirtualHost>
NameVirtualHost 10.1.6.201:80
<Directory "/web/Intranet">
AllowOverride All
allow from all
Options +Indexes
</Directory>
<VirtualHost 10.1.6.201:80>
DocumentRoot /web/Intranet
ServerName intranet
</VirtualHost>
I'd put the AllowOverride All in the VirtualHost container, too. Is there an AccessFileName directive?
did you enable
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
in your httpd.conf, too? May be just uncomment both lines in your httpd.conf.
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
in your httpd.conf, too? May be just uncomment both lines in your httpd.conf.
ASKER
they are uncommented
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
I'm so glad to have helped - sorry for the initial miscue!
Look for a line which starts:
AllowOverride (...)
AllowOverride controls which options the .htaccess in directories can override. It can be set to All, or any combination of Options, FileInfo, AuthConfig and Limit.
For example:
AllowOverride All
You can set this by default, or by individual VirtualHost containers.
Additionally, the name of the .htaccess file is controlled by the AccessFileName directive; typically, it's set as follows:
AccessFileName .htaccess