This is a discussion on newbie: allowing access to a user home directory within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I've set up apache 2.0.48 with htdocs as document root. Now I want to also allow ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I've set up apache 2.0.48 with htdocs as document root. Now I want to also allow access to one of the user directories (i.e., http://.../~username) (not all of them, only a specific one). I tried to do this in the httpd.conf file: UserDir public_html <Directory /.../someuser/public_html> AllowOverride none Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS PROPFIND> Otder deny,allow Deny from all </LimitExcept> </Directory> This is taken from the httpd.conf example, I just changed AllowOverride and the directory path, and it should give me read-only access to http://.../~someuser. However, when I try it out, the server says forbidden. Did I miss something? Thanks! luph |
|
|||
|
lupher cypher <lupher.cypher@verizon.net> wrote:
> http://.../~someuser. However, when I try it out, the server says > forbidden. Did I miss something? The directory need to be world-readable and world-searchable, also all the files in it need to be world-readable. Check the error log of your Apache. Davide |
|
|||
|
Davide Bianchi wrote:
> >>http://.../~someuser. However, when I try it out, the server says >>forbidden. Did I miss something? > > > The directory need to be world-readable and world-searchable, also > all the files in it need to be world-readable. Check the error log > of your Apache. Thanks! That was the problem, I didn't know that every directory in the path has to have that permission. It works now :) luph |