在运行Django的Azure网站上安装Wordpress [英] Installing wordpress on Azurewebsites running Django

查看:94
本文介绍了在运行Django的Azure网站上安装Wordpress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在Azure网站上运行Django应用程序.我们想在www.example.com/blog上安装博客.

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

我们将wordpress上传到了根目录www.example.com/blog.但是Django URL处理程序正在停止对子目录的请求并发布404页面.

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.

如何解决此问题?

推荐答案

听起来您想在同一个Azure网站实例上部署多个应用(PHP中的wordpress和Python中的Django).

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. 首先,请检查Application settings的PHP运行时选项是否在Azure门户上启用,如下图所示,并参考正式文档
  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. 如下图所示在Azure门户上配置Virtual applications and directories的新条目,该条目与其他SO线程
  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. 最后,您可以将wordpress安装文件上载到路径site/wwwroot/blog并正常安装.
  1. Finally, you can upload the wordpress installation files into the path site/wwwroot/blog and install it normally.

希望有帮助.

这篇关于在运行Django的Azure网站上安装Wordpress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆