doubei2231 2015-06-25 22:16
浏览 51

需要Apache SSL证书的Bitbucket Hooks

We are trying to implement a simple push/deploy system using Bitbucket's webhooks. This works properly with our PHP script when Apache is not configured to use the SSLEngine and certificates; however, we cannot seem to figure out how to let Bitbucket post to our web server once we enable certificates.

We have tried changing the client verification at the virtual host to optional, and adding SSLVerifyClient require to all directories except the deploy directory. But it seems like SSLVerifyClient requirecascades down from the root directory (/myexample/www) to all its sub directories. Any recommendations on how to configure this properly?

ssl-conf:

SSLStrictSNIVHostCheck off

<VirtualHost *:443>
    ServerName example.com
    DocumentRoot /myexample/www

    WSGIScriptAlias / /myexample/www/thingshere/wsgi.py

    <Directory /myexample/www>
        Options Indexes Followsymlinks
        AllowOverride all
        Require all granted
    </Directory>

    <Directory /myexample/www/deploy>
        Options Indexes Followsymlinks
        AllowOverride all
        Order allow,deny
        Allow from all
        #Require all granted
        #Allow from 131.103.20.165
        #Allow from 131.103.20.166
    </Directory>

    <Directory /myexample/www/thingshere>
        Options Indexes Followsymlinks
        AllowOverride all
        Require all granted
        <Files wsgi.py>
                Require all granted
        </Files>
    </Directory> LogLevel debug
    ErrorLog ${APACHE_LOG_DIR}/ssl_error.log
    CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined

    SSLEngine on
    SSLCertificateFile    /path/mycert.crt
    SSLCACertificateFile /path/mycertca.crt
    SSLCertificateKeyFile /path/mycertkey.key

    SSLVerifyClient require
    SSLVerifyDepth 10
    SSLCACertificateFile /path/mycert.crt 

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度
    • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
    • ¥15 ETLCloud 处理json多层级问题
    • ¥15 matlab中使用gurobi时报错
    • ¥15 这个主板怎么能扩出一两个sata口
    • ¥15 不是,这到底错哪儿了😭
    • ¥15 2020长安杯与连接网探
    • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么