azure-webapps

Remove response Server header on Azure Web App from the first redirect request to HTTPS

徘徊边缘 提交于 2020-06-29 04:55:08
问题 I’m trying to remove the response Server header from an Azure Web App ( with an ASP Net core application ) After many tries of changing the web.config and removing the header in app code using a middleware, Microsoft doesn’t give up and set the response header to Server: Microsoft-IIS/10.0 :) The problem appears only when I’m trying to access the server on http (not https). Response code from the server is 301, and this is the only response that has the Server header. Checking the logs I was

Azure Web App Angular Not redirecting to www

帅比萌擦擦* 提交于 2020-05-17 06:57:20
问题 I have the following in my web.config <configuration> <system.webServer> <httpErrors errorMode="Detailed" /> <rewrite> <rules> <rule name="Angular" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" /> </conditions> <action type="Rewrite" url="index.html" appendQueryString="true"/> </rule> <rule name="Redirect to www" stopProcessing="true">

Azure Web App + Node.js + Azure AD = Error 431

亡梦爱人 提交于 2020-05-08 15:39:11
问题 I created a Node.js based web application, running in an Azure Web App, that I wanted to put behind an Azure Active Directory authentication. After activating "App Service Authentication", the login process works normally, however upon returning to my app, it just returns a HTTP 431 "Request Header Fields Too Large". To validate it's not my app, I checked the Azure web app sample for Node.js and even this returns a 431 when activating AAD. Steps to reproduce: Create new Azure resource -> Web

Azure Web App + Node.js + Azure AD = Error 431

帅比萌擦擦* 提交于 2020-05-08 15:38:06
问题 I created a Node.js based web application, running in an Azure Web App, that I wanted to put behind an Azure Active Directory authentication. After activating "App Service Authentication", the login process works normally, however upon returning to my app, it just returns a HTTP 431 "Request Header Fields Too Large". To validate it's not my app, I checked the Azure web app sample for Node.js and even this returns a 431 when activating AAD. Steps to reproduce: Create new Azure resource -> Web

Azure webapp: Stack settings

半城伤御伤魂 提交于 2020-05-08 15:02:22
问题 I can set my stack for a webapp through the portal: I deploy my infra through an ARM template: "apiVersion": "2015-08-01", "type": "Microsoft.Web/sites", "name": "[variables('name')]", "location": "[parameters('location')]", "dependsOn": [ "[concat(parameters('customer'),'-','webapp-small','-' , 'plan','-',parameters('env'))]" ], "properties": { "clientAffinityEnabled": false, "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', concat(parameters('customer'),'-','webapp-small','-' ,

Azure webapp: Stack settings

馋奶兔 提交于 2020-05-08 15:01:47
问题 I can set my stack for a webapp through the portal: I deploy my infra through an ARM template: "apiVersion": "2015-08-01", "type": "Microsoft.Web/sites", "name": "[variables('name')]", "location": "[parameters('location')]", "dependsOn": [ "[concat(parameters('customer'),'-','webapp-small','-' , 'plan','-',parameters('env'))]" ], "properties": { "clientAffinityEnabled": false, "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', concat(parameters('customer'),'-','webapp-small','-' ,

How to host an angular on Azure linux web app

狂风中的少年 提交于 2020-04-30 04:40:54
问题 I have this Angular app that I am trying to host using Linux web app on Azure. After deployment, I could not load the website so, after a little research, I found that I needed to add a index.js file (Cannot GET index.html Azure Linux Web App) That fixed the fact that I could not load my website. But it does not fix angular routing issue. If I navigate to an angular route and hit refresh, the page does not get redirected to index.html and I get a 404 response. (See http://ecominas-website-qas

How to host an angular on Azure linux web app

☆樱花仙子☆ 提交于 2020-04-30 04:38:09
问题 I have this Angular app that I am trying to host using Linux web app on Azure. After deployment, I could not load the website so, after a little research, I found that I needed to add a index.js file (Cannot GET index.html Azure Linux Web App) That fixed the fact that I could not load my website. But it does not fix angular routing issue. If I navigate to an angular route and hit refresh, the page does not get redirected to index.html and I get a 404 response. (See http://ecominas-website-qas

How to send PHP mail function on Azure web app? [duplicate]

旧街凉风 提交于 2020-04-14 10:03:30
问题 This question already has answers here : PHP mail function doesn't complete sending of e-mail (26 answers) Closed 3 years ago . I want to use the PHP mail function to send a HTML form to my mail. When I run the code it no error occurs, but I don't receive an email. I used the following code: <?php $to = 'email@email.com'; $subject = 'Subject'; $message = 'Message here'; $headers = 'From: email@email.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion();

How to send PHP mail function on Azure web app? [duplicate]

我的梦境 提交于 2020-04-14 09:56:08
问题 This question already has answers here : PHP mail function doesn't complete sending of e-mail (26 answers) Closed 3 years ago . I want to use the PHP mail function to send a HTML form to my mail. When I run the code it no error occurs, but I don't receive an email. I used the following code: <?php $to = 'email@email.com'; $subject = 'Subject'; $message = 'Message here'; $headers = 'From: email@email.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion();