You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tushar Chavan <tu...@hotmail.com> on 2011/02/01 08:29:41 UTC

[users@httpd] One Apache for three diff. websites

Hi Experts,
 
We have three diff. web sites providing diff. content.
1. www.krm.com
2. https://epsrm.com/irj
3. http://epess.com/irj
 
We have one Apache server with one Public ip. Now from this Apache can we direct requests to three diff websites.
 
ProxyPass                   /irj     https://epsrm.com/irj
PorxyPassreverse        /irj     https://epsrm.com/irj
 
ProxyPass                   /        http://www.krm.com
ProxyPassreverse        /        http://www.krm.com
 
Now how we will pass request to third website 'http://epess.com/irj' ? As /irj will pass request to 'https://epsrm.com/irj'.
 
Moreever I can't do load balacing between https://epsrm.com/irj & http://epess.com/irj as the proivde diff. content.
 
Please suggest? 
 
Best regards,
Tushar 		 	   		  

Re: [users@httpd] One Apache for three diff. websites

Posted by Jeroen Geilman <je...@adaptr.nl>.
On 2/1/11 8:54 AM, Tushar Chavan wrote:
> Hi Joost,
>
> 1> First point I tried but it did not work. Also you are correct  , 
> this is SAP system.
>
> 2>/Use name based virtual hosts to separate the requests ?/
> //
>     Can you please give me hint consideting three diff. website? How 
> to use /name based virtual hosts to separate the requests ?/


http://httpd.apache.org/docs/2.2/vhosts/


-- 
J.


RE: [users@httpd] One Apache for three diff. websites

Posted by Tushar Chavan <tu...@hotmail.com>.
Hi Joost,
 
1> First point I tried but it did not work. Also you are correct  , this is SAP system.
 
2>Use name based virtual hosts to separate the requests ?
 
    Can you please give me hint consideting three diff. website? How to use name based virtual hosts to separate the requests ?
 
Best regards,
Tushar

 
> Date: Tue, 1 Feb 2011 08:43:46 +0100
> From: joost@sanguis.xs4all.nl
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] One Apache for three diff. websites
> 
> On Tue, February 1, 2011 08:29, Tushar Chavan wrote:
> >
> > Hi Experts,
> >
> > We have three diff. web sites providing diff. content.
> > 1. www.krm.com
> > 2. https://epsrm.com/irj
> > 3. http://epess.com/irj
> >
> > We have one Apache server with one Public ip. Now from this Apache can we
> > direct requests to three diff websites.
> >
> > ProxyPass /irj https://epsrm.com/irj
> > PorxyPassreverse /irj https://epsrm.com/irj
> >
> > ProxyPass / http://www.krm.com
> > ProxyPassreverse / http://www.krm.com
> >
> > Now how we will pass request to third website 'http://epess.com/irj' ? As
> > /irj will pass request to 'https://epsrm.com/irj'.
> 
> 1)
> ProxyPass /irj2 http://epess.com/irj
> ProxyPassReverse /irj2 http://epess.com/irj
> 
> But I doubt this will work. 'irj' is probably a SAP system, and they write
> *horrible* HTML.
> 
> 2)
> Use name based virtual hosts to separate the requests.
> 
> Joost
> 
> ---------------------------------------------------------------------
> 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
> 
 		 	   		  

Re: [users@httpd] One Apache for three diff. websites

Posted by Joost de Heer <jo...@sanguis.xs4all.nl>.
On Tue, February 1, 2011 08:29, Tushar Chavan wrote:
>
> Hi Experts,
>
> We have three diff. web sites providing diff. content.
> 1. www.krm.com
> 2. https://epsrm.com/irj
> 3. http://epess.com/irj
>
> We have one Apache server with one Public ip. Now from this Apache can we
> direct requests to three diff websites.
>
> ProxyPass                   /irj     https://epsrm.com/irj
> PorxyPassreverse        /irj     https://epsrm.com/irj
>
> ProxyPass                   /        http://www.krm.com
> ProxyPassreverse        /        http://www.krm.com
>
> Now how we will pass request to third website 'http://epess.com/irj' ? As
> /irj will pass request to 'https://epsrm.com/irj'.

1)
ProxyPass /irj2 http://epess.com/irj
ProxyPassReverse /irj2 http://epess.com/irj

But I doubt this will work. 'irj' is probably a SAP system, and they write
*horrible* HTML.

2)
Use name based virtual hosts to separate the requests.

Joost

---------------------------------------------------------------------
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