Apache开启反向代理,启用的vhost文件为
ServerAdmin admin@gmail.com
ServerName localhost
ServerAlias localhost
ProxyRequests off
Order deny,allow
Allow from all
ProxyPass http://localhost:9000/
ProxyPassReverse http://localhost:9000/
但这样代理的效果是,所有80端口的请求都被nodejs接受了,Apache上其他的目录没法访问。怎样能做到Apache和nodejs真正公用80端口呢?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
通过
来区分。
最好通过是使用不同的域名来进行区分