如何使用代理在Apache后面设置詹金斯我的解决方案不起作用(使用SSL)

时间:2019-03-18 07:08:16

标签: jenkins apache2

<VirtualHost 111.111.111.111:443>
    ServerName jenkins.example.com
    ProxyRequests     Off
    ProxyPreserveHost on
    AllowEncodedSlashes NoDecode
    ProxyPass         /  http://localhost:8080/ nocanon
    ProxyPassReverse  /  http://localhost:8080/
    ProxyPassReverse /   http://www.example.com/
    <Proxy http://localhost:8080/*>
        Order allow,deny
        Allow from all
    </Proxy>

    RequestHeader set X-Forwarded-Proto "https"
    RequestHeader set X-Forwarded-Port "443"
    ServerAdmin webmaster@jenkins.example.com
    AddDefaultCharset off
    SSLEngine on
    SSLCertificateFile "/var/www/httpd-cert/www-root/jenkins.crt"
    SSLCertificateKeyFile "/var/www/httpd-cert/www-root/jenkins.key"
    SSLCertificateChainFile "/var/www/httpd-cert/www-root/jenkins.ca"
    SSLHonorCipherOrder on
    SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2
    SSLCipherSuite EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4
    <IfModule headers_module>
        Header always set Strict-Transport-Security "max-age=31536000; preload"
    </IfModule>
    AssignUserID www-root www-root
    CustomLog /var/www/httpd-logs/jenkins.example.com.access.log combined
    ErrorLog /var/www/httpd-logs/jenkins.example.com.error.log
    <FilesMatch "\.ph(p[3-5]?|tml)$">
        SetHandler application/x-httpd-php5
    </FilesMatch>
    ServerAlias www.jenkins.example.com
    ScriptAlias /php-bin/ /var/www/php-bin/www-root/
    AddHandler application/x-httpd-php5 .php .php3 .php4 .php5 .phtml
    Action application/x-httpd-php5 /php-bin/php
</VirtualHost>

此解决方案不起作用。我在页面上有这个: 禁止的 您无权访问此服务器上的/。 位于jenkins.example.com端口443的Apache / 2.4.18(Ubuntu)服务器

0 个答案:

没有答案