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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: LDB [mailto:thesource@xxxxxxxxxxx] 
> Sent: Thursday, August 17, 2006 5:00 AM
> To: users@xxxxxxxxxxxxxxxx
> Subject: [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

There are a couple of mistakes in the config, read on:

> 
> Alias /readit /srv/www/readit

So that means that the URL-path "/readit" takes you to the filesystem
path "/srv/www/readit". OK...

> <Directory /readit>

Problem - "Directory" takes a filesystem path as its argument, not an
URL-path. Here, you are assigning directives to a directory called
"/readit", which doesn't exist. So nothing in this container does
anything. You should have:

<Directory /srv/www/readit>

or

<Location /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

This means what it says "client denied by server configuration" -
nothing to do with permissions (that's a different error, "file
permissions deny server access").

I suspect you have (quite rightly) a "Deny from all" directive on the
whole filesystem and then an "Allow from all" from the docroot down. So
your request for a file in /srv/www/readit fails because it's outside
the docroot. If you just fix the path in the Directory above, it should
work...

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
> 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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux