• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Tomcat Virtual Hosting

 
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 341
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 850
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 850
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic