You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Manu Kits <ma...@hotmail.com> on 2003/03/06 18:48:24 UTC
Apache-Sym Link NOT Allowed ???????
Here is the snippet of my HTTPD.CONF file:
-------------------------------------------------------------------------------------
DocumentRoot "/usr/local/apache/htdocs"
<Directory />
Options +FollowSymLinks +Indexes
AllowOverride None
</Directory>
<Directory /home/hari>
Options +FollowSymLinks +Indexes
Order allow,deny
Allow from all
</Directory>
<Directory "/usr/local/apache/htdocs">
Options +FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
UserDir public_html
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options +FollowSymLinks +Indexes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
-------------------------------------------------------------------------------------
I have a UNIX SYSTEM USER 'hari' whose HOME dir is /home/hari.
I have also CREATED SYMBOLIC LINK of /home/hari in
/usr/local/apache/htdocs/hari
What I need is that when I type www.hostname.com/hari/index.html, it should
DISPLAY page from /home/hari/public_html/index.html
When I do this I get following message:
------------------------------------------------------------------------------------------------
Forbidden
You don't have permission to access /hari/index.html on this server.
Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.
------------------------------------------------------------------------------------------------
My ERROR_LOG file shows following:
------------------------------------------------------------------------------------------------
[Wed Mar 5 14:38:33 2003] [notice] Accept mutex: pthread (Default: pthread)
[Wed Mar 5 14:38:42 2003] [error] Symbolic link not allowed:
/usr/local/apache/htdocs/hari/
[Wed Mar 5 14:38:42 2003] [error] File does not exist:
/usr/local/apache/htdocs/error_doc.html
------------------------------------------------------------------------------------------------
I tried adding Alias /hari /home/hari/public_html but still NOT working!!!!
Later I tried following (ls command for file, and sym link)
------------------------------------------------------------------------------------------------
root#ls -ld /home/hari/public_html /home/hari
/usr/local/apache2003/htdocs/hari
drwxr-xr-x 4 hari staff 512 Aug 20 2002 /home/hari
drwxr-xr-x 2 root system 512 Mar 05 11:50
/home/hari/public_html
lrwxrwxrwx 1 root system 25 Mar 05 13:34
/usr/local/apache2003/htdocs/hari -> /home/hari/public_html
root#
------------------------------------------------------------------------------------------------
As seen above, home/hari is (home) directory owned by user 'hari' and group
'staff'. I guess that could be one of the reasone it is NOT working...but I
cannot change the owner of directory /home/kithany to ROOT becos it is owned
by USER hari.
Any information on this is appreciated.
Any suggestions is welcome.
THANKS!
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Apache-Sym Link NOT Allowed ???????
Posted by Bill Barker <wb...@wilshire.com>.
First guess: /home/heri isn't globally readable (and, in particular, isn't
readable by the user that Apache is running under). This is the default
setup for a large number of *nix systems.
"Manu Kits" <ma...@hotmail.com> wrote in message
news:F182m1DTvJHNA5FC39n000388d5@hotmail.com...
>
>
>
>
> Here is the snippet of my HTTPD.CONF file:
>
> --------------------------------------------------------------------------
-----------
> DocumentRoot "/usr/local/apache/htdocs"
>
> <Directory />
> Options +FollowSymLinks +Indexes
> AllowOverride None
> </Directory>
>
> <Directory /home/hari>
> Options +FollowSymLinks +Indexes
> Order allow,deny
> Allow from all
> </Directory>
>
>
> <Directory "/usr/local/apache/htdocs">
> Options +FollowSymLinks MultiViews
> AllowOverride All
> Order allow,deny
> Allow from all
> </Directory>
>
> UserDir public_html
>
> <Directory /home/*/public_html>
> AllowOverride FileInfo AuthConfig Limit
> Options +FollowSymLinks +Indexes
> <Limit GET POST OPTIONS PROPFIND>
> Order allow,deny
> Allow from all
> </Limit>
> <LimitExcept GET POST OPTIONS PROPFIND>
> Order deny,allow
> Deny from all
> </LimitExcept>
> </Directory>
>
>
> --------------------------------------------------------------------------
-----------
>
> I have a UNIX SYSTEM USER 'hari' whose HOME dir is /home/hari.
> I have also CREATED SYMBOLIC LINK of /home/hari in
> /usr/local/apache/htdocs/hari
>
> What I need is that when I type www.hostname.com/hari/index.html, it
should
> DISPLAY page from /home/hari/public_html/index.html
>
>
> When I do this I get following message:
> --------------------------------------------------------------------------
----------------------
> Forbidden
> You don't have permission to access /hari/index.html on this server.
>
> Additionally, a 404 Not Found error was encountered while trying to use an
> ErrorDocument to handle the request.
> --------------------------------------------------------------------------
----------------------
>
> My ERROR_LOG file shows following:
> --------------------------------------------------------------------------
----------------------
> [Wed Mar 5 14:38:33 2003] [notice] Accept mutex: pthread (Default:
pthread)
> [Wed Mar 5 14:38:42 2003] [error] Symbolic link not allowed:
> /usr/local/apache/htdocs/hari/
> [Wed Mar 5 14:38:42 2003] [error] File does not exist:
> /usr/local/apache/htdocs/error_doc.html
> --------------------------------------------------------------------------
----------------------
>
> I tried adding Alias /hari /home/hari/public_html but still NOT
working!!!!
>
> Later I tried following (ls command for file, and sym link)
>
> --------------------------------------------------------------------------
----------------------
> root#ls -ld /home/hari/public_html /home/hari
> /usr/local/apache2003/htdocs/hari
> drwxr-xr-x 4 hari staff 512 Aug 20 2002 /home/hari
> drwxr-xr-x 2 root system 512 Mar 05 11:50
> /home/hari/public_html
> lrwxrwxrwx 1 root system 25 Mar 05 13:34
> /usr/local/apache2003/htdocs/hari -> /home/hari/public_html
> root#
> --------------------------------------------------------------------------
----------------------
>
> As seen above, home/hari is (home) directory owned by user 'hari' and
group
> 'staff'. I guess that could be one of the reasone it is NOT working...but
I
> cannot change the owner of directory /home/kithany to ROOT becos it is
owned
> by USER hari.
>
> Any information on this is appreciated.
>
>
> Any suggestions is welcome.
>
> THANKS!
>
>
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Apache-Sym Link NOT Allowed ???????
Posted by Mike Jackson <mj...@cdi-hq.com>.
I could be mistaken, but I don't think you need the "+" in front of the
permissions that you're trying to setup.
--mikej
-=-----
mike jackson
mjackson@cdi-hq.com
> -----Original Message-----
> From: Manu Kits [mailto:manojkithany108@hotmail.com]
> Sent: Thursday, March 06, 2003 9:48 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Apache-Sym Link NOT Allowed ???????
>
>
>
>
>
>
> Here is the snippet of my HTTPD.CONF file:
>
> ------------------------------------------------------------------
> -------------------
> DocumentRoot "/usr/local/apache/htdocs"
>
> <Directory />
> Options +FollowSymLinks +Indexes
> AllowOverride None
> </Directory>
>
> <Directory /home/hari>
> Options +FollowSymLinks +Indexes
> Order allow,deny
> Allow from all
> </Directory>
>
>
> <Directory "/usr/local/apache/htdocs">
> Options +FollowSymLinks MultiViews
> AllowOverride All
> Order allow,deny
> Allow from all
> </Directory>
>
> UserDir public_html
>
> <Directory /home/*/public_html>
> AllowOverride FileInfo AuthConfig Limit
> Options +FollowSymLinks +Indexes
> <Limit GET POST OPTIONS PROPFIND>
> Order allow,deny
> Allow from all
> </Limit>
> <LimitExcept GET POST OPTIONS PROPFIND>
> Order deny,allow
> Deny from all
> </LimitExcept>
> </Directory>
>
>
> ------------------------------------------------------------------
> -------------------
>
> I have a UNIX SYSTEM USER 'hari' whose HOME dir is /home/hari.
> I have also CREATED SYMBOLIC LINK of /home/hari in
> /usr/local/apache/htdocs/hari
>
> What I need is that when I type www.hostname.com/hari/index.html,
> it should
> DISPLAY page from /home/hari/public_html/index.html
>
>
> When I do this I get following message:
> ------------------------------------------------------------------
> ------------------------------
> Forbidden
> You don't have permission to access /hari/index.html on this server.
>
> Additionally, a 404 Not Found error was encountered while trying
> to use an
> ErrorDocument to handle the request.
> ------------------------------------------------------------------
> ------------------------------
>
> My ERROR_LOG file shows following:
> ------------------------------------------------------------------
> ------------------------------
> [Wed Mar 5 14:38:33 2003] [notice] Accept mutex: pthread
> (Default: pthread)
> [Wed Mar 5 14:38:42 2003] [error] Symbolic link not allowed:
> /usr/local/apache/htdocs/hari/
> [Wed Mar 5 14:38:42 2003] [error] File does not exist:
> /usr/local/apache/htdocs/error_doc.html
> ------------------------------------------------------------------
> ------------------------------
>
> I tried adding Alias /hari /home/hari/public_html but still NOT
> working!!!!
>
> Later I tried following (ls command for file, and sym link)
>
> ------------------------------------------------------------------
> ------------------------------
> root#ls -ld /home/hari/public_html /home/hari
> /usr/local/apache2003/htdocs/hari
> drwxr-xr-x 4 hari staff 512 Aug 20 2002 /home/hari
> drwxr-xr-x 2 root system 512 Mar 05 11:50
> /home/hari/public_html
> lrwxrwxrwx 1 root system 25 Mar 05 13:34
> /usr/local/apache2003/htdocs/hari -> /home/hari/public_html
> root#
> ------------------------------------------------------------------
> ------------------------------
>
> As seen above, home/hari is (home) directory owned by user 'hari'
> and group
> 'staff'. I guess that could be one of the reasone it is NOT
> working...but I
> cannot change the owner of directory /home/kithany to ROOT becos
> it is owned
> by USER hari.
>
> Any information on this is appreciated.
>
>
> Any suggestions is welcome.
>
> THANKS!
>
>
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org