View Single Post
  #7  
Old 4th February 2007, 15:10
gabrix gabrix is offline
Senior Member
 
Join Date: Sep 2006
Location: Napoli
Posts: 186
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to gabrix Send a message via Yahoo to gabrix Send a message via Skype™ to gabrix
Default

That's how i have set the 3 virtualhost on my apache2
Quote:
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@gabrix.ath.cx

DocumentRoot /var/www/torgab
Quote:
NameVirtualHost 192.168.1.4
<VirtualHost 192.168.1.4>
Quote:
NameVirtualHost 192.168.1.4
<VirtualHost 192.168.1.4>
And i keep on getting this error:
Quote:
root@www:~# apache2ctl restart
[Sun Feb 04 15:02:00 2007] [warn] NameVirtualHost 192.168.1.4:0 has no VirtualHosts
Do i have to name also the port it listen to ?Is it because the default virtualhost has to be mensioned explicitly ?
Still with yhe default virtualhost on *.
Quote:
NameVirtualHost x.gabrix.ath.cx
<VirtualHost x.gabrix.ath.cx>
Quote:
NameVirtualHost www.gabrix.ath.cx
<VirtualHost www.gabrix.ath.cx>
I get the error:
Quote:
root@www:~# apache2ctl restart
[Sun Feb 04 15:13:41 2007] [warn] NameVirtualHost x.gabrix.ath.cx:0 has no VirtualHosts
__________________
http://www.gabrix.ath.cx

Last edited by gabrix; 4th February 2007 at 15:15.
Reply With Quote