小编mkv*_*kvs的帖子

Modifying nginx.conf for Azure App Linux Service

I am deploying a ReactJS application in Azure App Service that runs on Linux container. The ReactJS application has router. The refresh of internal pages failing due to the ReactJS routing. As per React-router and nginx , I can solve this problem by adding following block in nginx.conf

location / {
  try_files $uri /index.html;
}
Run Code Online (Sandbox Code Playgroud)

Now my problem is that how can I modify the nginx.conf inside the Azure App Linux container? I tried to copy to /home/site. It did …

nginx azure azure-web-app-service

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

azure ×1

azure-web-app-service ×1

nginx ×1