apache - 通过 apache 将出站 http 调用转换为 https

标签 apache ssl

我们的老化 WAS 应用服务器存在问题,并且 ssl 证书的长度空白将不支持它,并且第三方不会更改该证书,这是足够公平的。

那么是否有可能让我们的应用服务器向第三方进行http调用,但我们的apache web服务器将请求重写为https,然后第三方可以通过https响应,但我们的apache web服务器将再次重写它返回到 http 以使我们的应用服务器满意?

最佳答案

我会考虑 mod_proxy。 take a look here

类似的东西应该适合您的需求:

<VirtualHost *:443>
    ServerName domain.tld
    ServerAlias www.domain.tld

    ... ssl and cert statements

    ProxyPass / http://new.domain.tld/
    ProxyPassReverse / http://new.domain.tld/
</VirtualHost>

如果您需要反之亦然:

<VirtualHost *:80>
    ServerName domain.tld
    ServerAlias www.domain.tld

    SSLProxyEngine On
    ProxyPass / https://new.domain.tld/
    ProxyPassReverse / https://new.domain.tld/

</VirtualHost>

关于apache - 通过 apache 将出站 http 调用转换为 https,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34038087/

相关文章:

java - Apache POI 单词支持有多好?

asp.net - 验证 Web 服务

android - 带有 https loadUrl 的 webView 显示空白页面

android - HttpsURL 连接 : SSL resumption not working

ssl - Cassandra C# TLS 版本选择?

java.io.FileNotFoundException : C:\opt\apache-tomcat-6. 0.36-ins2\logs\localhost.2013-02-11.log(拒绝访问)

php - 不区分大小写的 Shell 命令不适用于 PHP Exec

java - 使用 apache 命令行运行带有空格参数值的命令

apache - mod_rewrite 无法保护 grails 应用程序

ssl - 无法在我的应用程序中使用自签名证书,但可以与 s_client 一起使用