Re: robots.txt and rewrite rule

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

 



Hi,


Eric Covener wrote:
On Sat, Jan 24, 2009 at 10:20 AM, Norman Khine <norman@xxxxxxxxx> 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@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