Thanks for the tip. I prefer that way. The final config is:
Server 1
NameVirtualHost *:80
VirtualHost *:80
ServerName server.mydomain.com
ProxyPreserveHost On
RewriteEngine On
RewriteRule ^/(.*) http://60.234.nnn.nn:8008/$1 [L,P]
/VirtualHost
VirtualHost *:80
-Original Message-
From: Cameron Beattie [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 29. Juni 2005 07:17
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] RewriteRule question: forward requests from
one Apache server to another
For those interested, I ended up using
-Original Message-
From: Cameron Beattie [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 28. Juni 2005 04:50
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] RewriteRule question: forward requests from one
Apache server to another
I am trying to set up the following
Ok so I checked httpd.conf on server 1 and I stupidly hadn't included
RewriteEngine On. I've done that and now I get served up a site from server
2, but it's the wrong site.
I have two virtual hosts set up as follows:
Server 1
NameVirtualHost *:80
VirtualHost *:80
ServerName
For those interested, I ended up using different ports to achieve the
desired result. There may be a better way but this works for me:
Server 1
VirtualHost *:80
ServerName server.mydomain.com
RewriteEngine On
RewriteRule ^/(.*) http://60.234.nnn.nn:8008/$1 [L,P]
/VirtualHost
I am trying to set up the following configuration:
1. Apache server with public IP address
2. Apache server behind NAT with no public IP address
3. Router with public IP address with port forwarding set up for port 8008
to Apache server 2
4. Public DNS record server.mydomain.com resolves to IP