LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-31-2010, 05:56 AM   #1
Ericxx
Member
 
Registered: Feb 2010
Posts: 33

Rep: Reputation: 0
403 forbidden error in Centos5


Dear all,

I am hosting an apache service on CentOS5. I have successfully hosted several websites under different user directory. But now I could not access a new wedsite under another user directory. And occurred the "403 forbidden error" saying I donot have permission to access that directory. I have set the SeLinux to httpd_user_content_t, and set the mode "755", and also the httpd.conf file. (should be set ok, otherwise the other websites will fail).

The log file output:
"directory index forbidden by options directive"

Please kindly suggest. Thanks.
Eric
 
Old 08-31-2010, 06:12 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
"Options +Indexes" somewhere around your vhost.
 
Old 08-31-2010, 07:09 AM   #3
Ericxx
Member
 
Registered: Feb 2010
Posts: 33

Original Poster
Rep: Reputation: 0
Thanks. But "Options Index" does not appear in the <Virtual Host> section. But appear in <Directory /> and <var/www/html> and thus should have no effect on the user directory. Any more suggestions? thanks.

Eric
 
Old 08-31-2010, 08:35 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
"directory index forbidden by options directive" seems pretty clear to me. I could be wrong, but did you even try adding it to your vhost config?
 
Old 09-01-2010, 09:21 AM   #5
Ericxx
Member
 
Registered: Feb 2010
Posts: 33

Original Poster
Rep: Reputation: 0
Thanks. But I have no ideas where i put this configuration in httpd.conf. Please suggest.

But I am wondering why the other websites are working fine except this one?

Regards,
Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Forbidden 403 error with my apache entz Linux - Software 2 12-17-2007 05:33 PM
Apache: 403 Forbidden Error daemonkl Linux - Newbie 4 10-14-2007 12:15 PM
403 Forbidden error was encountered pilot11 Linux - Newbie 7 10-18-2006 11:28 AM
HTTP 403 (Forbidden) error lothario Fedora 6 02-08-2005 04:43 AM
apache 403 error forbidden? bulliver Linux - General 4 01-31-2003 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration