我已经使用以下位置的说明在Ubuntu-12.04服务器上安装了apache-bloodhound:
https://issues.apache.org/bloodhound/wiki/BloodhoundInstall
我可以使用“测试服务器”标题下的tracd函数访问该站点,一切似乎都很正常。
我按如下方式创建了文件/etc/apache2/sites available/探犬:
<VirtualHost *:8080>
WSGIDaemonProcess bloodhound_tracker user=alex python-path=/usr/share/bloodhound/lib/python2.7/site-packages
WSGIScriptAlias /bloodhound /usr/share/bloodhound/site/cgi-bin/trac.wsgi
<Directory /usr/share/bloodhound/site/cgi-bin>
WSGIProcessGroup bloodhound_tracker
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
<LocationMatch "/usr/share/bloodhound/[^/]+/login">
AuthType Digest
AuthName "bloodhound"
AuthDigestDomain /bloodhound
AuthUserFile /usr/share/bloodhound/environments/main/bloodhound.htdigest
Require valid-user
</LocationMatch>
</VirtualHost>但是当我试图访问这个站点时,我得到了这个错误:
HTTP Status 404 - /bloodhound
type Status report
message /bloodhound
description The requested resource (/bloodhound) is not available.
Apache Tomcat/6.0.35我不熟悉WSGI,但我深入研究了文档,在这个文件中没有发现任何明显的东西。我确实在更改此文件时重新启动了apache,并且重新启动服务器也没有成功。
任何指导都将不胜感激。谢谢。
发布于 2013-04-14 17:18:33
根据该错误,您正在使用的URL实际上正被路由到一个Java应用程序,而不是mod_wsgi。因此可能没有启用VirtualHost,或者您还没有为该端口启用基于名称的虚拟主机,而是回退到代理到VirtualHost应用程序的配置中的第一个Java。
https://stackoverflow.com/questions/15996586
复制相似问题