How not to list port in URL

Posted on 2011-04-25
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.
Question by:Maximus54
    LVL 33

    Expert Comment

    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.  :)

    Accepted Solution

    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.
    LVL 8

    Expert Comment

    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.

    Author Closing Comment

    Found out the solution was in DNS and setting up a CNAME alias, at least for the internal users

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    The task of choosing a web design company to build a website for your business should never be taken in a light manner. Provided the fact that your website will act as a representative to your business and will be responsible for imposing an online …
    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now