I searched for the answer, but perhaps i am too blind to find it.
Hope you can help me.
I have got one Domain and one IP
I want to have my normal domain and a virtual domain
something like this
domain.com
foo.domain.com
So I configured Apache
<VirtualHost *:80>
Servername domain.com
ServerAdmin
webmaster@domain.com
ScriptAlias /cgi-bin/ /var/www/webmaster/cgi-bin/
DocumentRoot /var/www/webmaster/html/
</VirtualHost>
<VirtualHost *:80>
Servername foo.domain.com
ServerAlias pictures
ServerAdmin
webmaster@domain.com
ScriptAlias /cgi-bin/ /var/www/webmaster/cgi-bin/
DocumentRoot /var/www/webmaster/html/foo/
</VirtualHost>
When i start apache i get this
Starting httpd: [Tue May 04 15:17:53 2004] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
Yes I use the same port for both. But how to change it? The other configuration is o.k i get the right website by comment the other other out.
Please help.