• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Virtual Hosting

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a dedicated server. The OS=RHE, DB=Oracle XE, javac 1.6.0_02, tomcat-5.5.23

I want to do virtual hosting for tomcat

Thanks & best regards
 
Anubhav Anand
Ranch Hand
Posts: 341
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For virtual hosting with tomcat you can see the official apache tomcat documentation for virtual hosting.

Also, maybe this link is also helpful.
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot!

I am studying if any problem then I'll again request help

Thanks again & best regards
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Anubhav Anand:
For virtual hosting with tomcat you can see the official apache tomcat documentation for virtual hosting.

Also, maybe this link is also helpful.


I implemented the directives of the link http://www.ex-parrot.com/~pete/tomcat-vhost.html as you provided and its work well but now the problem is that I am unable to access new created host http://127.0.0.1:7070/$host then its work. I need to access it with http://127.0.0.1:7070/ i.e. without $host like when we accessing root of tomcat

I am really thankful to you. Appreciated!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I recall, the Host mechanism depends on an exact match in the host part of the URL. Therefor, using 127.0.0.1 will ALWAYS go to the default host.

Perhaps you can add new alias entrys for 127.0.0.1 in your hosts file in order to test this.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic