vivagonna
V2EX  ›  问与答

求教 Apache 端口反代+https 规则如何写

  •  
  •   vivagonna · Mar 20, 2017 via Android · 1459 views
    This topic created in 3535 days ago, the information mentioned may be changed or developed.
    搭建了一个 node.js 程序,假设默认监听端口是 8888 ,现在想用 Apache 反向代理通过 443 端口 https 访问该服务,求问规则该怎么写?自己试了好久也没搞定。多谢了。
    2 replies  •  2017-03-21 08:21:27 +08:00
    buseni
    buseni
    Mar 21, 2017 via Android
    1
    需要开通多个模块,然后虚拟主机那里做配置。
    <VirtualHost *:80>
    ServerName slf.com
    DocumentRoot D:/wamp/www/payInterface
    <Directory "D:/wamp/www/payInterface/">
    Options +Indexes +FollowSymLinks +MultiViews
    AllowOverride all
    Require all granted
    allow from all
    </Directory>
    <Proxy *:80>
    AllowOverride None
    Order Deny,Allow
    Allow from all
    </Proxy>
    ProxyPass / http://www.baidu.com/
    ProxyPassReverse / http://www.baidu.com/
    </VirtualHost>
    buseni
    buseni
    Mar 21, 2017 via Android
    2
    请自行百度下, Apache 转发需要开通什么模块,然后按照我上面的模板,把域名改成端口
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 21:46 · PVG 05:46 · LAX 13:46 · JFK 16:46
    ♥ Do have faith in what you're doing.