Thanks for the tip. I prefer that way. The final config is:
Server 1
NameVirtualHost *:80
ServerName server.mydomain.com
ProxyPreserveHost On
RewriteEngine On
RewriteRule ^/(.*) http://60.234.nnn.nn:8008/$1 [L,P]
ServerName otherserver.mydomain.com
Pro
On 6/29/05, Cameron Beattie <[EMAIL PROTECTED]> wrote:
> 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:
Good that it works now, but your original setup would have worked had you added:
ProxyPreserveHost On
> -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 usin
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
ServerName server.mydomain.com
RewriteEngine On
RewriteRule ^/(.*) http://60.234.nnn.nn:8008/$1 [L,P]
ServerName otherserv
> -Original Message-
> From: Cameron Beattie [mailto:[EMAIL PROTECTED]
> Sent: Dienstag, 28. Juni 2005 10:15
> To: users@httpd.apache.org
> Subject: Re: [EMAIL PROTECTED] RewriteRule question: forward requests from
> one Apache server to another
>
>
> Ok so I checked httpd.conf on server
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
ServerName server.mydomain.com
> -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 confi