On my Tomcat, I have an HTML page.
I need to type the following address to make it run:
http://127.0.0.1:8080/BiddingSystem/BiddingSystem.html
but I want it to be accessed using this address: www.moribiz.com
Is this possible just by changing some setting on Tomcat?
I have Eclipse EE and Tomcat7, and I need to run my servlets not at
localhost:8080
, but on a pretty domain :)I have made it this way:
In file
%windows%\system32\drivers\etc\hosts
add:In file
%workspace%\Servers\Tomcat 7
atlocalhost-config\Server.xml
Now my Apache Tomcat works fine (I hope) at
http://tomcat/
and at same time my Apache2+PHP works athttp://localhost/
.You can configure the host properties in Tomcat's
server.xml
, and can make an alias to the defaultlocalhost
host:For more information, see Tomcat's configuration manual.
Have a look at item 4 of O'Reilly's Tomcat tips:
The relevant part is where the virtual host is defined (in the last
<Host>
tag).