• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Changing the host name in apache tomcat

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to know how to change the url http://localhost:8080/examples/login.jsp
to
http://TestEngine
in an apache tomcat....
i am using jakarta-tomcat-4.0-m5.
i have tried many methods mention in the apache website but with no results.
plz help me out
thanks in advance.........
 
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are using linux ,you can set VirtualHost.
You need to modify httpd.conf file.But it requires root access.
 
himanshu patel
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have never set virtual host in windows platform but I am sure you should be able to do. Just look for httpd.conf file and modify it.Note that you have to restart apache once you modified httpd.conf file.
 
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
I think we have a little confusion here - doesn't httpd.conf apply to the Apache web server only? The post appears to be about using Tomcat standalone.
If you want to refer to your localhost by a different name, I think you would do that by adding another name to the "hosts" file - search for it under the WINDOWS directory. However this would only be visible to the local machine.
Bill
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat as distributed uses TCP/IP port 8080 for http requests. Web browsers look at port 80 by default, so to chop off the :8080 part of the URL, you'll need to modify the port setting in Tomcat's server.xml.
For Windows, the hostname can be set using the Network settings applet on the Control Panel. Depending on the OS version and machine configuration, you can also get to this applet off the right mouse button menu of Network Neighborhood.
In commercial-grade server environments, it's common to use Apache as a front-end web server. In that case you wouldn't change Tomcat's port setting, because Apache would be serving port 80. Instead, you'd set up a connector between Apache and Tomcat. That's not as simple a task as it ought to be.
Also, of course, for commercial serving, you'd define the server via DNS.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic