Hi,
I'm starting up a small home server for some web applications, and I would like to know how to work out the hostname to diferent context or even application servers.
Let me explain with an example:
I have mydomain.com, and 2 DNS hostnames defined:
app1.mydomain.com
app2.mydomain.com
Now they both land on the server, on port 80.
In the server, with say an internal IP address of 192.168.1.1, I'll have JBoss 5.1.0 running on 8080. I may even have a Tomcat running on 8081.
What I need:
For http://app1.mydomain.com/ I want it to land on http://192.168.1.1:8080/myapp1
And http://app2.mydomain.com/ I want it to land on http://192.168.1.1:8080/myapp2
So they are diferent web applications running on the same JBoss instance, and I want the user to just know the simple app?.mydomain.com address, and the server will pick it from here.
In the future I want the possibility for an http://app3.mydomain.com/ the will point to http://192.168.1.1:8081/myapp3 that is a web app running on a diferent web container, for example a Tomcat listening on 8081 port, side-by-side in the same machine running JBoss on port 8080.
So my guess is ... I need Apache Web Server? And configure VirtualHost and/or Proxy?
I'm struggling a bit through the documentation ... a little light would help alot. I'm having dificulty filtering the examples I found to what really fits my purposes.
Thanks.
I'm starting up a small home server for some web applications, and I would like to know how to work out the hostname to diferent context or even application servers.
Let me explain with an example:
I have mydomain.com, and 2 DNS hostnames defined:
app1.mydomain.com
app2.mydomain.com
Now they both land on the server, on port 80.
In the server, with say an internal IP address of 192.168.1.1, I'll have JBoss 5.1.0 running on 8080. I may even have a Tomcat running on 8081.
What I need:
For http://app1.mydomain.com/ I want it to land on http://192.168.1.1:8080/myapp1
And http://app2.mydomain.com/ I want it to land on http://192.168.1.1:8080/myapp2
So they are diferent web applications running on the same JBoss instance, and I want the user to just know the simple app?.mydomain.com address, and the server will pick it from here.
In the future I want the possibility for an http://app3.mydomain.com/ the will point to http://192.168.1.1:8081/myapp3 that is a web app running on a diferent web container, for example a Tomcat listening on 8081 port, side-by-side in the same machine running JBoss on port 8080.
So my guess is ... I need Apache Web Server? And configure VirtualHost and/or Proxy?
I'm struggling a bit through the documentation ... a little light would help alot. I'm having dificulty filtering the examples I found to what really fits my purposes.
Thanks.
