0
在我的配置,我使用如何在django wsgi配置中設置不同的別名?
WSGIScriptAlias /site1的 /Library/WebServer/Documents/sampleapp/sampleapp/wsgi.py
,而不是
WSGIScriptAlias / /庫/ Web服務器/Documents/sampleapp/sampleapp/wsgi.py
因爲我的/有一些其他應用程序託管。爲什麼這不起作用?我得到404頁面沒有找到,但accroding我的理解http://127.0.0.1/site1
應帶我到Django的主頁。而不是我這個饒人,
完全配置
<VirtualHost *:80>
WSGIDaemonProcess sampleapp python-path=/Library/WebServer/Documents/sampleapp:/Library/WebServer/Documents/sampleapp/env/lib/python2.7/site-packages
WSGIProcessGroup sampleapp
WSGIScriptAlias /site1 /Library/WebServer/Documents/sampleapp/sampleapp/wsgi.py
</VirtualHost>