java - Issue when both apache2 server and apache tomcat server installed in my linux machine -
i work in both php , java projects, ubuntu machine has both apache2 server , apache tomcat server installed. problem is, when run java application eclipse, url is,
localhost:8080/myjavaapp
and when enter credentials , log in url should be
localhost:8080/myjavaapp/homepage.jsp
but browser how taking
localhost/myjavaapp/homepage.jsp
hence error. when edit url adding 8080 port number, works fine. annoying edit url adding 8080 every time. appreciated. thanks.
change default port tomcat else, example 8181
current versions of web browsers recognize port 8080 80, that's why it's forward 80 or cut port option url.
to change tomcat port open server config file server.xml
search "8080", current port in use, , replace else (make sure new port not in use), save , restart tomcat.
Comments
Post a Comment