請你幫忙才知道什麼是錯我的配置的Apache + Web.py + mod_wsgi的和我的網站無法加載,這是我的配置:阿帕奇,Web.py和mod_wsgi的問題 - 找不到網頁
阿帕奇版本:2.7.4
Web.py版本 - >https://github.com/webpy/webpy
的mod_wsgi - >不知道,如果3.3或3.4
目錄 在/ var/WWW/pyapps/BOT
頁面 - >鏈接webpy webpy code.py 靜態 模板
阿帕奇 的ServerAdmin網站管理員@本地
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
CustomLog ${APACHE_LOG_DIR}/access.log combine
WSGIScriptAlias /sitea /var/www/pyapps/bot/code.py/
Alias /sitea/static /var/www/pyapps/bot/static
Alias /sitea/templates /var/www/pyapps/bot/templates
AddType text/html .py
<Directory /var/www/pyapps/bot>
Order deny,allow
Allow from All
</Directory>
<Directory /sitea/static>
Options +Indexes
</Directory>
Code.py
導入Web
網址=( '/.*', '你好', )
類你好: def GET(self): return「Hello,world。」
申請= web.application(網址,全局())。wsgifunc()
結果
未找到
所請求的URL /站點A未在此服務器上找到。
WSGIScriptAlias /sitea /var/www/pyapps/bot/code.py
:
的Apache/2.2.22(Ubuntu的)在xxx.xxx.xxx.xxx端口80