httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tapas Mishra <mightydre...@gmail.com>
Subject Re: [users@httpd] rewrite rule for mingle
Date Fri, 11 Jun 2010 07:38:25 GMT
On Thu, Jun 10, 2010 at 7:04 PM, Tom Evans <tevans.uk@googlemail.com> wrote:

> The <IfModule mod_rewrite.c> section is not right at all.
>
> Stop me where I get it wrong
>
> site1.mydomain.com is your 'publicly available address' and you want
> your websites on 192.168.1.10 to appear proxied on this domain.
> site1.mydomain.com/mingle/ should proxy to the site at http://192.168.1.10:8080/
> site1.mydomain.com/ should proxy to the site at http://192.168.1.10/
> The apache server at 192.168.1.10 is configured to respond to the host
> 'site1.mydomain.com'

Correct.

> The apache server at 192.168.1.10:8080 is configured to respond to the
> host 'site1.mydomain.com'
Not at 8080 on 80

> Then your vhost should look like this:
Where which vhost should following be present on 192.168.1.10 or
server which is front end.

> <VirtualHost *:80 >
>    ServerName site1.mydomain.com
>    ServerAdmin webmaster@localhost
>
>    ProxyRequests off
>    <Proxy *>
>        Order deny,allow
>        Allow from all
>    </Proxy>
>    ProxyPreserveHost On
>    ProxyPass /mingle/ http://192.168.1.10:8080/
>    ProxyPass / http://192.168.1.10/
>    ProxyPassReverse /mingle/ http://192.168.1.10:8080/
>
>    ErrorLog /var/log/apache2/site1.mydomain.com_error.log
>
>    LogLevel warn
>
>    CustomLog /var/log/apache2/site1.mydomain.com_access.log combined
>    CustomLog /var/log/apache2/site1.mydomain.com-resp_log resp
>    LogFormat "%{X-Forwarded-For}i  %D %t" resp
> </VirtualHost>

Okay
> You do not need a ProxyPassReverse for proxying to
> http://192.168.1.10/, as it will generate headers based upon the
> received Host header (or it should).

I could not understand this one.


-- 
Tapas

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message