Question

I have the address localhost:8080/tutor/index.html where 8080:port

tutor:tutor.war WAR file

index.html:welcome page

I want to mask :8080/tutor One way i tried masking the port is changing the tomcat port to 80,which worked but when I tried it on the live ubunutu server it wasnt working,no idea what was the problem there.So how should I mask it so that I just get localhost/index.htmml

Was it helpful?

Solution

So, when you are changing port on Ubuntu, there must already be some application using port 80 (most probably a web server like apache httpd) which is why your config is not working. If you want to mask 8080 redirect your requests through some web server (may be the one already added on your Ubantu machine).

For masking /tutor to just / there are 2 ways. One, you either put the contents of tutor.war in the ROOT folder of tomcat. Second, make an entry of "/tutor.index.html" in the welcome file list of web.xml present at <%tomcat_home%>/conf.

Take a close look on tomcat directory, you will get a clear picture of what you can do :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top