Someone have idea how can i set my httpd.conf that it'll support .htaccess ?
apache httpd
Collapse
X
-
Tags: None
-
-
-
Sometimes it can quite difficult to persuade a system to let you create or edit a file with such a name. For this reason, you can change the name that Apache will use when looking for these per-directory config files by using the AccessFileName directive in your server's httpd.conf file. For instance,
AccessFileName ht.acl
will cause Apache to look for files named ht.acl instead of .htaccess. They'll be treated the same way, though, and they're still called '.htaccess files' for convenience.
use:
AllowOverride AuthConfig FileInfo Indexes Limits Options
AllowOverride AllComment
-
my httpd config :
<VirtualHost 65.242.24.66>
ServerAdmin [email protected]
DocumentRoot /home/domainname/www
ServerName domainname.com
ErrorLog logs/domainname.com-error_log
CustomLog logs/domainname.com-access_log common
AddHandler cgi-script .cgi
AccessFileName accessfile
ScriptAlias /cgi-bin/ "/home/domainname/www/cgi-bin/"
<Directory "/home/domainname/www/cgi-bin">
Options None
Order allow,deny
Allow from all
AllowOverride All
</Directory>
<Directory "/home/domainname/www">
Options ExecCGI
</Directory>
ScriptAlias /index.html /home/domainname/www/cgi-bin/tm3/m
</VirtualHost>
And are is my accessfile :
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.domainname.com.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domainname.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://65.242.24.66.*$ [NC]
RewriteRule .*([jJ][pP][eE][gG]|[jJ][pP][gG]|[gG][iI][fF])$ [F]
ErrorDocument 302 http://www.domainname.com/
ErrorDocument 400 http://www.domainname.com/
ErrorDocument 401 http://www.domainname.com/
ErrorDocument 403 http://www.domainname.com/
ErrorDocument 404 http://www.domainname.com/
ErrorDocument 408 http://www.domainname.com/
ErrorDocument 500 http://www.domainname.com/Comment


Comment