Shyamala Posted July 18, 2007 Share Posted July 18, 2007 The issue is the Virtual host settings in our httpd.conf file does not gets recognised. If I access the Ip mentioned in the Vhost settings I go to the Redhat default page. The paths var, var/www,var/www/html all have 777 access permission. We are using RHEL Version 5 OS Settings in httpd conf******** NameVirtualHost n.n.n.n:80 ServerAdmin n.n.n.n Servername n.n.n.n DocumentRoot "/var/www/html/mysite" **********END of httpd.conf The error that i get in my log is "Directory index forbidden by option directive:var/www/html" Quote Link to comment Share on other sites More sharing options...
steviewdr Posted July 18, 2007 Share Posted July 18, 2007 Try: NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot /var/www/html/mysite ServerName computername.com ErrorLog logs/dummy-host.example.com-error_log CustomLog logs/dummy-host.example.com-access_log common </VirtualHost> Its definately a vhost issue. -steve Quote Link to comment Share on other sites More sharing options...
Shyamala Posted July 19, 2007 Author Share Posted July 19, 2007 Thanks for your support.We solved the issue by setting this Name VirtualHost *:80 <VirtualHost *:80> ServerName n.n.n.n DocumentRoot /www/domain </VirtualHost> We are unable to access url://n.n.n.n from inside the host machine. This problem surfaced yesterday, even before we made the above mentioned settings. What are the reasons for inability to access IP from inside host. Thanks once again for your prompt support. Quote Link to comment Share on other sites More sharing options...
steviewdr Posted July 19, 2007 Share Posted July 19, 2007 "What are the reasons for inability to access IP from inside host." Was this a question you wanted answered? Perhaps you have a firewall on the machine itself preventing access from 127.0.0.1 to n.n.n.n? -steve Quote Link to comment Share on other sites More sharing options...
trq Posted July 20, 2007 Share Posted July 20, 2007 What are the reasons for inability to access IP from inside host. If you using the hostname (or even the WAN ip) your computer will try and resolv the host to ip via DNS ovber the internet. A quck fix is to place... 192.168.1.4 domainname.com (Using your owm ip and domain name of course) into your /etc/hosts file (on Linux). This file also exists in windows but I'm not sure where. Just search for hosts. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.