Skip to content

Commit 1d055eb

Browse files
Merge pull request #279132 from msangapu-msft/rewrite
draft
2 parents f21e3e6 + fa7dfe7 commit 1d055eb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

articles/app-service/configure-language-nodejs.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,11 @@ if (req.secure) {
350350

351351
::: zone pivot="platform-linux"
352352

353+
## URL rewrites
354+
355+
When deploying Node.js apps on Azure App Service for Linux, you may need to handle URL rewrites directly within your application. This is particularly useful for ensuring specific URL patterns are redirected to the correct endpoints without relying on web server configurations. There are several ways to accomplish URL rewrites in Node.js. One example is through the [express-urlrewrite](https://www.npmjs.com/package/express-urlrewrite) package.
356+
357+
353358
## Monitor with Application Insights
354359

355360
Application Insights allows you to monitor your application's performance, exceptions, and usage without making any code changes. To attach the App Insights agent, go to your web app in the Portal and select **Application Insights** under **Settings**, then select **Turn on Application Insights**. Next, select an existing App Insights resource or create a new one. Finally, select **Apply** at the bottom. To instrument your web app using PowerShell, please see [these instructions](../azure-monitor/app/azure-web-apps-nodejs.md#enable-through-powershell)

articles/app-service/configure-language-python.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ Build issues such as incorrect dependencies in *requirements.txt* and errors in
370370

371371
When you're successfully connected to the SSH session, you should see the message "SSH CONNECTION ESTABLISHED" at the bottom of the window. If you see errors such as "SSH_CONNECTION_CLOSED" or a message that the container is restarting, an error may be preventing the app container from starting. See [Troubleshooting](#troubleshooting) for steps to investigate possible issues.
372372

373+
## URL rewrites
374+
375+
When deploying Python applications on Azure App Service for Linux, you may need to handle URL rewrites within your application. This is particularly useful for ensuring specific URL patterns are redirected to the correct endpoints without relying on external web server configurations. For Flask applications, [URL processors](https://flask.palletsprojects.com/patterns/urlprocessors/) and custom middleware can be used to achieve this. In Django applications, the robust [URL dispatcher](https://docs.djangoproject.com/en/5.0/topics/http/urls/) allows for efficient management of URL rewrites.
376+
373377
## Troubleshooting
374378

375379
In general, the first step in troubleshooting is to use App Service Diagnostics:

0 commit comments

Comments
 (0)