目录
实战情况下还是要准备两台外网服务器.
--还是做个中转
1、代理机安装Apache:
apt-get install apache2
a2enmod proxy proxy_ajp proxy_balancer proxy_connect proxy_http
systemctl restart apache2
2、中间件设置转发:
添加代理
/etc/apache2/sites-enabled/000-default.conf
找到此配置文件
http:
156.238.233.99
ProxyPass "/" "http://CS的IP/"
ProxyPassReverse "/" "http://CS的IP/"
https:
ProxyPass "/" "https://Cs的IP/"
ProxyPassReverse "/" "https://Cs的IP/"
3、重启Apache服务
service apache2 restart
4、CS监听器配置转发机IP
...