Link to home
Create AccountLog in
Avatar of battalion
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?
Avatar of periwinkle
periwinkle
Flag of United States of America image

You should look into your Apache configuration file (httpd.conf).

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
Avatar of battalion
battalion

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>
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.
they are uncommented
ASKER CERTIFIED SOLUTION
Avatar of periwinkle
periwinkle
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
I'm so glad to have helped - sorry for the initial miscue!