Apache 配置

Apache 配置

我确信您可能遇到过此问题。我有一台服务器,其中配置了 jira、bitbucket 和 confluence。由于 bitbucket 已移至 linux 服务器,我想知道如何配置https://localhost.testdoain.corp/bitbucket2指向https://server02.testdomain.corp/bitbucket并从该服务器加载应用程序。为此,我尝试了 httpd-ssl.conf 上的以下配置。但不起作用。任何建议都可以让它正常工作。它将我带到服务器,但显示页面,并显示“哎呀,找不到该链接”或“哎呀,您找到了一个无效链接!”

Listen 443

SSLCipherSuite HIGH:MEDIUM:!MD5:!RC4:!3DES
SSLProxyCipherSuite HIGH:MEDIUM:!MD5:!RC4:!3DES
SSLHonorCipherOrder on 
SSLProtocol all -SSLv3
SSLProxyProtocol all -SSLv3
SSLPassPhraseDialog  builtin
SSLSessionCache        "shmcb:${SRVROOT}/logs/ssl_scache(512000)"
SSLSessionCacheTimeout  300

<VirtualHost *:80>
ServerName localhost.corp
DocumentRoot "${SRVROOT}/htdocs/serviceinfo/"
ServerName www.localhost.corp:80
ServerAdmin [email protected]
ErrorLog "${SRVROOT}/logs/error.log"
TransferLog "${SRVROOT}/logs/access.log"
</VirtualHost>


<VirtualHost _default_:443>

RedirectMatch ^/$ https://localhost.corp/jira


ProxyRequests Off
ProxyVia Off
ProxyTimeout 12000

<Proxy *>
    Require all granted
</Proxy>

ProxyPass /synchrony http://localhost:8091/synchrony
<Location /synchrony>
    Require all granted
    RewriteEngine on
    RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
    RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
    RewriteRule .* ws://localhost:8091%{REQUEST_URI} [P]
</Location>

ProxyPass /jira http://localhost:8081/jira
ProxyPassReverse /jira http://localhost:8081/jira

ProxyPass /confluence http://localhost:8090/confluence
ProxyPassReverse /confluence http://localhost:8090/confluence

ProxyPass /bitbucket https://server02.testdomain.corp:8443/bitbucket/
ProxyPassReverse /bitbucket https://server02.testdomain.corp:8443/bitbucket/

#ProxyPass /bitbucket http://localhost:7990/bitbucket
#ProxyPassReverse /bitbucket http://localhost:7990/bitbucket

ProxyPass /rm http://localhost:3060/rm
ProxyPassReverse /rm http://localhost:3060/rm


SSLEngine on
SSLProxyEngine On

SSLCertificateFile "${SRVROOT}/conf/server.crt"
SSLCertificateKeyFile "${SRVROOT}/conf/server.key"


<FilesMatch "\.(cgi|shtml|phtml|php)$">
 SSLOptions +StdEnvVars
</FilesMatch>
<Directory "${SRVROOT}/cgi-bin">
  SSLOptions +StdEnvVars
</Directory>

BrowserMatch "MSIE [2-5]" \
     nokeepalive ssl-unclean-shutdown \
     downgrade-1.0 force-response-1.0

CustomLog "${SRVROOT}/logs/ssl_request.log" \
      "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>`

不确定在哪里查找日志

相关内容