| mahmoodn |
02-28-2013 02:44 PM |
Problem in Apache setup
I have installed Apache using this guide http://dev.antoinesolutions.com/apache-server
and defined a VirtualHost like this in /etc/httpd/conf/httpd.conf
Code:
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/html/munin
ServerName 132.216.61.14
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
That folder is not empty:
Code:
[root@srv mahmood]# ls /var/www/html/munin/
disk-day.html network-day.html postfix-month.html printing-week.html processes-week.html system-week.html
disk-month.html network-month.html postfix-week.html printing-year.html processes-year.html system-year.html
disk-week.html network-week.html postfix-year.html problems.html static tiger
disk-year.html network-year.html printing-day.html processes-day.html system-day.html
index.html postfix-day.html printing-month.html processes-month.html system-month.html
Now, when I restart the httpd, there is no complain about virtualhost
Code:
[root@srv mahmood]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.1.5 for ServerName
[ OK ]
However still can not see the web page.
I have to say, I didn't enter localhost in the browser because I am connecting to the remote machine via putty. The machine has two network interfaces, one is internal and the other is connected
to internet.
|