On Sat, Feb 15, 2003 at 12:08:25PM -0600, Timothy Bolz wrote:
> I'm running Debian 3.0 and I'm trying to set up a webpage in my home 
> directory /home/timothy/public_html/index.html but when I try to access it 
> with http://localhost/~timothy/ it gives me a Forbidden You don't have 
> permission to access /~timothy/public_html/newindex.html on this server.  I 
> set the permissions on /public_html as drwxr-xr-x.   There is nothing on the 
> Debian localhost page which says how to do this  all it say is "  * User 
> directories are enabled, and user documents will be looked for in the 
> public_html directory of the users' homes. These dirs should be under /home, 
> and users will not be able to symlink to files they don't own.".  There is 
> nothing on how to make it accesible.  Do I need to add something to 
> /etc/groups?  
> 
> Thanks
> Tim

What are the permissions of your home directory?  This must be at least
o+x  (ie anything AND 001, like 701 or 751 or 755).  Without this
www-data can't descend into your public_html dir.

chmod o+x ~

I wonder why it says you don't have permission to access
..../newindex.html  Does your index.html file reference newindex.html?
Is that a typo?  Do you have anything in httpd.conf that references
newindex.html?

Also you need this in your httpd.conf, which should already be there in
debian.

# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
ExecCGI
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        Order deny,allow
        Deny from all
    </Limit>
</Directory>

Cory
_______________________________________________
Eug-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug

Reply via email to