Re: apache2 Virtual Host configuration
- From: isaac.newton@xxxxxxxxxxxxxx
- Date: Sun, 01 Jun 2008 21:56:37 +0200
Sean Kim <muzehyun@xxxxxxxxx> wrote:
I got warning message "www.domain.com:80 has no VirtualHosts"
This means that you have defined NameVirtualHost www.domain.com:80
without a VirtualHost definition.
My machine has one IP address and I want to use several subdomains.
Is there a reason, why you should only listen on that IP? If you listen
on all IPs and you got only one IP you're listening on taht IP.
Like that:
# 1 NameVirtualHost Statement for all VirtualHosts
NameVirtualHost *:80
# The ServerName Switch is used to direct Apache to the right Website.
<VirtualHost *:80>
ServerName localhost
ServerAdmin webmaster@localhost
...
</VirtualHost>
<VirtualHost *:80>
ServerName svn.domain.com
...
</VirtualHost>
<VirtualHost *:80>
ServerName www.domain.com
...
</VirtualHost>
Cheers, Isaac
.
- Next by Date: Re: GRUB and reboot
- Next by thread: Re: GRUB and reboot
- Index(es):
Relevant Pages
|