Languages :: Java :: you don't have permission to access apache server JSP |
|||
| By: Josdeveld |
Date: 19/09/2005 12:31:36 |
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 | 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 | 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 | 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 |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








