Discussion Locked

URL Redirection

0 helpful
14 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Currently I have 2 port in my IIs, which was port 80 and port 81. And the default port was port 80. How can I configure my server to make a redirection to both of my IIs port. Let say if I type the URL http://www.any.com/ it will go to my port 80 and if I type URL http://web.any.com/ it will go to my port 81.

PS:) Besides having IIs server, I'm also running my own DNS Server. Thanks In Advance.

14 replies

by maxwell edison

The Redirect URL function in the control panel allows you to set up subdomains which forward to directories in your web space.

For example, you have a subdirectory called /project. You can use URL redirection to map the subdomain http://project.yourdomain.com/ to the files in this directory.

To do this requires two steps in the control panel:

Click on "modify URL redirections" and follow the instructions to set up a new subdomain.

Click on Modify DNS. This allows you to add entries to the zone file for your domain on our name servers. You must set up the same subdomain name with an A record pointing to the IP address given to you in the "modify URL redirections" section.

by ibrahim

I don't get what you had answer. Is the Redirect URL function in the control panel was a program installed.

by cavedweller

Hit the done button too fast....

I think you are making the problem too difficult. Why not have the web server service multiple addresses instead of multiple ports. You can set unique home directories for each virtual server.

by faisalmasood

There are three ways to host multiple sites on one IIS server.

1) Using seperate IPs for each site.
2) using different ports.
3) using Host headers.

You are using Port method. In this method the client must know the port number to connect tothe site having assigned different port #, as the default port is 80. I think you don't want your clients to remember port # to connect to the site (81). But you can't redirect clients from IIS with Port method.

I would suggest you to use the 1st method os using seperaate IPs.

1)Assign additional IPs to the NIC card.(in TCPIP Protocol properties in Network Properties. & click Advanced.)

2)Then after restarting Pc. In IIS manager assign different IPs to each site in Web site Properties. (You'll see the IPs listed there.)

3)Then update your DNS server with the Host records for each site.
:)

by ibrahim

Thanks. Your suggestion really help, but unfortunately I'm out of IP's. Can I assign different addresses to a single II's server by using host header?

by faisalmasood

Yes you can assign different addresses / IPs to a single IIS server.

1) Make sure to add the Host records in your DNS server.

2) Assign Host headers in IIS.

& Enjoy. :)

by estebandelatorre

Easy and fast!
Bind another ip address to the nic card, define another site using this new address, (by setting up host headers)
Add a record to your DNS to match the new ip address.

Hope it helps!!

This discussion is closed to new replies.