Eric thanks but I had seen those links.

For this setup I am facing this problem
In all the vhost definitions I use 
ProxyPreserveHost On

but all the internal servers which are having domain names as

    ttg.mydomain.com
    kki.mydomain.com
    ppo.mydomain.com
    qqw.mydomain.com

and one one of the above 

    kki.mydomain.com I have 16 different websites which have to be accessed as

        kki.mydomain.com/opi
        kki.mydomain.com/541
        kki.mydomain.com/q12
        kki.mydomain.com/msi

 and so on.

All of this are behind a server on which I have used mod_proxy 

here I used
<VirtualHost *:80>
ServerName      ttg.mydomain.com
ProxyPass / http://ttg.mydomain.com
ProxyPassReverse / http://ttg.mydomain.com
</VirtualHost>


(Internally also we are addressing these servers with same domain names)

<VirtualHost *:80>
ServerName      kki.mydomain.com
ProxyPass / http://kki.mydomain.com
ProxyPassReverse / http://kki.mydomain.com
</VirtualHost>

like this 2 more vhosts now comes the problem the other domains on 
kki.mydomain.com
are different type of content management systesm
which we would like to access as


        kki.mydomain.com/opi
        kki.mydomain.com/541
        kki.mydomain.com/q12
        kki.mydomain.com/msi

I tried adding in the 2nd vhost definition as above


<VirtualHost *:80>
ServerName      kki.mydomain.com
ProxyPass / http://kki.mydomain.com
ProxyPassReverse / http://kki.mydomain.com

ProxyPass /opi http://opi_on_kki
ProxyPassReverse /opi http://opi_on_kki

ProxyPass /541 http://541_on_kki
ProxyPassReverse /541 http://541_on_kki

ProxyPass /msi http://541_on_kki
ProxyPassReverse /msi http://541_on_kki

</VirtualHost>


Some of these content management systems generate URLS
at / and not as 
/opi
/msi 
or /541
so that my ProxyPass Rules work.

If 2 CMSes are generating a URL which is having page elements being served at /
then how do I handle this situation?




________________________________
From: Eric Covener <cove...@gmail.com>
To: users@httpd.apache.org
Sent: Fri, 20 August, 2010 4:35:53 PM
Subject: Re: [us...@httpd] using protocols other than http

On Fri, Aug 20, 2010 at 2:16 AM, James Godrej <jamesgod...@yahoo.in> wrote:
>  I am looking for a How to so that I can use that and use Apache as a proxy
> to other protocols.
> I believe as you make Apache so you must be having a how to some where my
> search results did not gave me desired results.
> Hence I asked this question.
> I am not re hashing any thing I had a doubt since some one told that you do
> not have a how to it is just a technical reference more over I am not able
> to understand from the docs which you pointed.So I wanted a working example
> if I could read and make things work on my server.
>

4th result on google.com for "apache proxy howto":

http://www.apachetutor.org/admin/reverseproxies

The manual has basic examples as well:

http://httpd.apache.org/docs/current/mod/mod_proxy.html#examples



-- 
Eric Covener
cove...@gmail.com

---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to