Hi everyone,
i'm trying to setup 2 or 3 apache instances on my server. i want them to be available to the outside on urls like
dev.mydomain.com
test.mydomain.com
prod.mydomain.com
this already implies that they should all run on the default port and access shall be routed by the third-level-domain, since i have only one public ip.
now i think that should be possible by using jails (i already set up two jails with ezjail).
my question is now, where does the routing of the third-level domain happen? is it possible at all? Each jail has its internal IP (127.0.0.20, 127.0.0.30) and its hostname (dev, prod), but where is the connection between the hostname and the IP? do i have to set up that routing myself? do i have to use pf?
since i actually want to forward the requests from apache to tomcat, it would be an alternative for me to have one apache instance with several virtual hosts that point to the different tomcat instances in jails (with different ports, if needed), but if it is possible to have multiple apache instances made available on different thirdleveldomains, it would be my preferred way to do it...
has anyone experience in such a setup? help is much appreciated!
cheers simon
i'm trying to setup 2 or 3 apache instances on my server. i want them to be available to the outside on urls like
dev.mydomain.com
test.mydomain.com
prod.mydomain.com
this already implies that they should all run on the default port and access shall be routed by the third-level-domain, since i have only one public ip.
now i think that should be possible by using jails (i already set up two jails with ezjail).
my question is now, where does the routing of the third-level domain happen? is it possible at all? Each jail has its internal IP (127.0.0.20, 127.0.0.30) and its hostname (dev, prod), but where is the connection between the hostname and the IP? do i have to set up that routing myself? do i have to use pf?
since i actually want to forward the requests from apache to tomcat, it would be an alternative for me to have one apache instance with several virtual hosts that point to the different tomcat instances in jails (with different ports, if needed), but if it is possible to have multiple apache instances made available on different thirdleveldomains, it would be my preferred way to do it...
has anyone experience in such a setup? help is much appreciated!
cheers simon