944,184 Members | Top Members by Rank

Apr 11th, 2005
0

403 Forbidden You don't have permission to access /index.htm on this server.

Expand Post »
I am an Apache/linux newbie. (Trying to learn this technology...)

I setup a Mandrake 10.1 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!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hdmk is offline Offline
1 posts
since Apr 2005
Apr 18th, 2005
0

Re: 403 Forbidden You don't have permission to access /index.htm on this server.

check your permissions... is /home/domain/www readable by apache? Also, is the server & virtHost name really wild-carded? This may be a problem... I usually specify (e.g. for domains I use locally <VitualHost 127.0.0.1:80> (also match <NameVitualHost 127.0.0.1:80> ) ...blah blah.. ServerName mydom.dom

Also, if you're using symbolic links, you my need that option used here
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mediaphyte is offline Offline
19 posts
since Apr 2005
Apr 22nd, 2005
0

Re: 403 Forbidden You don't have permission to access /index.htm on this server.

The previous post was pretty much head on, one thing that I noticed is that if the /home directory does not have the +x flag to everyone, then it may not be able to go into your directory, may want to do chmod +x /home
Moderator
Staff Writer
Reputation Points: 154
Solved Threads: 18
Linux Reject
blud is offline Offline
570 posts
since Apr 2004
Apr 24th, 2005
0

Re: 403 Forbidden You don't have permission to access /index.htm on this server.

Good Answer to his question, I was going to say as well if you are creating a Web server to host people on or even your own stuff.

Please make sure you have Firewall, IPTables, and GRSecurity.

I am hoping you understand what I mean.

Thankx,
Michael :cheesy:
Reputation Points: 10
Solved Threads: 0
Newbie Poster
SuperFlyHost is offline Offline
13 posts
since Apr 2005
May 24th, 2010
0

403 error

change the file permission of index.html to 644
chmod 644 home/domain/www/index.html
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hari100 is offline Offline
1 posts
since May 2010
Dec 16th, 2011
0

Forbidden/You don't have permission to access /

Thanks for the information, it was useful.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kmohanshetty is offline Offline
1 posts
since Dec 2011
Message:
Previous Thread in Linux Servers and Apache Forum Timeline: htaccess rewrite
Next Thread in Linux Servers and Apache Forum Timeline: Install Apachae Server on Vps





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC