visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: Java :: you don't have permission to access apache server JSP


By: Josdeveld Belgium  Date: 19/09/2005 12:31:36  English  Points: 20 Status: Answered
Quality : Excellent
I am an Apache/linux newbie. (Trying to learn this technology...)

I setup a Mandrake 10 server, and am trying to setup virtual hosting.

I created a user and a www folder. Set the www folder permission to 777.
I created a virtual server as follows:

<VirtualHost *>
DocumentRoot "/home/domain/www"
ServerName *.domain.com
<Directory "/home/domain/www">
allow from all
Options +Indexes
DirectoryIndex index.html index.htm default.htm
</Directory>
</VirtualHost>

I added the DirctoryIndex line, but get the same error with or without that line.

If I try to browse any file including the root site, I get the following error message:

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.

I'm assuming that this is a permission based issue, however I have 777 permissions set, so it should work. Any help would be appreciated!

Thanks!
By: VGR Date: 19/09/2005 12:34:06 English  Type : Comment
probably a permissions problem at the OS level. Check all levels from / to your /home/domain/www for readability by the unix user "apache" (given your server uses a user named "apache" ;-)
By: Bernard Date: 19/09/2005 12:35:59 English  Type : Assist
I would almost bet that the error is related to permissions. Try
this. Navigate to your web hosting partition. Use the chmod command to
set the appropriate permissions for the folder that holds all your web
pages, images, etc.

Here is the command: chmod -R 755 Folder_Name


If that didn't work, make sure you have your httpd.conf file configured
properly. I would look in the section where you give all your
directories permissions, like NOEXEC, INCLUDES...

Also, if you are setting this up as a Virtual site, make sure your
virtual host container is set properly.

And last but not least(probably isn't the problem), if you are running
IPCHAINS or IPTABLES, make sure your script allows for any source
address to hit port 80 at your WWW server address (I.P.)

Hope this helps,
By: VGR Date: 19/09/2005 12:40:10 English  Type : Assist
well said. I must add that if you've SElinux or the same kind of "security package" installed on your box, then it may be a good idea to deactivate it the time needed for you to solve the access problem.

It really seems this is a pure OS problem (given the error on retrieving an ErrorDocument ;-)

You should be able to solve it in some seconds.

Check also your VirtualHost section, I don't like too much the wildcard in there. If using Apache, use the "-k" option to proofcheck the configuration file.

Regards

Do register to be able to answer

EContact
browser fav
page generated in 96.720930 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page