问题
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.
- 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.
- 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.
- 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