Configure a URL to be mapped to a specific port

Hi Experts,

I would like to know if a https://URL:123 can be configured to https://URL but when that URL is entered it automatically maps to a designated port?

Look forward to hearing from you.

Thanks.
isdd2000Asked:
Who is Participating?
 
npinfotechCommented:
All domain names go to port 80 by default.  So, a request to "http://www.google.com" is actually "http://www.google.com:80".  The https prefix (port 443) and ftp prefix (port21) are also examples specially designated ports for web browsers.  

The only way you can avoid typing in the port into your web browser is to either use one of the these pre-defined prefixes, or custom configure your web browser.

0
 
npinfotechCommented:
There are multiple ways to do this.  My preference was to use my firewall/router (Cisco ASA) to set up a redirect via asdm.  

Here are the basics using IIS 7: http://technet.microsoft.com/en-us/library/cc732969(WS.10).aspx 
0
 
SteveNetwork ManagerCommented:
depending on the Webserver you are using, there are a lot of ways to do this.. for example a simple index.php page like this would do it..

<?php
/** * Place in a blank PHP page */
// Change to the URL you want to redirect to
$URL="https://URL:123";
header ("Location: $URL");
?>

Open in new window

0
WEBINAR: 10 Easy Ways to Lose a Password

Join us on June 27th at 8 am PDT to learn about the methods that hackers use to lift real, working credentials from even the most security-savvy employees. We'll cover the importance of multi-factor authentication and how these solutions can better protect your business!

 
isdd2000Author Commented:
Hi Experts,

I should mention it is an application web interface that i am accessing.
0
 
npinfotechCommented:
Not all web application interfaces let you do that.  If you rent hosting space, you might want to call up the hosting company to put in a redirect request.
0
 
isdd2000Author Commented:
Thanks npinfotech.

The Application is hosted locally is it posible to put in a re-direct at the domain hosting level?
0
 
SteveNetwork ManagerCommented:
no you cannot use DNS to redirect.. you need to do it on an application level.
0
 
npinfotechCommented:
I'm not aware of any web panels\applications that allow you to redirect based on a port number.  You'll need to configure a piece of hardware (router/switch/etc) or a web server (apache/IIS).
0
 
isdd2000Author Commented:


Hi npinfotech,

I have performed a port re-direct on the firewall. So external port 123 becomes internal port 321 for example. The problem is when I type the location in the web browser i have to specify port 123. Because there is only one public IP address port routing has to be used to access the differnt servers using https.

i am wanting the web address to automatically go to port 321 for example
0
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.

All Courses

From novice to tech pro — start learning today.