Installing wordpress on Azurewebsites running Django

送分小仙女□ 提交于 2019-12-11 14:30:05

问题


We are running Django application on Azure websites. We would like to install a blog on www.example.com/blog.

We uploaded wordpress into root directory, www.example.com/blog. But Django URL handler is stopping the request to the subdirectory and issuing an 404 page.

How to solve this issue?


回答1:


It sounds like you want to deploy multiple apps (a wordpress in PHP & a Django in Python) on the same Azure website instance.

So the steps as below, please try.

  1. First of all, please check the PHP runtime option of Application settings whether enabled on Azure portal, as the figure below, and refer to the offical document Configure PHP in Azure App Service Web Apps to know more details.

  1. To configure a new entry of Virtual applications and directories on Azure portal as the figure below, which is very similar with the other SO thread How to Deploy Multiple Apps on Azure WebApps that you can refer to.

  1. Finally, you can upload the wordpress installation files into the path site/wwwroot/blog and install it normally.

Hope it helps.



来源:https://stackoverflow.com/questions/45306626/installing-wordpress-on-azurewebsites-running-django

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!