2
我有一臺開發服務器,使用mod_wsgi運行Apache 2.2。我有一個測試項目和一個webapp在開發設置,他們一半工作。當我嘗試訪問項目着陸頁以外的內容時,Apache會將其餘的URL附加到WSGI腳本的路徑中,並且不會加載頁面。URL被附加到WSGI腳本的路徑,爲什麼?
在httpd.conf:
WSGIScriptAplias /dubserv/ /home/sli/www/dubserv.wsgi
<Directory /home/sli/www/dubserv>
Order deny,allow
Allow from all
</Directory>
當訪問比該應用的着陸頁以外的東西,這是結果(在這種情況下,/登錄/):
[Tue Aug 24 12:38:44 2010] [error] [client 192.168.1.100] Target WSGI script not found or unable to stat: /home/sli/www/dubserv.wsgilogin
的如果我將WSGI腳本放在項目根目錄下的任何位置,結果是一樣的。
你能粘貼你的WSGI conf嗎? – 2010-08-24 16:52:10