Posted by:
Maudib
(---.6197.cust.vallnet.com)
Thanks for the reply.
Let me try again.
I want to take an inbound URL like this one:
[
test.mydomain.com]
and based on the fact that the entire URL contains: "test.mydomain.com"
make the URL rewrite as:
[
test.mydomain.com]
I realize that this may seem strange - but the ProxyPass and ProxyPassReverse would then take this new URL and send it to my secondary application server (running on a different port of the same machine).
When the application server gets the URL, it can easily (and quickly/accurately) extract the:
ID=test.mydomain.com
which it will use to determine what client website it is serving.
Notes:
The application server can literally have thousands of client websites that are using CURL to send traffic to the main Apache server (by IP address).
If I was to construct the CURL url to simply have the: ID=test.mydomain.com appended to the URL, I would not need to do this.
However I want to let the Apache server do the work of determining what client website is attaching to it.
It does this well with the VirtualHost entry, but now I want the URL that Apache will send to the application server (with ProxyPass) to have the ID=test.mydomain.com added to the original URL.
In this manner - ANY of the URLs sent to the application server have the ID=test.mydomain.com added to them and the application server is able filter based on the value of "ID".
I hope this makes better sense - sorry for the long post.
Thanks!