我正在尝试设置从apache代理访问的hudson服务器。Hudson索引页加载,但没有加载图像、css或javascript。这似乎是因为相对路径不能正常工作。代理的当前apache配置如下:
<VirtualHost *:8000>
[...]
#Hudson
RewriteEngine On
ProxyPass /hudson http://localhost:8081
ProxyPassReverse /hudson http://localhost:8081
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>(没有足够的声誉发布图片对不起,但是想象一下hudson索引没有图像或css,只有黑色文本和蓝色链接)
我认为问题在我的apache配置中,但是我找不到关于这个错误的任何信息。
提前谢谢。
发布于 2011-01-23 11:15:29
在/etc/default/hudson中使用“-前缀=/hudson”,并且:
ProxyPass /hudson http://localhost:8081/hudson
ProxyPassReverse /hudson http://localhost:8081/hudson或
ProxyPass / http://localhost:8081
ProxyPassReverse / http://localhost:8081https://serverfault.com/questions/225747
复制相似问题