搭建了一个 node.js 程序,假设默认监听端口是 8888 ,现在想用 Apache 反向代理通过 443 端口 https 访问该服务,求问规则该怎么写?自己试了好久也没搞定。多谢了。
|
buseniMar 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> |
|
buseniMar 21, 2017 via Android
2
请自行百度下, Apache 转发需要开通什么模块,然后按照我上面的模板,把域名改成端口
|