On Thu, Jun 10, 2010 at 1:11 PM, Tapas Mishra <mightydreams@xxxxxxxxx> wrote: > Actually I have got quite confused. > I will tell from start. .. > <VirtualHost *:80 > > > ServerName site1.mydomain.com > ServerAdmin webmaster@localhost > > ProxyRequests off > <Proxy *> > Order deny,allow > Allow from all > </Proxy> > ProxyPass / http://192.168.1.10/ > ProxyPassReverse / http://192.168.1.10/ > > <IfModule mod_rewrite.c> > ReWriteEngine on > RewriteRule ^/mingle(.*) http://site1.mydomain.com:8080//$1 [R,L] > </IfModule> > ErrorLog /var/log/apache2/site1.mydomain.com_error.log > > # Possible values include: debug, info, notice, warn, error, crit, > # alert, emerg. > 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> > 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' The apache server at 192.168.1.10:8080 is configured to respond to the host 'site1.mydomain.com' Then your vhost should look like this: <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> 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). Cheers Tom --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx