How do I configure my apache for this?
I need some help on how to do this configuration on my apache.
All instance are running on a single IP address on my Linode.
http://mydomain1:80 point to Docroot1http://mydomain1:8080 point to Docroot2
Now, I wasn to get a new domain, say mydomain2 so that
Is this possible? If so, how would my httpd.conf entries looks like? Since I want to give an option for my user to just use the mydomain2 to bring up whatever Docroot2 that was originally running on port 8080 of mydomain1
Thanks.
8 Replies
Is this do-able? Thanks.
NameVirtualHost aaa.bbb.ccc.ddd:80
NameVirtualHost aaa.bbb.ccc.ddd:8080
where aaa.bbb.ccc.ddd is the IP address of your server
````
You will need ServerAlias entries in each VirtualHost block for any other host names that they should respond to. Unaliased host names will use the first (default) VirtualHost entry.
Forgot to mentsion one thing…. I am trying to do this a my work location as well.
The setting are:
Host1 (with different ports assign to different developers) is a BigIP which distribute the traffic to different web instance. For example host1:port1 could route to hostA:1, host1:port2 will route to hostB:port 2 So user will access their ports using host1:port_number and it will route all traffic to different A/B/C host with the same port number.
Will this conf work on this case as well? Given that the conf that I have are on hostA/B/C, not on Host1.
Thanks.
Chris
For the NameVirtualHost, should I use the IP address of Host1 (the forwarding host) or the IP of A/B/C host itself?
Thanks.
@komy:
For the NameVirtualHost, should I use the IP address of Host1 (the forwarding host) or the IP of A/B/C host itself?
Specify the IP address of the physical interface on the machine which will be servicing the requests (i.e. your A/B/C host).