We help IT Professionals succeed at work.

How not to list port in URL

Medium Priority
Last Modified: 2012-05-11
Is there an easy way for clients to access our web server without having to supply the port number. Port 80 was used so we setup an application with an alternate port but when clients enter the URL they are forced to enter it as http://application:8080 so is there a way to eliminate the requirement to enter the port number to access the website.
Watch Question


HTTP by default uses port 80.  Your browser knows this, which is the only reason why it isn't necessary to specify :80 on URLs using this port.  You would need to convince your browser to check more than just port 80 if it doesn't find anything on that port.  In other words, short of writing your own browser, I don't believe there is a practical solution for this.  But I'm open to learning something new ...

You could perhaps set up a port 80 website that re-directs to port 8080 behind the scenes.  The more I think about that, the more I want to retract my first paragraph.  :)
Unlock this solution and get a sample of our free trial.
(No credit card required)

8080 is a tomcat port. You need to setup up the ajp connector which will forward the request from your webserver to the tomcat. Your webserver is listening to port 80, so whenever the tomcat request comes, it will internally forward this request to tomcat and you will be able to run without giving the port.


Found out the solution was in DNS and setting up a CNAME alias, at least for the internal users
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.