Chinaunix

标题: 虚拟机能不能跟反向代理共存? [打印本页]

作者: tsgx    时间: 2004-04-16 18:56
标题: 虚拟机能不能跟反向代理共存?
  1. <VirtualHost 218.18.107.69>;
  2. DocumentRoot /opt/lampp/htdocs/
  3. ServerName pcux.com
  4. DirectoryIndex index.html index.php
  5. ErrorLog logs/pcux.com-err_log
  6. CustomLog logs/pcux.com common

  7. </VirtualHost>;

  8. <VirtualHost 218.18.107.69>;
  9. DocumentRoot /home/httpd/html/
  10. DirectoryIndex index.html index.php
  11. ErrorLog logs/25u.net-err_log
  12. CustomLog logs/25u.net common
  13. ServerName 25u.net
  14. </VirtualHost>;
  15. #DocumentRoot /opt/lampp/htdocs/
  16. ProxyPass /www/ http://218.6.140.66/
  17. ProxyPassReverse /www/ http://218.6.140.66/
  18. ProxyPass /m/apache/ http://218.242.49.155/ApacheManual/
  19. ProxyPassReverse /m/apache/ http://218.242.49.155/ApacheManual/
复制代码


反向代理就不能工作了,不知道怎么样才能共存
http://pcux.com/www  不能访问。
作者: tsgx    时间: 2004-04-16 18:58
标题: 虚拟机能不能跟反向代理共存?
error message


  1. Bad Gateway
  2. The proxy server received an invalid response from an upstream server.

复制代码

作者: tsgx    时间: 2004-04-17 13:36
标题: 虚拟机能不能跟反向代理共存?
ding
作者: nozxb    时间: 2004-04-17 16:08
提示: 作者被禁止或删除 内容自动屏蔽
作者: tsgx    时间: 2004-04-17 16:24
标题: 虚拟机能不能跟反向代理共存?
原帖由 "nozxb" 发表:
</VirtualHost>;

<VirtualHost 218.18.107.69>;
DocumentRoot /home/httpd/html/
DirectoryIndex index.html index.php
ErrorLog logs/25u.net-err_log
CustomLog logs/25u.net common
Serv..........

这个显然不行,你还不明白虚拟机的意思吧。
25u.net是个独立的域名,我不能把人家只指向http://pcux.com/~httpd
作者: nozxb    时间: 2004-04-17 17:06
提示: 作者被禁止或删除 内容自动屏蔽
作者: nozxb    时间: 2004-04-17 17:42
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2