LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   403 forbidden error in Centos5 (https://www.linuxquestions.org/questions/linux-server-73/403-forbidden-error-in-centos5-829483/)

Ericxx 08-31-2010 05:56 AM

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

AlucardZero 08-31-2010 06:12 AM

"Options +Indexes" somewhere around your vhost.

Ericxx 08-31-2010 07:09 AM

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

AlucardZero 08-31-2010 08:35 AM

"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?

Ericxx 09-01-2010 09:21 AM

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


All times are GMT -5. The time now is 11:21 PM.