我需要你的帮助。 我有问题反向代理重写为https:
我有一个露天的应用程序运行在tomcat之上,作为一个前端和一个Apache服务器 – 它的网站启用看起来像这样:
<VirtualHost *:80> ServerName alfresco JkMount /* ajp13_worker <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature Off </VirtualHost>
我也有一个反向代理服务器在第二台机器上运行,我希望它重写查询到https。 它的网站启用看起来像这样:
<VirtualHost 192.168.251.50:80> ServerName alfresco DocumentRoot /var/www/ RewriteEngine on RewriteRule (.*) https://alfresco/ [R] LogLevel warn ErrorLog /var/log/apache2/alfresco-80-error.log CustomLog /var/log/apache2/alfresco-80-access.log combined ServerSignature Off </VirtualHost> <VirtualHost 192.168.251.50:443> ServerName alfresco DocumentRoot /var/www/ SSLEngine On SSLProxyEngine On SSLCertificateFile /etc/ssl/certs/alfresco.pem SSLCertificateKeyFile /etc/ssl/private/alfresco.key SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /alfresco http://192.168.251.50:8080/alfresco ProxyPassReverse /alfresco http://192.168.251.50:8080/alfresco LogLevel warn ErrorLog /var/log/apache2/alfresco-443-error.log CustomLog /var/log/apache2/alfresco-443-access.log combined ServerSignature Off </VirtualHost>
现在,ProxyPass工作,当我去浏览器应用程序中的alfresco / alfrsco打开,但重写为https不起作用。
请帮忙。
问候
当我去192.168.251.50 Tomcatconfiguration页面显示出来。 当我去192.268.251.50:8080 – 当我去192.168.251.50:8080/alfresco时与上面相同 – 当我去到alfresco / alfresco时,露天应用页面显示应用 – 当我去https://露天或https://露天我得到一个错误连接到服务器