nko
05-06-2008, 02:28 PM
Hello,
I have several computers at home, most of which are "servers" (they're home servers hosting content that is infrequently accessed by a handful of people, so I can play around with my network without worry). I have a dynamic DNS service pointing a few different records at my single IP.
I have two Apache2 web servers: web1 and web2. web1 is currently providing content just fine, and in fact a while back I configured a virtual host so it's actually hosting two different sites. Now, I've got a cool database with a web frontend on web2. I'd like web1 to forward requests for yet another URL to web2. I've tried some stuff with mod_proxy (http://www.schirrms.net/sme/SMEApacheReverseProxy.php , http://httpd.apache.org/docs/1.3/mod/mod_proxy.html , etc) yet when I go to the corresponding URL, I get the default page for web1 instead of anything from web2.
I'm running Debian 4 on both servers.
My listing for mods-enabled:
alias.load authz_default.load autoindex.load dav_fs.load env.load proxy_connect.load status.load
auth_basic.load authz_groupfile.load cgid.conf dav.load mime.load proxy_http.load
auth_digest.load authz_host.load cgid.load dir.conf negotiation.load proxy.load
authn_file.load authz_user.load dav_fs.conf dir.load proxy.conf setenvif.load
My "proxy_site" in /etc/apache2/sites-enabled:
<VirtualHost nkoweb2.no-ip.biz>
ServerName nkoweb2.no-ip.biz
ServerAlias 192.168.0.198
ProxyPreserveHost On
ProxyPass / http://192.168.0.198/
ProxyPassReverse / http://192.168.0.198/
</VirtualHost>
(I've changed my URLs to fake ones here for whatever reason). I've also tried using internal hostnames instead of internal IP addresses.
This is one of those things where the issue is that I don't understand how my idea of what I want to do maps to what Apache can actually make happen (and how it goes about it) so if I need to make more sense, please let me know!
I have several computers at home, most of which are "servers" (they're home servers hosting content that is infrequently accessed by a handful of people, so I can play around with my network without worry). I have a dynamic DNS service pointing a few different records at my single IP.
I have two Apache2 web servers: web1 and web2. web1 is currently providing content just fine, and in fact a while back I configured a virtual host so it's actually hosting two different sites. Now, I've got a cool database with a web frontend on web2. I'd like web1 to forward requests for yet another URL to web2. I've tried some stuff with mod_proxy (http://www.schirrms.net/sme/SMEApacheReverseProxy.php , http://httpd.apache.org/docs/1.3/mod/mod_proxy.html , etc) yet when I go to the corresponding URL, I get the default page for web1 instead of anything from web2.
I'm running Debian 4 on both servers.
My listing for mods-enabled:
alias.load authz_default.load autoindex.load dav_fs.load env.load proxy_connect.load status.load
auth_basic.load authz_groupfile.load cgid.conf dav.load mime.load proxy_http.load
auth_digest.load authz_host.load cgid.load dir.conf negotiation.load proxy.load
authn_file.load authz_user.load dav_fs.conf dir.load proxy.conf setenvif.load
My "proxy_site" in /etc/apache2/sites-enabled:
<VirtualHost nkoweb2.no-ip.biz>
ServerName nkoweb2.no-ip.biz
ServerAlias 192.168.0.198
ProxyPreserveHost On
ProxyPass / http://192.168.0.198/
ProxyPassReverse / http://192.168.0.198/
</VirtualHost>
(I've changed my URLs to fake ones here for whatever reason). I've also tried using internal hostnames instead of internal IP addresses.
This is one of those things where the issue is that I don't understand how my idea of what I want to do maps to what Apache can actually make happen (and how it goes about it) so if I need to make more sense, please let me know!