You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by LDB <th...@ldb-jab.org> on 2006/08/17 04:59:40 UTC

[users@httpd] Indexing outside of DocumentRoot and Directory

I have the following ..


DocumentRoot "/srv/www/webroot"

<Directory "/srv/www/webroot">

....STUFF

</Directory>


and I am trying to allow

/srv/www/readit to be a directory that ONLY shows
indexes. I have tried

Alias /readit /srv/www/readit
<Directory /readit>
         Options FollowSymLinks Indexes
         AllowOverride None
         Order Allow,Deny
         Allow from all
</Directory>


but it will not work.

Here is the error ..

[Wed Aug 16 19:49:18 2006] [error] [client 225.117.79.221] client denied by 
server configuration: /srv/www/readit

but the permissions are the following,

myserver:/srv/www # ls -al readit
total 20
drwxrwsr-x   4 wwwrun www 4096 2006-08-08 04:15 .
drwxrwsr-x  40 wwwrun web 4096 2006-08-16 16:43 ..


Any ideas?


LDB

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Indexing outside of DocumentRoot and Directory

Posted by Jaqui Greenlees <ja...@yahoo.ca>.
--- LDB <th...@ldb-jab.org> wrote:

> I have the following ..
> 
> 
> DocumentRoot "/srv/www/webroot"
> 
> <Directory "/srv/www/webroot">
> 
> ....STUFF
> 
> </Directory>
> 
> 
> and I am trying to allow
> 
> /srv/www/readit to be a directory that ONLY shows
> indexes. I have tried
> 
> Alias /readit /srv/www/readit
> <Directory /readit>
>          Options FollowSymLinks Indexes
>          AllowOverride None
>          Order Allow,Deny
>          Allow from all
> </Directory>
> 
> 
> but it will not work.
> 
> Here is the error ..
> 
> [Wed Aug 16 19:49:18 2006] [error] [client
> 225.117.79.221] client denied by 
> server configuration: /srv/www/readit
> 
> but the permissions are the following,
> 
> myserver:/srv/www # ls -al readit
> total 20
> drwxrwsr-x   4 wwwrun www 4096 2006-08-08 04:15 .
> drwxrwsr-x  40 wwwrun web 4096 2006-08-16 16:43 ..
> 
> 
> Any ideas?
>

yup, the owner of wwwrun is www, the owner of the
other wwwrun is web.
owners don't match.
that will error automatically.
the owner of the webroot and readit folders needs to
be the same, or accessable by the web server.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org