Barney Boisvert wrote:
> ServerName sets the name for the server (as you'd expect).  There can
> be only one per server.  ServerAlias sets up additional non-canonical
> names for the server that it will pay attention to.  There can be any
> number per server.
>
> You have to have a Listen for every ip/port you want to respond to.
> You'll have to have a NameVirtualHost for every ip/port that you want
> to serve multiple vhosts from, based on host headers.
>
> cheers,
> barneyb
We have tried to implement this and we are not getting the desired 
results.  Our goal is to have 5 virtual hosts on our server located at 
134.186.118.85 we would like each virtual host to respond to an ip:port 
as well as a DSN host header.  All the IP:Ports are working and the 
proper web site is returned but none of the host headers get us 
anywhere, they just turn up the default apache web server page.  I.E. 
http://134.186.118.85:10050/ and http://apps.cdpr.ca.gov/ should return 
the same page which the IP:Port correctly does.

IP:PORT to DSN Host Header relationship
--------------------------------------------
134.186.118.85:10010 appprod-admin
134.186.118.85:10020 calpip-staging
134.186.118.85:10030 calpip.cdpr.ca.gov [*NOTE*: this domain name is 
actually in use and point to another server at this time]
134.186.118.85:10040 stagesite
134.186.118.85:10050 apps.cdpr.ca.gov

Here are some highlights for our httpd.conf file that I believe are 
relevant, let me know if any other piece would help.
Listen 134.186.118.85:10010
Listen 134.186.118.85:10020
Listen 134.186.118.85:10030
Listen 134.186.118.85:10040
Listen 134.186.118.85:10050

ServerName 134.186.118.85

NameVirtualHost apps.cdpr.ca.gov
NameVirtualHost stagestie
NameVirtualHost calpip-staging
NameVirtualHost appprod-admin

<VirtualHost 134.186.118.85:10010>
    ServerName appprod-admin.cdpr.ca.gov
    ServerAlias appprod-admin

<VirtualHost 134.186.118.85:10020>
    ServerName calpip-staging.cdpr.ca.gov
    ServerAlias calpip-staging

<VirtualHost 134.186.118.85:10030>
    ServerName calpip.cdpr.ca.gov
    ServerAlias alpip.cdpr.ca.gov

<VirtualHost 134.186.118.85:10040>
    ServerName stagesite.cdpr.ca.gov
    ServerAlias stagesite

<VirtualHost 134.186.118.85:10050>
    ServerName apps.cdpr.ca.gov
    ServerAlias apps.cdpr.ca.gov

TIA
Ian

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320105
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to