PDA

View Full Version : htaccess changes


BriX
25th February 2006, 23:21
I need to change AllowOverride option to All. I edited the allowoverride lines in httpd.conf but after a server restart when I try and view website another /var/www/web4/web/.htaccess: Options not allowed here line appears. The site is a phpnuke install. Is there some place I can find information on what conf files ISPconfig uses for what?

till
26th February 2006, 09:52
ISPConfig uses only the httpd.conf, you will have to change the section:

<Directory /home/www/*/web>
Options +Includes +FollowSymlinks -Indexes
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

to:

<Directory /home/www/*/web>
Options +Includes +FollowSymlinks -Indexes
AllowOverride All
Order allow,deny
Allow from all

<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

falko
26th February 2006, 16:29
ISPConfig uses only the httpd.conf, you will have to change the section:

<Directory /home/www/*/web>
Options +Includes +FollowSymlinks -Indexes
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

to:

<Directory /home/www/*/web>
Options +Includes +FollowSymlinks -Indexes
AllowOverride All
Order allow,deny
Allow from all

<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

In your case it would be:

<Directory /var/www/*/web>
Options +Includes +FollowSymlinks -Indexes
AllowOverride All
Order allow,deny
Allow from all

<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>