General discussion

  • Creator
    Topic
  • #2130550

    URL Redirection

    Locked

    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.

All Comments

  • Author
    Replies
    • #3548197

      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.

    • #3546349

      URL Redirection

      by cavedweller ·

      In reply to URL Redirection

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

      • #3546343

        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.

      • #3575036

        URL Redirection

        by ibrahim ·

        In reply to URL Redirection

        Poster rated this answer

    • #3567849

      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.
      🙂

    • #3574975

      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. 🙂

      • #3424345

        URL Redirection

        by ibrahim ·

        In reply to URL Redirection

        Although it was not what I want to do, It’s still helps.
        Thanks.

    • #3574761

      URL Redirection

      by estebandelatorre ·

      In reply to URL Redirection

      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!!

      • #3424346

        URL Redirection

        by ibrahim ·

        In reply to URL Redirection

        Poster rated this answer

    • #3424344

      URL Redirection

      by ibrahim ·

      In reply to URL Redirection

      This question was closed by the author

Viewing 5 reply threads