I added an entry like this in /etc/httpd/conf/httpd.conf

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www/html/munin
    ServerName 192.215.69.104
    ErrorLog logs/dummy-host.example.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>


That folder is not empty:
[root@tiger 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
[root@tiger 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.


Regards,
Mahmood



________________________________
 From: Jason Bronner <[email protected]>
To: Mahmood Naderan <[email protected]> 
Cc: "[email protected]" <[email protected]> 
Sent: Thursday, February 28, 2013 8:47 PM
Subject: Re: Problem testing Apache
 




On Thu, Feb 28, 2013 at 10:12 AM, Mahmood Naderan <[email protected]> wrote:

Hi,
>I have installed Apache using this guide 
>http://dev.antoinesolutions.com/apache-server
>Now, when I enter the ip address in the browser, it says connection timed out.
>
>
>I have to say, I didn't enter localhost in the browser because I am connecting
>to the remote machine via putty.
>
>
>When I restart httpd, I get these messages
>[root@tiger 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
>[Thu Feb 28 20:29:58 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
>                                                           [  OK  ]
>
>
>
>The machine has two network interfaces, one is internal and the other is 
>connected 
>
>to internet.
> 
>Regards,
>Mahmood
>
http://httpd.apache.org/docs/2.2/vhosts/examples.html i think you should look 
at your conf file and add some virtual hosts to it and point them at content 
directories. 

Reply via email to