• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 362
  • 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.
0
Maximus54
Asked:
Maximus54
  • 2
1 Solution
 
knightEknightCommented:
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.  :)
0
 
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.
0
 
shaunakCommented:
Hello,
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.
0
 
Maximus54Author Commented:
Found out the solution was in DNS and setting up a CNAME alias, at least for the internal users
0

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

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