httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Khine <nor...@khine.net>
Subject Re: [users@httpd] robots.txt and rewrite rule
Date Sat, 24 Jan 2009 15:53:03 GMT
Hi,


Eric Covener wrote:
> On Sat, Jan 24, 2009 at 10:20 AM, Norman Khine <norman@khine.net> wrote:
>> [Sat Jan 24 18:46:57 2009] [error] [client 86.219.32.244] client denied by
>> server configuration: /usr/htdocs
> 
> You don't have a <Directory /usr/htdocs> that allows you to serve
> static files out of the filesystem.  If this is a new DocumentRoot you
> added, copy the <Directory> stanza from your original DocumentRoot, or
> see the default conf.
> 
> minimally:
> <Directory /usr/htdocs>
> order allow,deny
> allow from all
> </directory>
> 

I have this in my vhost entry:

         <Directory "/var/www/localhost/htdocs">
                 Options Indexes FollowSymLinks
                 AllowOverride None
                 Order allow,deny
                 Allow from all
         </Directory>


where the "/var/www/localhost/htdocs" is the root of the apache install 
files i.e.

http://my.ip/robots.txt - works

http://mysite-before-rewrite/robots.txt - gets a 403 error

Should I add the /usr/htdocs folder?

I just tried to sym link it, and got this error:

[Sat Jan 24 19:22:04 2009] [error] [client 86.219.32.244] client denied 
by server configuration: /usr/htdocs/robots.txt
[Sat Jan 24 19:22:07 2009] [error] [client 86.219.32.244] client denied 
by server configuration: /usr/htdocs/robots.txt

# ls -al /usr
lrwxrwxrwx   1 root    root       25 Jan 24 19:21 htdocs -> 
/var/www/localhost/htdocs

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


Mime
View raw message