【问题标题】:Apache2 as simple https proxyApache2 作为简单的 https 代理
【发布时间】:2021-04-23 19:53:47
【问题描述】:

我将简要解释一下我拥有什么以及我想要什么。

在同一台服务器上,我有一个服务,它在 http 端口 9091 上也有一个 web gui。该服务没有在应用内将配置更改为 https 的选项。

我在该服务器上也有用于 snmp 陷阱图的 apache。所以我想用那个 apache 作为 https 代理,所以与 apache 的通信是 https,从 apache 到上面提到的 web 普通 http。

客户端 https 代理 http web ui

我不想只是重定向。

你能给我一个简单的解决方案吗?搜索还不走运。

谢谢! 马里奥

【问题讨论】:

    标签: https proxy apache2


    【解决方案1】:

    合作过

    <VirtualHost *:8843>
        ServerName xxx
        ServerAdmin webmaster@localhost
    #        DocumentRoot /var/www/
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
        SSLEngine On
        # Set the path to SSL certificate
        # Usage: SSLCertificateFile /path/to/cert.pem
        SSLCertificateFile /xxx.crt
        SSLCertificateKeyFile /XXX.key
        ProxyPreserveHost On
        ProxyPass /transmission http://localhost:9091/transmission
        ProxyPassReverse /transmission http://localhost:9091/transmission
    

    【讨论】:

      猜你喜欢
      • 2020-06-06
      • 1970-01-01
      • 2019-07-21
      • 1970-01-01
      • 2015-07-08
      • 1970-01-01
      • 2013-04-27
      • 2022-01-24
      • 1970-01-01
      相关资源
      最近更新 更多