• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 366
  • Last Modified:

How not to list port in URL

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.
  • 2
1 Solution
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.  :)
Maximus54Author Commented:
I am thinking of setting up an alias (CNAME) on my DNS server that would redirect users who type the URL without the port number to the right URL but they won't have to to enter it.
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.
Maximus54Author Commented:
Found out the solution was in DNS and setting up a CNAME alias, at least for the internal users
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now