locked
Deploy two sites and access with same url RRS feed

  • Question

  • User1501783605 posted

    Hello there

    I got 2 web sites is there a way I can

    Deploy both on two different sites in IIS and config to access the both from the local host

    Eg.

    Site: 1 Accounts

    Site: 2 Customer

     

    I do not want to use the default web site as this was already dedicated to use .net 2 for other site.

     

    So I am looking to access both AccountS and Customer sites

    Like Eg. //localhost/Accounts
    
                   //localhost/Customer
    
    Instated of
    
    //localhost:83/Accounts
    
    //localhost:84/Customer
    
     


    Appreciate your views 

    Friday, January 31, 2014 6:06 AM

Answers

  • User-760709272 posted

    For the localhost-customer approach to work, you create a new site entirely, the same way the default site is set up, only you specify "localhost-customer" in the "host name" property for the binding.  That way when you go to localhost-customer it knows to serve up your customer site, and when you just go to localhost it will serve the default site.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 31, 2014 6:31 AM

All replies

  • User-760709272 posted

    You'll need to set them up as virtual directories under your default site.  Or set them up as;

    http://localhost-customer

    http://localhost-accounts

    and amend the hosts file on your local machine so that localhost-customer and localhost-accounts both resolve to 127.0.0.1.

    Friday, January 31, 2014 6:18 AM
  • User1501783605 posted

    this issue with seting up in default site is the application pool for default site is set to .net2 and all both of my new changes are in .net 4.5 so i do  not want to change to application pool setting for default site as this may effect the old stuff with is already runing in default site. 

    or is there a way i can create a applicaiton pool for http://localhost-customer and http://localhost-account ?

    appreciate your help 

    Friday, January 31, 2014 6:28 AM
  • User-760709272 posted

    For the localhost-customer approach to work, you create a new site entirely, the same way the default site is set up, only you specify "localhost-customer" in the "host name" property for the binding.  That way when you go to localhost-customer it knows to serve up your customer site, and when you just go to localhost it will serve the default site.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 31, 2014 6:31 AM