--- Patrick Hsieh <[EMAIL PROTECTED]> wrote: > I made a very simple .htaccess file under /var/www, > which is the default DocumentRoot in the apache of > Debian, but it doesn't work. > > However, if I put it under ~/public_html/, it works! > Is there any configuration problem?
If you add something like this: AccessFileName .htaccess <Directory "/var/www"> AllowOverride All Options None </Directory> Inside the: <VirtualHost> </VirtualHost> Section in your /etc/apache/httpd.conf for the server you wish to effect. The reason it doesn't work by default in / is that you have: DocumentRoot /var/www # # Each directory to which Apache has access, can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # permissions. # <Directory /> Options SymLinksIfOwnerMatch AllowOverride None </Directory> further up in your httpd.conf You will notice that in your /ect/apache/access.conf it now says: # # This is the default file for the AccessConfig directive in httpd.conf. # It is processed after httpd.conf and srm.conf. # # To avoid confusion, it is recommended that you put all of your # Apache server directives into the httpd.conf file and leave this # one essentially empty. # So you shouldn't use access.conf any more. Kind regards, John __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/