How do I fix...port overlap on Virtualhosts under Apache 1.3.22
Figured someone would have run into this problem but my searches were fruitless.
I am attempting to set up multiple servers on my home machine for development purposes using Apache 1.3.22 using the following virutalhost definition:
-----
ServerAdmin webmaster@shrum.net
DocumentRoot "d:/data/websites/local.shrum.net"
ServerName local.shrum.net
ErrorLog logs/shrum.net-error.log
CustomLog logs/shrum.net-access.log common
ServerAdmin webmaster@soocharming.com
DocumentRoot "d:/data/websites/local.soocharming.com"
ServerName local.soocharming.com
ErrorLog logs/soocharming.com-error.log
CustomLog logs/soocharming.com-access.log common
-----
I figure I must be forgetting something because I'm getting the error:
VirtualHost overlap on port 80, the first has precedence
Any attempts to call the latter refers me to the first virtual host (which is by Apache design). What do I need to do/change in order to have additional hosts (besides the virtualhost setting) to avoid this problem?
TIA
Sean Shrum
sean@shrum.net
sean_shrum@hotmail.com
Mark Hensler posted this at 22:40 — 26th April 2002.
He has: 4,048 posts
Joined: Aug 2000
try this:
<VirtualHost shrum.net:*>
ServerAdmin <a href="mailto:webmaster@shrum.net" class="bb-email">webmaster@shrum.net</a>
DocumentRoot "d:/data/websites/local.shrum.net"
ServerName local.shrum.net
ErrorLog logs/shrum.net-error.log
CustomLog logs/shrum.net-access.log common
</VirtualHost>
<VirtualHost soocharming.com:*>
ServerAdmin <a href="mailto:webmaster@soocharming.com" class="bb-email">webmaster@soocharming.com</a>
DocumentRoot "d:/data/websites/local.soocharming.com"
ServerName local.soocharming.com
ErrorLog logs/soocharming.com-error.log
CustomLog logs/soocharming.com-access.log common
</VirtualHost>
Mark Hensler
If there is no answer on Google, then there is no question.
S_Shrum posted this at 01:58 — 27th April 2002.
They have: 27 posts
Joined: Apr 2001
I foobar-ed. Forgot to unrem the option for name-based hosting. This seemed to fix things.
TIA
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.