Operating System - HP-UX
1834497 Members
3060 Online
110067 Solutions
New Discussion

Re: Web browser throwing error "You don't have permission to access / on this server."

 
Sutapa Dey
Frequent Advisor

Web browser throwing error "You don't have permission to access / on this server."

We have enabled apache webserver Apache/2.0.54 with php4 but when we try to access the server using the URL http://vsm-dev.hps.infosec.hp.com/....it is throwing an error saying "Forbidden
You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

This is the error from logs
[Wed Jul 30 09:08:27 2008] [error] [client 16.138.32.149] Symbolic link not allowed: /opt/apache/htdocs


Please help.
14 REPLIES 14
Torsten.
Acclaimed Contributor

Re: Web browser throwing error "You don't have permission to access / on this server."

IMHO there is a setting in httpd.conf that prevent the access. You need to check this.

It's a HP internal server, isn't it?

I think you should have internal resources to solve this, right?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sutapa Dey
Frequent Advisor

Re: Web browser throwing error "You don't have permission to access / on this server."

What is IMHO?
Patrick Wallek
Honored Contributor

Re: Web browser throwing error "You don't have permission to access / on this server."

IMHO = In My Humble Opinion
Sutapa Dey
Frequent Advisor

Re: Web browser throwing error "You don't have permission to access / on this server."

It seems there is a problem with symlink because I get this data from the error log :

[Wed Jul 30 09:08:27 2008] [error] [client 16.138.32.149] Symbolic link not allowed: /opt/apache/htdocs

Please help ...Is symlinks not allowed with Apache/2.0.54 ?
Patrick Wallek
Honored Contributor

Re: Web browser throwing error "You don't have permission to access / on this server."

You have to configure Apache appropriately to allow them.

This may be set up in httpd.conf or one of the other configuration files. You need to read through the docs and configure Apache appropriately for your environment.
Torsten.
Acclaimed Contributor

Re: Web browser throwing error "You don't have permission to access / on this server."

Check the httpd.conf file for "FollowSymLinks" and "Deny from all".

Maybe you need to adjust the "DocumentRoot" entry to match the location of your files.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sutapa Dey
Frequent Advisor

Re: Web browser throwing error "You don't have permission to access / on this server."

Hi I have enabled that in the httpd.conf. Please find the entry as below:

DocumentRoot "/opt/apache/htdocs"
#DAVLockDB /tmp/davlock
#SmInitFile "/opt/hpws/apache/conf/WebAgent.conf"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#

Options FollowSymLinks
AllowOverride None
Order allow,deny
#Allow from 15.56.17.41 15.62.176.50 15.78.96.37 15.62.177.25 15.62.180.1
13 15.62.181.222 15.62.176.223 15.62.180.73 15.62.180.123 16.138.48.164 16.138.4
8.125 15.62.176.55 15.62.180.250 15.62.176.194


Options FollowSymLinks
AllowOverride None
Order allow,deny
#Allow from 15.56.17.41 15.62.176.50 15.78.96.37 15.62.177.25 15.62.180.1
13 15.62.181.222 15.62.176.223 15.62.180.73 15.62.180.123 16.138.48.164 16.138.4
8.125 15.62.176.55 15.62.180.250 15.62.176.194
Allow from all



here /opt/apache/htdocs is a symbolic link to /web/opt/apache/htdocs......Is there any user rights permission problem??
Torsten.
Acclaimed Contributor

Re: Web browser throwing error "You don't have permission to access / on this server."

The most easy way to solve this is probably to adjust the document root directory from
/opt/apache/htdocs to /web/opt/apache/htdocs.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sutapa Dey
Frequent Advisor

Re: Web browser throwing error "You don't have permission to access / on this server."

Even after modifying the httpd.conf as per the solution......I am still getting the same error.....
Torsten.
Acclaimed Contributor

Re: Web browser throwing error "You don't have permission to access / on this server."

Did you restart the http server process?

Any ".htaccess" file inside the directory?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sutapa Dey
Frequent Advisor

Re: Web browser throwing error "You don't have permission to access / on this server."

yes I did restart the httpd service and there is no .htaccess file inside the directory
Torsten.
Acclaimed Contributor

Re: Web browser throwing error "You don't have permission to access / on this server."

Did you already un-comment the "Allow" lines?

"#Allow" => "Allow"

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sutapa Dey
Frequent Advisor

Re: Web browser throwing error "You don't have permission to access / on this server."

Yes the required one are uncommented...

I did but it is still the same errors
Torsten.
Acclaimed Contributor

Re: Web browser throwing error "You don't have permission to access / on this server."

Consider to attach the configuration file ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!