Sunday 1 May 2016

Unauthorized access to server localhost 8080

Hi,

I have installed Tomcat 7 and when I try to connect to server using default port
http://localhost:8080
it was asking for user name and password.
Below is the screen shot

Then I realized is that issue is because of default port 8080. I have installed Oracle in the same machine and it was using 8080 port.

To overcome this issue, I changed default port for tomcat by following below steps

In the tomcat installed directory

navigate to "conf" folder -> Open "server.xml" file

Inside server.xml file try to find below statements

<Connector port="8080 protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />


change the default port to different no other than 8080

for Ex: here i have changed to 8181
<Connector port="8181" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />


and it works fine for me.



No comments:

Post a Comment