开发者

CruiseControl access restriction: how?

开发者 https://www.devze.com 2023-01-16 11:47 出处:网络
I am currently testing CruiseControl + phpUnderControl fo开发者_StackOverflow社区r our PHP CI process and am stuck with a fairly simple question: is it possible to somehow restrict access to the web i

I am currently testing CruiseControl + phpUnderControl fo开发者_StackOverflow社区r our PHP CI process and am stuck with a fairly simple question: is it possible to somehow restrict access to the web interface?

I cannot seem to find anything indicating this is possible, but I am probably overlooking something.


Why wouldn't Apache's mod_auth work?

Why don't you use mod_proxy ot redirect cruisecontrol's web interface through apache? then use apache auth. At phpexperts.pro, i have cruisecontrol listening on localhost:8080 and then i use mod_proxy like:

<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>
0

精彩评论

暂无评论...
验证码 换一张
取 消