Page 1 of 2
HTTP 403 forbidden
Posted: Fri Mar 29, 2013 9:24 am
by devilsguest
Can you guys suggest me what to do. here today I have installed apache 2.2.24 to my linux machine. Username and password are working fine. But, after I login I see the error message saying
HTTP 403 forbidden
help please?
Re: HTTP 403 forbidden
Posted: Fri Mar 29, 2013 9:32 am
by abrist
Have you replaced your nagios vhost file (from the previous thread) with the default one?
What does your httpd error logs look like?
Re: HTTP 403 forbidden
Posted: Fri Mar 29, 2013 9:40 am
by devilsguest
here is my basic config file... but i don't see my log files in my /usr/local/apache2/logs.....this file looks empty
Code: Select all
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin/"
<Directory "/usr/local/nagios/sbin/">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Web Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share/"
<Directory "/usr/local/nagios/share/">
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Web Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Re: HTTP 403 forbidden
Posted: Fri Mar 29, 2013 9:52 am
by abrist
Is the access_log file empty as well?
Re: HTTP 403 forbidden
Posted: Fri Mar 29, 2013 9:54 am
by lmiltchev
Firewall issue, SELinux...?
Re: HTTP 403 forbidden
Posted: Fri Mar 29, 2013 10:03 am
by devilsguest
Code: Select all
[b] iptables -L -n[/b]
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[b] sestatus[/b]
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 18
Policy from config file:targeted
Policy booleans:
allow_syslog_to_console inactive
allow_ypbind inactive
dhcpd_disable_trans inactive
httpd_builtin_scripting active
httpd_disable_trans inactive
httpd_enable_cgi active
httpd_enable_homedirs active
httpd_ssi_exec active
httpd_tty_comm inactive
httpd_unified active
mysqld_disable_trans inactive
named_disable_trans inactive
named_write_master_zonesinactive
nscd_disable_trans inactive
ntpd_disable_trans inactive
pegasus_disable_trans inactive
portmap_disable_trans inactive
postgresql_disable_transinactive
snmpd_disable_trans inactive
squid_disable_trans inactive
syslogd_disable_trans inactive
use_nfs_home_dirs inactive
use_samba_home_dirs inactive
use_syslogng inactive
winbind_disable_trans inactive
ypbind_disable_trans inactive
Re: HTTP 403 forbidden
Posted: Fri Mar 29, 2013 10:10 am
by lmiltchev
Try disabling selinux and see if this is going to change anything:
Re: HTTP 403 forbidden
Posted: Fri Mar 29, 2013 10:16 am
by devilsguest
what does it do and what is this all about....can you please explain me little precise....
Re: HTTP 403 forbidden
Posted: Fri Mar 29, 2013 10:32 am
by lmiltchev
The command is used to disable selinux.
http://www.cyberciti.biz/faq/howto-turn-off-selinux/
Sometimes selinux can cause this type of issues, that's why I wanted you to disable it, and see if you will be able on view the page.
Re: HTTP 403 forbidden
Posted: Fri Mar 29, 2013 10:40 am
by devilsguest
when i start my apache why do i get this error any idea
httpd: Could not open configuration file /usr/local/conf/httpd.conf: No such file or directory