You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Michael Schwartzkopff <mi...@multinet.de> on 2006/05/07 13:30:49 UTC

[users@httpd] Problem with SymLink

Hi,

I tried a lot and read all doc and faq, but I cannot find the problem. Perhaps 
I don't see the simple cause anymore.

I want to have linked directory in my web server setup, but the error file 
keeps on telling me:

[Sun May 07 12:45:44 2006] [error] [client 192.168.1.33] Symbolic link not 
allowed: /srv/www/htdocs/mydir

My documentroot is /srv/www/htdocs

It look like this:
drwxr-xr-x  3 root root 120 2006-05-07 12:44 .
drwxr-xr-x  4 root root 128 2006-05-06 07:17 ..
lrwxrwxrwx  1 root root  16 2006-05-07 12:44 mydir -> /usr/local/mydir

/usr/local/mydir is:
drwxr-xr-x   2 root root    72 2006-05-07 12:43 .
drwxr-xr-x  12 root root   296 2006-05-07 12:43 ..
-rw-r-xr-x   1 root www  61752 2006-05-06 13:36 faq.html

The web server is running with uid=wwwrun and gid=www

The httpd.conf is:

<Directory />
        Options All
        Allow from all
</Directory>

<Directory /mydir>
        Options All
        Allow from all
</Directory>

Any idea? Please help. Thanks.

---------------------------------------------------------------------
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] Problem with SymLink

Posted by Michael Schwartzkopff <mi...@multinet.de>.
Am Sonntag, 7. Mai 2006 13:46 schrieb Riemer Palstra:
> On Sun, May 07, 2006 at 01:30:49PM +0200, Michael Schwartzkopff wrote:
> > [Sun May 07 12:45:44 2006] [error] [client 192.168.1.33] Symbolic link
> > not allowed: /srv/www/htdocs/mydir
> >
> > My documentroot is /srv/www/htdocs
>
> [ ... ]
>
> > <Directory />
> >         Options All
> >         Allow from all
> > </Directory>
> >
> > <Directory /mydir>
> >         Options All
> >         Allow from all
> > </Directory>
>
> I don't see any Directory entry for /srv/www/htdocs. You probably want
> one, which allows at least Option FollowSymLinks. Why don't you just
> change the DocumentRoot by the way?

Thanks for the hint. My distribution (SuSE 10.0) "hides" the setup for the 
default server (which I actuall use for these tests) in an other file ... 
greping for DocumentRoot in the config dir lead me to the right direction.

Thanks for the hint.

---------------------------------------------------------------------
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] Problem with SymLink

Posted by Riemer Palstra <ri...@palstra.com>.
On Sun, May 07, 2006 at 01:30:49PM +0200, Michael Schwartzkopff wrote:
> [Sun May 07 12:45:44 2006] [error] [client 192.168.1.33] Symbolic link not 
> allowed: /srv/www/htdocs/mydir
> 
> My documentroot is /srv/www/htdocs

[ ... ]

> <Directory />
>         Options All
>         Allow from all
> </Directory>
> 
> <Directory /mydir>
>         Options All
>         Allow from all
> </Directory>

I don't see any Directory entry for /srv/www/htdocs. You probably want
one, which allows at least Option FollowSymLinks. Why don't you just
change the DocumentRoot by the way?

-- 
Riemer Palstra		     		      Amsterdam, The Netherlands
riemer@palstra.com				 http://www.palstra.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