locked
how to overwrite port number in URL RRS feed

  • Question

  • User1516709725 posted

    Dear All,

    I have special requirement, where i have created a website in iis 6.0 with portnumber 8081. How can i access this website without portnumber in URL.

    Thanks in advance,

    Raghusrikanth 

     

     

    Thursday, October 14, 2010 9:07 AM

Answers

  • User-322036075 posted

    Why just not implement host headers on both sites and have them both run on port 80.

    By default port 80 and 443 are IIS common ports hence they are dropped through http.sys. when you change this to a custom port like 8081, you need to add the :8081.

    To correct this, you either need to change the your.domain.com website to have a host header added and run on port 80 or live with your.domain.com:8081.

    In the end you should have all websites with host headers for each.

    eg:
     Website1 with  www.mydomain.com 
     website2 with  your.mydomain.com

    Example Host Headers configuration for IIS6
    http://www.visualwin.com/host-header/

    OR

    Purchase a third party rewrite module like Helicon ISAPI REWRITE 3 and use a reverse proxy to push http://your.domain.com to http://your.domain.com:8081. For this to work, you would still need 2 sites so host headers or adding the port 80 binding may still be a better option for you.
    http://www.helicontech.com/download-isapi_rewrite3.htm

    In IIS7, you could use the URL rewrite module which is free :)

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, October 14, 2010 11:22 AM

All replies

  • User-322036075 posted

    Why just not implement host headers on both sites and have them both run on port 80.

    By default port 80 and 443 are IIS common ports hence they are dropped through http.sys. when you change this to a custom port like 8081, you need to add the :8081.

    To correct this, you either need to change the your.domain.com website to have a host header added and run on port 80 or live with your.domain.com:8081.

    In the end you should have all websites with host headers for each.

    eg:
     Website1 with  www.mydomain.com 
     website2 with  your.mydomain.com

    Example Host Headers configuration for IIS6
    http://www.visualwin.com/host-header/

    OR

    Purchase a third party rewrite module like Helicon ISAPI REWRITE 3 and use a reverse proxy to push http://your.domain.com to http://your.domain.com:8081. For this to work, you would still need 2 sites so host headers or adding the port 80 binding may still be a better option for you.
    http://www.helicontech.com/download-isapi_rewrite3.htm

    In IIS7, you could use the URL rewrite module which is free :)

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, October 14, 2010 11:22 AM
  • User-2064283741 posted

    This is nothing to do with IIS

    Browsers will send things via port 80 automatically so you don't have to type it in. For a port like 8081 you will need to type it in the browser.

    Thursday, October 14, 2010 12:54 PM