Skip to content

Commit

Permalink
(Azure CXP) Added clarifying sentence about port 80
Browse files Browse the repository at this point in the history
Added "By default, App Service assumes your custom container is listening on port 80. "
https://github.com/MicrosoftDocs/azure-docs/issues/58553
  • Loading branch information
Grace-MacJones-MSFT authored Jul 22, 2020
1 parent d8cdfd4 commit c0a0438
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This guide provides key concepts and instructions for containerization of Linux

## Configure port number

The web server in your custom image may use a port other than 80. You tell Azure about the port that your custom container uses by using the `WEBSITES_PORT` app setting. The GitHub page for the [Python sample in this tutorial](https://github.com/Azure-Samples/docker-django-webapp-linux) shows that you need to set `WEBSITES_PORT` to _8000_. You can set it by running [`az webapp config appsettings set`](/cli/azure/webapp/config/appsettings?view=azure-cli-latest#az-webapp-config-appsettings-set) command in the Cloud Shell. For example:
By default, App Service assumes your custom container is listening on port 80. The web server in your custom image may use a port other than 80. You tell Azure about the port that your custom container uses by using the `WEBSITES_PORT` app setting. The GitHub page for the [Python sample in this tutorial](https://github.com/Azure-Samples/docker-django-webapp-linux) shows that you need to set `WEBSITES_PORT` to _8000_. You can set it by running [`az webapp config appsettings set`](/cli/azure/webapp/config/appsettings?view=azure-cli-latest#az-webapp-config-appsettings-set) command in the Cloud Shell. For example:

```azurecli-interactive
az webapp config appsettings set --resource-group <resource-group-name> --name <app-name> --settings WEBSITES_PORT=8000
Expand Down

0 comments on commit c0a0438

Please sign in to comment.