azure-web-sites

Azure App Service Active Directory Authentication Access Denied

隐身守侯 提交于 2020-05-29 08:27:45
问题 We have a web app that we are transitioning from a Azure classic cloud service to an App Service web app. The classic cloud service was on a vnet that contained our domain controllers (regular AD, NOT Azure AD). The App service uses VNET Integration so it is connected to our vnet, and therefore DCs,(essentially via a client vpn). When we run the code that creates a new AD in the web app, the user is created successfully, but as soon as we try to change anything - set the password, add to a

Azure Web App on Linux: “Error: Container didn't respond to HTTP pings on port: 8080” - when using: “start”: “pm2 start server.js”

社会主义新天地 提交于 2020-05-27 05:39:46
问题 My App Service Linux instance crashes if my node app is using the start script: "start": "pm2 start server.js" : 2019-04-15 11:36:34.432 ERROR - Container crime-digest__6ea5_0 for site crime-digest__6ea5 has exited, failing site start 2019-04-15 11:36:34.489 ERROR - Container crime-digest__6ea5_0 didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging. Container logs have nothing but the above error. If I use just: "start": "node server.js", the app

DOS Protection in Azure Web APP

人盡茶涼 提交于 2020-05-25 08:21:09
问题 We are using Azure Web APP for for our FrontEnd site. Recently we have discovered DOS attack on our website. When I googled around I got to know solution for Azure Cloud Services. Is there any way, Azure Web APP can be protected with out of box support.. 回答1: Azure Web Sites enabled the Dynamic IP Restrictions module for IIS8.You can protect your Azure Web App from DDOS Attacks by configuring Dynamic Ip Security under System.WebServer in your App's web.config file as follows. <security>

How do you expose port 3000 using an Azure Web App Container?

ぐ巨炮叔叔 提交于 2020-05-25 06:45:11
问题 I'm running a react boilerplate app within a docker container, hosted Azure Web App Containers. Locally, I spin the app up with: docker run -p 3000:3000 431e522f8a87 My docker file looks like this: FROM node:8.9.3 EXPOSE 3000 RUN mkdir -p src WORKDIR /src ADD . /src RUN yarn install RUN yarn build CMD ["yarn", "run", "start:prod"] APPLICATION SETTINGS I've tried editing the Application Settings, to no avail, with the key/value pair: WEBSITES_PORT=3000 Apparently Azure only exposes ports 80

ASP.NET Core NodeServices on Azure Linux WebApp

荒凉一梦 提交于 2020-05-23 10:56:13
问题 I am used to publish Azure WebApps on Windows but now I am trying to deploy an ASP.NET Core 3 (with NodeServices) to a Linux WebApp and I am receiving the following error message: InvalidOperationException: Failed to start Node process. To resolve this:. [1] Ensure that Node.js is installed and can be found in one of the PATH directories. Current PATH enviroment variable is: /opt/dotnetcore-tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/site/wwwroot Make sure the

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">

How to access site files on Azure

♀尐吖头ヾ 提交于 2020-05-17 05:15:09
问题 so my uncle asked me to update something on his website. I found out he uses azure service. I've never used this service before. After looking around I thought it was as easy as Searching App Services, then clicking on the only app running, then on the side panel click development center, then I choose FTP access. I then used FileZilla, I edited a file and then re-uploaded the file but nothing gets updated on the site. Am I missing something obvious? Thanks. 回答1: If you want to update your

DNN UrlRewrite (“DotNetNuke.HttpModules.UrlRewriteModule, DotNetNuke.HttpModules”) does not run custom rewrite rule on web.config

ⅰ亾dé卋堺 提交于 2020-05-15 21:35:29
问题 On our DNN site hosted in an Azure app service, we have the following custom rule set on our web.config: <rewrite> <rules> <rule name="Proxy" stopProcessing="true"> <match url="^base3/?(.*)" /> <action type="Rewrite" url="https://(a website hosted in aws s3)/tx/{R:1}" /> <serverVariables> <set name="HTTP_ACCEPT_ENCODING" value="" /> <set name="HTTP_X_ORIGINAL_HOST" value="{HTTP_HOST}" /> <set name="HTTP_X_Blog" value="1" /> </serverVariables> </rule> </rules> We have also setup the following

Can I re-use an Azure host name?

非 Y 不嫁゛ 提交于 2020-05-15 05:24:23
问题 I have an Azure app service hosted as [somehostname].azurewebsites.net. Can I reuse that same host name if I delete the existing resource first? If so, is there a delay before the prior usage of that host name is released? 回答1: Names are only reserved until the resources are deleted. If you delete your web app, then the name is available again. There may or may not be a delay, based on how things are managed. 回答2: Yes you can reuse the host name pretty much immediately. One caveat to note is

Azure: 409 Conflict: Cannot delete directory. It is either not empty or access is not allowed

牧云@^-^@ 提交于 2020-05-14 18:24:06
问题 I use Azure with node js App Service. When i try to delete empty folder using ftp or kudu app in node_modules folders i get error: 409 Conflict: Cannot delete directory. It is either not empty or access is not allowed . This folder is totally empty. How i can delete it? 回答1: All Azure Web Apps (as well as Mobile App/Services, WebJobs and Functions) run in a secure environment called a sandbox. Each app runs inside its own sandbox, isolating its execution from other instances on the same