deploy application without portRSS

4 replies

Last post Sep 16, 2020 05:36 AM by Brucz

  • deploy application without port

    Sep 11, 2020 11:19 AM|Roemesh|LINK

    Hi Expert,

    Can we deploy the application without port number in IIS like most of the sites are coming like xyz.com/? how

    Roemesh

  • Re: deploy application without port

    Sep 14, 2020 02:58 AM|Roemesh|LINK

    Hi Expert, 

    Can we deploy multiple sites without port number in iis like xyz. Com, ABC. Com

    Roemesh

  • Re: deploy application without port

    Sep 14, 2020 07:46 AM|Brucz|LINK

    Hi Roemesh,

    It is difficult to deploy application without port. 

    For example you have app A and app B , both of them deploy and bind to same IP 127.0.0.1. When you want to access app A through IP, how does the server distinguish whether you want to access A or B? So you should deploy with port, and access app A though http://+IP+port.


    Most sites are coming like xyaz.com/? because of default port, just like http://localhost in IIS. It seems no port in url, actually, it binds to port 80 and complete url is http://localhost:80. 

    You can deploy sites without specifying port, but cannot without port.

    Here are some steps to deploy site which you can access through xyz.com.
    1.    Add “127.0.0.1 xyz.com” in host. The hosts file in C:\Windows\System32\drivers\etc
    2.    Add site in IIS. Fill in site name, application pool, physical path.
    3.    You don’t need to specify port, keep it as 80. Fill in the host name as xyz.com.

    Then you can access the site through http://xyz.com .

    Best regards,

    Burcz

  • Re: deploy application without port

    Sep 14, 2020 07:31 PM|Roemesh|LINK

    Hi Expert,

    Can we deploy multiple sites like this .i.e. xyz.com,abc.com,pqr.com

    Roemesh

  • Re: deploy application without port

    Sep 16, 2020 05:36 AM|Brucz|LINK

    Hi Roemesh,

    Yes, you can add multiple sites in hosts like

    127.0.0.1 xyz.com
    127.0.0.1 abc.com
    127.0.0.1 pqr.com

    There are some tips you need to pay attention to.

    1.  Multiples host name can bind same port. For example http://xyz.com:80, http://abc.com:80, http://pqr.com:80.
    2. One site can be bound to multiples host name, but a host name cannot be bound to multiples sites. Unless the port is different.     For example: site A can be bound to http://xyz.com:80 and http://abc.com:80, if site B also need to be bound to xyz.com or  abc.com, port cannot be 80.

    Best regards,

    Brucz