简体   繁体   English

如何配置apache proxy ssl foward JBoss?

[英]How to configure apache proxy ssl foward JBoss?

I have configured jboss https below(standalone.xml): 我已经在下面配置了jboss https(standalone.xml):

<connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">
    <ssl name="https" key-alias="jboss" password="123456" certificate-key-file="${jboss.home.dir}/keystores/jeap6.keystore"/>
</connector>

and I can visit https://ip:8443 我可以访问https:// ip:8443

I also configured apache server https so I can visit https://ip . 我还配置了Apache服务器https,因此可以访问https:// ip Here is a part of httpd.conf: 这是httpd.conf的一部分:

<VirtualHost _default_:443>
    ProxyPass /xxx http://192.168.1.188:8080/xxx
    ProxyPassReverse /xxx http://192.168.1.188:8080/xxx
    .
    .
    .
</VirtualHost>

But when I configured 但是当我配置

<VirtualHost _default_:443>
    ProxyPass /xxx https://192.168.1.188:8443/xxx
    ProxyPassReverse /xxx https://192.168.1.188:8443/xxx
    .
    .
    .
</VirtualHost>

It doesn't work. 没用 How to resolve it? 怎么解决呢?

log like this: 像这样的日志:

[Mon Apr 20 15:17:51 2015] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.187 for ServerName
[Mon Apr 20 15:17:52 2015] [notice] Apache/2.2.25 (Win32) mod_ssl/2.2.25 OpenSSL/0.9.8y configured -- resuming normal operations
[Mon Apr 20 15:17:52 2015] [notice] Server built: Jul 10 2013 01:52:12
[Mon Apr 20 15:17:52 2015] [notice] Parent: Created child process 3884
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.187 for ServerName
[Mon Apr 20 15:17:54 2015] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.187 for ServerName
[Mon Apr 20 15:17:54 2015] [notice] Child 3884: Child process is running
[Mon Apr 20 15:17:54 2015] [notice] Child 3884: Acquired the start mutex.
[Mon Apr 20 15:17:54 2015] [notice] Child 3884: Starting 64 worker threads.
[Mon Apr 20 15:17:54 2015] [notice] Child 3884: Starting thread to listen on port 443.
[Mon Apr 20 15:17:54 2015] [notice] Child 3884: Starting thread to listen on port 80.
[Mon Apr 20 15:18:16 2015] [error] [client 192.168.1.188] SSL Proxy requested for www.xxx.com:443 but not enabled [Hint: SSLProxyEngine]
[Mon Apr 20 15:18:16 2015] [error] proxy: HTTPS: failed to enable ssl support for 192.168.1.188:8443 (192.168.1.188)

Please pass on the error in the log files. 请在日志文件中传递错误。 If the keystores are using self-signed keys, you will need to import the public key's to get the handshake to succeed. 如果密钥库正在使用自签名密钥,则需要导入公共密钥才能使握手成功。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM