Yeah, you bet. Just set the list of IP/ports in the VirtualHost
directive (space separated), and add necessary ServerAliases:
<VirtualHost 192.168.100.251:80 192.168.100.252:80>
ServerName www.mentor.com
ServerAlias mentor.com
ServerAlias origin.mentor.com
cheers,
barenyb
On Wed, Feb 25, 2009 at 2:26 PM, Ian Skinner <[email protected]> wrote:
>
> Is it possible to have the same virtual host block respond to more then
> one url host header and|or ip:port? Ideally at least one of each.
>
> What I'm shooting for here, is we are building a new production box, we
> don't control our DSN server, another state agancy does and it is a very
> formal process to request additions or updates to them. Until that
> request goes through we plan to configure our virtual hosts to respond
> to requests from different ports so we can go ahead and test them and
> continue our work on building the box.
>
> But it would be really nice if you can go ahead and also configure the
> various virtual hosts to respond the url host headers that we know they
> will eventually be configured to use. So that we don't have to go back
> and tweak the files once the request to the agency that controls the DSN
> server goes through.
>
> Is that possible?
>
> In other words is there some way to combine these two forms of virtual
> host definitions:
>
> PORT BASED
> ---------------
> Listen 333.444.555.666:2222
> Listen 333.444.555.666:3333
>
> NameVirtualHost 333.444.555.666:2222
> NameVirtualHost 333.444.555.666:3333
>
>
> <VirtualHost 333.444.555.666:2222>
> ...
> </VirtualHost>
>
> <VirtualHost 333.444.555.666:3333>
> ...
> </VirtualHost>
>
> HOST HEADER
> ------------------
> Listen 333.444.555.666680
>
> NameVirtualHost calpip-staging:80
> NameVirtualHost appprod-admin:80
>
> <VirtualHost calpip-staging:80>
> ServerName calpip-staging.cdpr.ca.gov
> ServerAlias calpip-staging
> ...
> </VirtualHost>
>
> <VirtualHost appprod-admin:80>
> ServerName appprod-admin.cdpr.ca.gov
> ServerAlias appprod-admin
> ...
> </VirtualHost>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:319844
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4