Re: symbolic link to public_html folders

On 21.09.2010 22:18, J Greenbaum wrote:
> Hi,
>
> I'm having trouble configuring apache so that the public_html folder can
> be a symbolic link to another directory. On my Ubuntu 10.04
> installation, my userdir.conf file includes the 'FollowSymLinks' option
> for the /home/*/public_html directories. However, if I try to access my
> user directory from a browser 'http://localhost/~username', I get a 403
> Forbidden error. In the apache error log, it says:
>
> Symbolic link not allowed or link target not accessible:
> /home/username/public_html
>
> I have ruled out the possibility that this is a permission problem since
> I can access the directory directly rather than through the symbolic link.
>
> Any ideas would be appreciated.

Could it be "SymLinksIfOwnerMatch":

http://httpd.apache.org/docs/current/mod/core.html#options

Regards,

Rainer

------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Rainer Jung [ Do, 23 September 2010 17:53 ] [ ID #2048456 ]

Re: symbolic link to public_html folders

--0016364592e09866c80490efab6a
Content-Type: text/plain; charset=UTF-8

I tried that one too, but no luck. Thanks for the response.

-Jason

On Thu, Sep 23, 2010 at 8:53 AM, Rainer Jung <rainer.jung [at] kippdata.de>wrote:

> On 21.09.2010 22:18, J Greenbaum wrote:
>
>> Hi,
>>
>> I'm having trouble configuring apache so that the public_html folder can
>> be a symbolic link to another directory. On my Ubuntu 10.04
>> installation, my userdir.conf file includes the 'FollowSymLinks' option
>> for the /home/*/public_html directories. However, if I try to access my
>> user directory from a browser 'http://localhost/~username<http://localhost/%7Eusername>',
>> I get a 403
>> Forbidden error. In the apache error log, it says:
>>
>> Symbolic link not allowed or link target not accessible:
>> /home/username/public_html
>>
>> I have ruled out the possibility that this is a permission problem since
>> I can access the directory directly rather than through the symbolic link.
>>
>> Any ideas would be appreciated.
>>
>
> Could it be "SymLinksIfOwnerMatch":
>
> http://httpd.apache.org/docs/current/mod/core.html#options
>
> Regards,
>
> Rainer
>

--0016364592e09866c80490efab6a
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I tried that one too, but no luck.=C2=A0 Thanks for the response.<br><br>-J=
ason<br><br><div class=3D"gmail_quote">On Thu, Sep 23, 2010 at 8:53 AM, Rai=
ner Jung <span dir=3D"ltr"><<a href=3D"mailto:rainer.jung [at] kippdata.de">r=
ainer.jung [at] kippdata.de</a>></span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde=
r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><=
div class=3D"h5">On 21.09.2010 22:18, J Greenbaum wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde=
r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
I'm having trouble configuring apache so that the public_html folder ca=
n<br>
be a symbolic link to another directory. =C2=A0On my Ubuntu 10.04<br>
installation, my userdir.conf file includes the 'FollowSymLinks' op=
tion<br>
for the /home/*/public_html directories. =C2=A0However, if I try to access =
my<br>
user directory from a browser '<a href=3D"http://localhost/%7Eusername"=
target=3D"_blank">http://localhost/~username</a>', I get a 403<br>
Forbidden error. =C2=A0In the apache error log, it says:<br>
<br>
Symbolic link not allowed or link target not accessible:<br>
/home/username/public_html<br>
<br>
I have ruled out the possibility that this is a permission problem since<br=
>
I can access the directory directly rather than through the symbolic link.<=
br>
<br>
Any ideas would be appreciated.<br>
</blockquote>
<br></div></div>
Could it be "SymLinksIfOwnerMatch":<br>
<br>
<a href=3D"http://httpd.apache.org/docs/current/mod/core.html#options" targ=
et=3D"_blank">http://httpd.apache.org/docs/current/mod/core. html#options</a=
><br>
<br>
Regards,<br><font color=3D"#888888">
<br>
Rainer<br>
</font></blockquote></div><br>

--0016364592e09866c80490efab6a--
J Greenbaum [ Do, 23 September 2010 18:22 ] [ ID #2048457 ]

RE: symbolic link to public_html folders

--_c10b7250-6284-4e03-bcbe-c0369e19b06c_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Hi Jason=2C
What error you are getting in error_logs??
Did you enabled following:
+FollowSymlinksUserDir disabled
UserDir enabled user1 user2 user3 ???
Regards=2CManoj Samtani

From: jgbaum [at] gmail.com
Date: Thu=2C 23 Sep 2010 09:22:17 -0700
To: rainer.jung [at] kippdata.de
CC: users [at] httpd.apache.org
Subject: Re: [users [at] httpd] symbolic link to public_html folders

I tried that one too=2C but no luck. Thanks for the response.

-Jason

On Thu=2C Sep 23=2C 2010 at 8:53 AM=2C Rainer Jung <rainer.jung [at] kippdata.de=
> wrote:


On 21.09.2010 22:18=2C J Greenbaum wrote:


Hi=2C



I'm having trouble configuring apache so that the public_html folder can

be a symbolic link to another directory. On my Ubuntu 10.04

installation=2C my userdir.conf file includes the 'FollowSymLinks' option

for the /home/*/public_html directories. However=2C if I try to access my

user directory from a browser 'http://localhost/~username'=2C I get a 403

Forbidden error. In the apache error log=2C it says:



Symbolic link not allowed or link target not accessible:

/home/username/public_html



I have ruled out the possibility that this is a permission problem since

I can access the directory directly rather than through the symbolic link.



Any ideas would be appreciated.




Could it be "SymLinksIfOwnerMatch":



http://httpd.apache.org/docs/current/mod/core.html#options



Regards=2C



Rainer


=

--_c10b7250-6284-4e03-bcbe-c0369e19b06c_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
..hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Tahoma
}
--></style>
</head>
<body class=3D'hmmessage'>
Hi Jason=2C<div><br></div><div>What error you are getting in error_logs??</=
div><div><br></div><div>Did you enabled following:</div><div><br></div><div=
>+FollowSymlinks</div><div><span class=3D"Apple-style-span" style=3D"font-f=
amily: 'Courier New'=2C Courier=2C monospace=3B line-height: 14px=3B ">User=
Dir disabled<br>UserDir enabled user1 user2 user3  =3B ???</span></div>=
<div><font class=3D"Apple-style-span" face=3D"'Courier New'=2C Courier=2C m=
onospace"><span class=3D"Apple-style-span" style=3D"line-height: 14px=3B"><=
br></span></font></div><div><font class=3D"Apple-style-span" face=3D"'Couri=
er New'=2C Courier=2C monospace"><span class=3D"Apple-style-span" style=3D"=
line-height: 14px=3B">Regards=2C</span></font></div><div><font class=3D"App=
le-style-span" face=3D"'Courier New'=2C Courier=2C monospace"><span class=
=3D"Apple-style-span" style=3D"line-height: 14px=3B">Manoj Samtani<br></spa=
n></font><br><hr id=3D"stopSpelling">From: jgbaum [at] gmail.com<br>Date: Thu=2C=
23 Sep 2010 09:22:17 -0700<br>To: rainer.jung [at] kippdata.de<br>CC: users [at] htt=
pd.apache.org<br>Subject: Re: [users [at] httpd] symbolic link to public_html fo=
lders<br><br>I tried that one too=2C but no luck. =3B Thanks for the re=
sponse.<br><br>-Jason<br><br><div class=3D"ecxgmail_quote">On Thu=2C Sep 23=
=2C 2010 at 8:53 AM=2C Rainer Jung <span dir=3D"ltr"><=3B<a href=3D"mailt=
o:rainer.jung [at] kippdata.de">rainer.jung [at] kippdata.de</a>>=3B</span> wrote:<=
br>

<blockquote class=3D"ecxgmail_quote" style=3D"padding-left:1ex"><div><div><=
/div><div class=3D"h5">On 21.09.2010 22:18=2C J Greenbaum wrote:<br>
<blockquote class=3D"ecxgmail_quote" style=3D"padding-left:1ex">
Hi=2C<br>
<br>
I'm having trouble configuring apache so that the public_html folder can<br=
>
be a symbolic link to another directory.  =3BOn my Ubuntu 10.04<br>
installation=2C my userdir.conf file includes the 'FollowSymLinks' option<b=
r>
for the /home/*/public_html directories.  =3BHowever=2C if I try to acc=
ess my<br>
user directory from a browser '<a href=3D"http://localhost/~username" targe=
t=3D"_blank">http://localhost/~username</a>'=2C I get a 403<br>
Forbidden error.  =3BIn the apache error log=2C it says:<br>
<br>
Symbolic link not allowed or link target not accessible:<br>
/home/username/public_html<br>
<br>
I have ruled out the possibility that this is a permission problem since<br=
>
I can access the directory directly rather than through the symbolic link.<=
br>
<br>
Any ideas would be appreciated.<br>
</blockquote>
<br></div></div>
Could it be "SymLinksIfOwnerMatch":<br>
<br>
<a href=3D"http://httpd.apache.org/docs/current/mod/core.html#options" targ=
et=3D"_blank">http://httpd.apache.org/docs/current/mod/core. html#options</a=
><br>
<br>
Regards=2C<br><font color=3D"#888888">
<br>
Rainer<br>
</font></blockquote></div><br></div> </body>
</html>=

--_c10b7250-6284-4e03-bcbe-c0369e19b06c_--
Manoj Samtani [ Do, 30 September 2010 06:31 ] [ ID #2048516 ]
Webserver » gmane.comp.apache.user » Re: symbolic link to public_html folders

Vorheriges Thema: "proxy_balancer" | stickysession
Nächstes Thema: ${path} variable