StormPhoenix 2016-01-08 09:51 采纳率: 0%
浏览 3455

Apache服务器的反向代理问题

使用Apache2.2进行反向代理,然后第一次进去是正常的,可是点击跳转的话,就出现了这个错误信息:

Bad Request

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

比较百思不得其解,求教一下为什么会出现这样的情况,下面是我的Apache vhost配置:

SSLMutex default

listen 9304

NameVirtualHost *:80
NameVirtualHost *:9304

<VirtualHost *:80>
    DocumentRoot "/Apache22/htdocs"
    ServerName 172.27.35.7:80

    #SSLEngine off

    #RewriteEngine On
    #RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=permanent]
</VirtualHost>

<VirtualHost *:9304>
    ServerName 172.27.35.7:9304
  DocumentRoot "/Apache22/htdocs"

    ProxyVia on
    ProxyRequests off
    ProxyPreserveHost on

    SSLEngine on
  SSLProxyEngine On
  SSLProtocol all -SSLv2 -SSLv3
  SSLHonorCipherOrder on
  SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM
  SSLCertificateFile "D:/Apache22/conf/openssl/server.crt"
  SSLCertificateKeyFile "D:/Apache22/conf/openssl/server.key"
  SSLCertificateChainFile "D:/Apache22/conf/openssl/ca.crt"

  <Proxy *>
        Order deny,allow
        Allow from all
  </Proxy>

    #<Location /mbi/appDownload>
    #   Order deny,allow
    #   Allow from all
    #</Location>

    ProxyPass / http://172.27.35.12:8080/
  ProxyPassReverse / http://172.27.35.12:8080/  

  ErrorLog "logs/error.log"
  CustomLog "logs/access.log" common

  <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all
  </Directory>
</VirtualHost>
  • 写回答

2条回答 默认 最新

  • oyljerry 2016-01-08 13:17
    关注

    你跳转的地址是gttp但是访问的的确是https协议

    评论

报告相同问题?

悬赏问题

  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算