I have changed the default port number of tomcat 8080 to 80 in server.xml file under non-SSL Http/1.1 connector on port 8080.Its working fine with this url(with out 8080 port in tomcat 7.0,jdk6.1 and windows xp) http://127.0.0.1/appname in my system. where as i tired to run the same application in another system with the same url...(tomcat 6.0)with required changes in server.xml.when ever i type http://127.0.0.1/ in the address bar it will open manager window with username and password.Once i submit the manager username and password ..it showing http 500 internal server error.So i tried using this url too http://127.0.0.1/appnam...now getting http 404 error resource not avvailable.I had done installing tomcat 7.0 and changed jre to jdk file...still getting the same error.If i set the default port as 8080 its working fine,not for 80.I googled 4 days..could not find any useful thing to solve my problem..Please help me and let me know where i went wrong....suggest me any solution to this error
I would expect an internal server error to generate a more expressive log file entry.
Is this Tomcat installed as a service or as an application?
posted 8 years ago
Thanks alot for your prompt reply..i could find that IISv 5.1 is installed in that system which i am going to run the tomcat by changing the default port 8080 to 80.By running the netstat -an command in command prompt and come to know that oone IP address using 80 port.So i have changed 80 to 81 for tomcat but i have to use http://127.0.0.1:81/appname...otherwise it displays an error page like before.How to set the default port 80 to both IIS and tomcat and to run the http://127.0.0.1/appname url..please kindly help me or else suggest me any process to set the default port 80.
Author and all-around good cowpoke
posted 8 years ago
.How to set the default port 80 to both IIS and tomcat
AHA! If IIS is using port 80 you can't also use port 80 for any other application. How would the operating system direct a request if there were two programs using port 80???
IIS has a provision for accepting requests on port 80 and relaying them to Tomcat running on 8080. It has been years since I set one up that way so I don't remember the steps. Contact whoever is responsible for IIS on that system.