.htaccess in subdir of /usr/home/<username>/public_html

Noah admin2 at enabled.com
Sun Apr 18 16:20:00 PDT 2004


freeBSD 4.9-STABLE
apache 1.3.29


okay I cant figure out  how to get my .htaccess file working properly

here is the configuration in the /usr/local/etc/apache/httpd.conf file:

--- snip ---

<Directory /usr/home/*/public_html>
    AllowOverride All
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec ExecCGI
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>

--- snip ---

here is the .htaccess file in a directory under /usr/local/<username>/public_html

--- snip ---

AuthName "Protected Area"
AuthUserFile /usr/home/<username>/.htpasswd
AuthType Basic
require user <name_omitted>

--- snip ---


here are the permissions of the files

-rw-r--r--  1 <username>  <username>  101 Apr 18 16:09
/usr/home/<username>/public_html/<subdir>/.htaccess

and

-rw-r-----  1 <username>  <username>  21 Apr 18 16:09
/usr/home/<username>/.htpasswd


- Naoh



More information about the freebsd-questions mailing list