Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache 2 Vhost

Status
Not open for further replies.

adman4054

IS-IT--Management
Feb 23, 2006
2
US
I'm using named based virtual hosts in Apache2. I have about 20 IPs mainly because of security certificates. For those sites that don't require a cert, I want to run them on one ip address. This box has a common httpd.conf file that lists the sites.


For the sites that have an individual IP address:
<Virtual Host>
000.000.000:80
site directory and so on
</Virtual Host>

For the sites that will be served by a common IP that is not assigned:
<Virtual Host>
*:80
site directory and so on
</Virtual Host>

I receive an Apache message that says the first site utilizing "*:80" will take precedence over the second. I have other servers that use one IP for multiple sites where I don't receive that message. Is it a setting I'm missing?

Thanks
 
*:80 means ALL IPs NOT "the IP that is not assigned to hostnames".

Your virtual hosts without certificates should be using nnn.nnn.nnn.nnn:80 where nnn.nnn.nnn.nnn is the common IP.


In your situation *:80 should ONLY be used on one hostname at the most as a "failover" resolver.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Ah, got it Chris, thanks for taking the time !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top