Wildcard subdomains in IIS7. Is it possible to make them like it is in Apache?

前端 未结 6 924
情话喂你
情话喂你 2020-12-02 10:11

Is this possible to configure IIS7 to achieve the same functionality like Apache has regarding wildcard domains? I\'m interested in routing user in ASP.NET web application b

6条回答
  •  时光取名叫无心
    2020-12-02 10:37

    For users who cannot upgrade to IIS 10+, it is not very difficult to enable wildcard host name support via reverse proxy.

    The HTTP example is as below, while other setup is just a few more steps.

    1. Create a catch-all site which binds to *:80 and no host name.
    2. Create first site which binds to *:8091 and no host name.
    3. Create second site which binds to *:8092 and no host name.
    4. Test out both sites and move on.
    5. Install ARR and URL Rewrite module.
    6. Create rewrite rules on the catch-all site to dispatch requests to the two sites,

      
          
              
                  
                      
                      
                          
                      
                      
                  
                  
                      
                      
                          
                      
                      
                  
              
          
      
      

    Note that at server level, ARR proxy mode must be turned on,

        
            
        
    

    IIS 10 wildcard host name is simpler and also has better performance, because ARR has its overhead (but generally speaking negligible).

提交回复
热议问题