You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Christopher Malton <cj...@cjmweb.fsnet.co.uk> on 2005/08/15 16:08:33 UTC

[users@httpd] 403 on symlinks

I have encountered a problem with Cricket/Apache.

 

I set everything up in cricket and it works, but now, when I access the
grapher.cgi file, I get a 403 forbidden and in the error log I get the
following:

 

{Date} {Time} [Error] [Client  192.168.2.2] Symbolic link not allowed:
/www/cricket/grapher.cgi

 

My config looks like this:

 

<VirtualHost *:80>

    ServerAdmin webmaster@cjsoftuk.dyndns.org

    DocumentRoot /www/

    ServerName 192.168.2.2

    ErrorLog logs/192.168.2.2_error_log

    CustomLog logs/192.168.2.2_access_log common

    Options FollowSymLinks ExecCGI

    <Directory "/www/cricket">

        Options FollowSymLinks ExecCGI

    </Directory>

    <Directory "/cricket/cricket">

        Options FollowSymLinks ExecCGI

        Allow from all

        Order Allow,Deny

    </Directory>

</VirtualHost>

 

I do not know about how to fix this.  I have had it working before (On a
different PC), but I could not remember the config.

 

Please aid me as to how to make the directory /www/cricket symlink properly
in apache to /cricket/cricket.

 

Chris

 

 

Join the fight against TCPA.  Go to http://www.againsttcpa.com and read
about why it could ruin open source.

 


Re: [users@httpd] 403 on symlinks

Posted by Joshua Slive <js...@gmail.com>.
On 8/15/05, Christopher Malton <cj...@cjmweb.fsnet.co.uk> wrote:
> I added the section
> 
> <Directory /www>
>         Options FollowSymLinks
> </Directory>
> 
> To my config, but got rid of the rest of the <Directory> sections.
> 
> Any more ideas?

Find every Options directive in your config files and make sure they
all include FollowSymLinks.  Then you can carefully remove the ones
that aren't needed, making sure it continues to work.

And make sure you restart the server between config changes.

Joshua.

---------------------------------------------------------------------
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] 403 on symlinks

Posted by Christopher Malton <cj...@cjmweb.fsnet.co.uk>.
I added the section

<Directory /www>
	Options FollowSymLinks
</Directory>

To my config, but got rid of the rest of the <Directory> sections.

Any more ideas?

Chris

-----Original Message-----
From: Joshua Slive [mailto:jslive@gmail.com] 
Sent: 15 August 2005 15:13
To: users@httpd.apache.org
Subject: Re: [users@httpd] 403 on symlinks

On 8/15/05, Christopher Malton <cj...@cjmweb.fsnet.co.uk> wrote:
> Please aid me as to how to make the directory /www/cricket symlink
properly
> in apache to /cricket/cricket. 

You need to allow symlinks in <Directory /www> because this is the
directory that contains the symlink.

Joshua.

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



---------------------------------------------------------------------
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] 403 on symlinks

Posted by Joshua Slive <js...@gmail.com>.
On 8/15/05, Christopher Malton <cj...@cjmweb.fsnet.co.uk> wrote:
> Please aid me as to how to make the directory /www/cricket symlink properly
> in apache to /cricket/cricket. 

You need to allow symlinks in <Directory /www> because this is the
directory that contains the symlink.

Joshua.

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