Reputation: 1
I am new to web development. I have created a flex based website and now i want to deploy it in my tomcat server. I want to change the URL from http://localhost:8080/myapp/ to http://myapp/
Please let me know if somebody has done something similar.
Thanks, Aj
Upvotes: 0
Views: 5409
Reputation: 1712
You can do that through:
I'd recommend the 3rd approach, as you don't usually want to expose your Tomcat directly on production.
Upvotes: 2
Reputation: 30934
You need to change the listen port of the HttpConnector
in conf/server.xml:
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
Note that giving no port in the URL means port 80, which on Unixoids (like Linux) means that the task that opens the port must run as root
.
Upvotes: 0