且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Django虚拟主机设置.Apache mod_wsgi

更新时间:2023-11-22 17:44:28

更改:

WSGIScriptAlias / /home/mycode/mysite/scripts/django.wsgi

收件人:

WSGIScriptAlias /django /home/mycode/mysite/scripts/django.wsgi

第一个参数是挂载点,您必须将其作为Web服务器的根目录,因此只需将其更改为'/django'.

The first argument is the mount point, you have it to be the root of the web server, so just change it to '/django' instead.