Rewriting a URL in an Azure web app

前端 未结 3 1878
慢半拍i
慢半拍i 2020-11-27 21:59

I have a simple wildcard routing rule I want to apply for my Azure web app.


  

        
3条回答
  •  春和景丽
    2020-11-27 22:12

    You need to create a web.config file in your wwwroot folder and put the relevant config entries there.

    Here's an example of an web.config rule, to give you an idea of what it should look like.

    The below example redirect the default *.azurewebsites.net domain to a custom domain (via http://zainrizvi.io/blog/block-default-azure-websites-domain/)

    
        
          
              
              
                  
                
                  
                
                  
                
              
          
        
    
    

提交回复
热议问题