Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Apr 2004 15:19:58 -0800
From:      "Noah" <admin2@enabled.com>
To:        freebsd-questions@freebsd.org
Subject:   .htaccess in subdir of /usr/home/<username>/public_html
Message-ID:  <20040418231354.M545@enabled.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040418231354.M545>