configure 2 host name in webserver
posted 16 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I have 2 host name : www.domain1.com , www.domain2.com
Both of them will be sharing the same server e.g. 111.12.123.123
I have 2 apps which named "app1" & "app2".
app1 is stored in 111.12.123.123's Tomcat5.5/webapps/
app2 is stored in another server 111.12.123.124's tomcat5.5/webapps/
My question is , what should i configure in tomcat5.5/conf/server.xml file to make www.domain2.com in 111.12.123.123 server to point to 'app2' homepage in 111.12.123.124 ?
I have tomcat in both server.
Please help...anyone ?
Thanks in advanced.
Regards
Nick
Both of them will be sharing the same server e.g. 111.12.123.123
I have 2 apps which named "app1" & "app2".
app1 is stored in 111.12.123.123's Tomcat5.5/webapps/
app2 is stored in another server 111.12.123.124's tomcat5.5/webapps/
My question is , what should i configure in tomcat5.5/conf/server.xml file to make www.domain2.com in 111.12.123.123 server to point to 'app2' homepage in 111.12.123.124 ?
I have tomcat in both server.
Please help...anyone ?
Thanks in advanced.
Regards
Nick
From NickyEng
Diploma in Computer Studies
SCJP 1.4
SCWCD 1.4
Formula 1 app by Maxis (Playbook)
posted 16 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
in my opinion you would be better with a single apache HTTPD instance serving both domains on a single IP and then using mod_jk workers to redirect to the tomcat instances
Nicky Eng
Ranch Hand
Posts: 378
posted 16 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Inside server.xml of Tomcat 5.5/conf/ I will have to put this in...is it correct ?
*Please look at Context part ...
*Please look at Context part ...
From NickyEng
Diploma in Computer Studies
SCJP 1.4
SCWCD 1.4
Formula 1 app by Maxis (Playbook)
posted 16 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I wouldn't, but then I have only considered it using the httpd/jk/tomcat method
posted 16 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
The magic words are "Virtual Hosting", and I think they added it when I wasn't looking, since last time I wanted it, it wasn't this simple:
http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html
http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
| Pay attention! Tiny ad! Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |








