View Single Post

  #1 (permalink)  
Old 09-16-2005
listrecv@gmail.com
 
Posts: n/a
Default Is it possible to have a "default virtual" host?

I'd like to set up a "Default Virtual Host" that will apply to all IP's
on a certain port, *except* for IP's with explicit virtual hosts.

EG:

<VirtualHost 10.1.1.1:8080>
....
</VirtualHost>

<VirtualHost 10.1.1.2:8080>
....
</VirtualHost>

<VirtualHost 10.1.1.3:8080>
....
</VirtualHost>

<VirtualHost _default_:8080>
# This should take all other IP's, like 10.1.1.4, 10.1.1.5, etc.
....
</VirtualHost>

I can't seem to get this to work. Is it possible? (This is different
from one nonvirtual host, and many virtual hosts - since they are
listening on different ports, I want them to all be virtual - the main
site on port 80 is different then the one on 8080.)

Any apache experts capable of solving this one?