General discussion

Locked

URL Redirection

By ibrahim ·
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.

This conversation is currently closed to new comments.

14 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

URL Redirection

by maxwell edison In reply to URL Redirection

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.

Collapse -

URL Redirection

by maxwell edison In reply to URL Redirection

.
.
Perhaps a helpful link:

http://www.microsoft.com/mspress/books/sampchap/4364g.asp

Collapse -

URL Redirection

by ibrahim In reply to URL Redirection

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

Collapse -

URL Redirection

by cavedweller In reply to URL Redirection

DNS won't help because it only returns the address, not a port.

Collapse -

URL Redirection

by cavedweller In reply to URL Redirection

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.

Collapse -

URL Redirection

by ibrahim In reply to URL Redirection

Poster rated this answer

Collapse -

URL Redirection

by FaisalMasood In reply to URL Redirection

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

Collapse -

URL Redirection

by FaisalMasood In reply to URL Redirection

Also check the URLz:

http://www.iisadministrator.com/Articles/Index.cfm?ArticleID=13993

http://www.iisadministrator.com/Articles/Index.cfm?ArticleID=9163

Collapse -

URL Redirection

by ibrahim In reply to URL Redirection

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?

Collapse -

URL Redirection

by FaisalMasood In reply to URL Redirection

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

Back to Windows Forum
14 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums