To shorten the Tomcat server application URL currently we are using long form of http://localhost:8080/[blazeds]/myapp/application.html
- First we need to remove the port Numbers of tomcat by configuring the server.xml in tomcat ../conf/server.xml
<!–<Connector port=”8080″ protocol=”HTTP/1.1″
connectionTimeout=”20000″
redirectPort=”8443″ />
–>
<Connector port=”80″ protocol=”HTTP/1.1″
connectionTimeout=”20000″
redirectPort=”8443″ />
the commented one which we used currently , the new one is just remove the port number as 8080 as 80 .
so that you can access the tomcat path in URL like http://localhost
- To shorten the URL just copy [myapp] flex application files into the [blazeds]
- Rename the [blazeds] folder as [myapp] (your favourite Name)
- Change the content.xml in myapp folder
<?xml version=”1.0″ encoding=”utf-8″?>
<content>
<page location=”URL”>
<text>http://localhost/ myapp /messagebroker/amf</text>
</page>
<page location=”URL1″>
<text>http://localhost/ myapp /jasperReport.jsp</text>
</page>
</content>
- Restart the tomcat Server.
- Now you can access your application http://localhost/ myapp / myapp.html
If you want to avoid myapp.html file name rename the file as index.html
You can access your application like http://localhsot/ myapp
Referred URL
- http://www.coderanch.com/t/81669/Tomcat/remove-port-number-URL
- http://www.coderanch.com/t/87915/Tomcat/tomcat-define-context-root-name
- http://www.velocityreviews.com/forums/t370192-tomcat-redirect-localhost.html