Bluehost.com Web Hosting $6.95

newbie: allowing access to a user home directory

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-17-2003
lupher cypher
 
Posts: n/a
Default newbie: allowing access to a user home directory

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

  #2 (permalink)  
Old 11-17-2003
Davide Bianchi
 
Posts: n/a
Default Re: newbie: allowing access to a user home directory

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
  #3 (permalink)  
Old 11-17-2003
lupher cypher
 
Posts: n/a
Default Re: newbie: allowing access to a user home directory

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0