为什么阿帕奇的模型认证不起作用?
为什么不使用mod ou proxy通过apache重定向CruiseControl的Web界面?然后使用apache auth。在phpexperts.pro,我让CruiseControl监听本地主机:8080,然后我使用mod_代理,如:
<VirtualHost *:80>
ServerName phpexperts.pro
<Location "/cruisecontrol/">
# Controls who can get stuff from this server.
Satisfy any
Order allow,deny
Allow from 127.0.0.1
AuthType Basic
AuthName "private"
AuthUserFile /var/www/phpexperts.pro/.htpasswd
AuthGroupFile /dev/null
Require valid-user
# Pass in CruiseControl's web interface.
ProxyPass http://localhost:8080/
ProxyPassReverse http://localhost:8080/
</Location>
</VirtualHost>