我正在努力与基本的Apache反向代理设置。 我有几个网站在一个盒子上运行。
现在我在主域名下build立一个子域名,我想从其他网站获取。 但是,由于某种原因,对子域的请求总是301redirect到主域。 我激活dumpio日志logging( 我怎样才能启用通过mod代理请求的日志logging ),但不能看到我请求页面时进来的任何错误。
子域的虚拟主机如下所示:
<VirtualHost *:*> LoadModule dumpio_module modules/mod_dumpio.so DumpIOInput On DumpIOOutput On #DumpIOLogLevel debugLogLevel debug ProxyPreserveHost On # Servers to proxy the connection, or; # List of application servers: # Usage: # ProxyPass / http://[IP Addr.]:[port]/ # ProxyPassReverse / http://[IP Addr.]:[port]/ # Example: ProxyPass / http://sub.example.com:8080/ ProxyPassReverse / http://sub.example.com:8080/ </VirtualHost>