You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chien-Lung Wu <cw...@unity.ncsu.edu> on 2002/04/22 16:31:50 UTC

Reverse Proxy Server

Hi,

I have a question/problem in setting apache server as Reverse proxy.

Following is my configuration:


  http request ------ proxy server (myIPaddress, for example 192.18.32.3)
			|
			|
			+--> myRealWebService (URL= http://ServiceURL



Now in my httpd.conf, I have proxy setting as following:
(Note: the ServerRoot ="usr/local/apache2"
*******
ProxyRequests on

ProxyPass / http://ServiceURL
proxyPassReverse / http://ServiceURL


*******

With this configuration, everything is ok to access the Service by this
proxy mechanism.


However, if I set an "empty" directory (called "FBT") under the
ServerRoot (/usr/local/apache2/FBT) with the privilege:

	drwxr-xr-x   2 root     root         4096 Apr 22 09:49 FBT

And the proxy configuration is as following:

*****
ProxyRequests on


ProxyPass /FBT http://serviceURL
ProxyPassReverse /FBT http:/ServiceURL

*********

And I always get the message as foolowing:

-------------------------
Seeing this instead of the website you expected?

This page is here because the site administrator has changed the
configuration of this web server. Please contact the person responsible
for maintaining this server with
questions. The Apache Software Foundation, which wrote the web server
software this site administrator is using, has nothing to do with
maintaining this site and cannot help
resolve configuration issues.
------------------------

Can any one help me out this problem?  Can I just add a directory (empty)
as I did and then point to the real Service URL? or any thing I can do to
let reverse proxy server handle different server/service

	request<---->Proxy server
			|
			+------------service1_URL
			|
			+------------service2_URL
			|
			+------------service3_URL
			|
			.
			|
			+------------serviceN_URL


Appreciate your help. Thanks.


Chien-Lung
****************************************************************************
Chien-Lung Wu						cwu4@eos.ncsu.edu
Graduate Student of ECE 				(O) 919-513-1894
at North Carolina State University			(H) 919-233-6724
****************************************************************************



---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: Reverse Proxy Server

Posted by "ruirtsantos@clix.pt" <ru...@clix.pt>.
Chien-Lung,
Sorry I didn't understand, what do you mean by 
"input" data from your browser.

The way it is configured know whenever you ask
for
http://216.166.210.183/, this will give you
you're index page currently stored on your
reverse proxy in "/usr/local/apache2/htdocs". The
ProxyPass and ProxyPassReverse rules are only
going to be activated when ever you go into the
URL http://216.166.210.183/Test/.

If you mean by input data when you click on a
link on the page, then the problem may be the
links on the HTTP page that are currently using
full URLs (e.g. http://something/dir1/page.html)
instead to relative URLs (e.g. /dir1/page.html).
what this will do is redirect the user to a page
that probably does not exist, making the reverse
proxy to show another page.

Hope I was clear.

Chien-Lung Wu writes:

> Hi, Chrs:
> 
> Thanks for your explanation.
> 
> As you said that the name could be any name. You are right. For example, I
> set the proxy server to relay the service from http://172.18.24.86/
> 
> with the configuration:
> 
> 	ProxyPass /test/  http://172.18.24.86/
> 	ProxyPassReverse /test/ http://172.18.24.86/
> 
> And I use the remote client's browser to access the service as the
> following address
> 
> 	http://216.166.210.183/test/
> 
> and actually it works. However, with the page showup (it is real proxy,
> since I use the proxy server's URL to access the service (service URL:
> http:172.18.24.86)), if I "input" data from my browser (remote browser),
> it will show me the information page as I mentioned before:
> 
> --------------------begin message here-------------------
> 
> If you can see this, it means that the installation of the Apache web
> server software on this system was successful. You may now add content to
> this directory and replace this
> page.
> 
> 
> =====================================
>          Seeing this instead of the website you expected?
> 
> This page is here because the site administrator has changed the
> configuration of this web server. Please contact the person responsible
> for maintaining this server with
> questions. The Apache Software Foundation, which wrote the web server
> software this site administrator is using, has nothing to do with
> maintaining this site and cannot help
> resolve configuration issues.
> 
> ======================================
> 
> The Apache documentation has been included with this distribution.
> 
> You are free to use the image below on an Apache-powered web server.
> Thanks for using Apache!
> 
> --------------------End of message -------------
> 
> Note: in my case, when the first page showup, I will keyin the login name
> and passwd to access service from http://172.18.24.86/
> 
> 
> Compare to the configuration with:
> 
> 	ProxyPass /  http://172.18.24.86/
> 	ProxyPassReverse /  http://172.18.24.86/
> 
> I can access the service with the login name and passwd. (Everything is
> o.k. as I expected and I get all data pop out.)
> 
> Hence I wonder there should be some difference or missing between these
> two configuration. How come it is ok. if I set "/"; but it is not o.k., if
> I set /test/, instead of "/".
> 
> Are there is any I missing or any other "parameters" I need to turn on.
> 
> Attachment is the configuration file (httpd.conf) I used in my case.
> 
> Thanks.
> 
> 
> Chien-Lung
> 
> 
> 
> On Mon, 22 Apr 2002, ruirtsantos@clix.pt wrote:
> 
>>
>> Chien,
>> No it doesn't you can name it what ever you want.
>>
>> Lets say you have reverse proxy named servera
>> that will relay requests to webserverb
>>
>> If you add the directive following directive on
>> the httpd.conf for you reverse proxy all requests
>> to http://servera/a/ will be in fact relayed from
>> http://webserverb/.
>>
>> ProxyPass /a/ http://webserverb/
>> proxyPassReverse /a/ http://webserverb/
>>
>> I hope this clear's it for you.
>>
>> Chrs,
>>
>> Chien-Lung Wu writes:
>>
>> > Hi, Chrs,
>> >
>> > Thanks for your reply. And couple things to make it clearlly.
>> >
>> > First, you point out the error (thanks). Do you think the name should be
>> > the same
>> >>
>> >> Hi,
>> >> You have an error on your configuration, it
>> >> should be like:
>> >>
>> >> ProxyPass /ServiceURL/ http://ServiceURL/
>> >> proxyPassReverse /ServiceURL/ http://ServiceURL/
>> >
>> > For example, if my proxy server is http://216.166.210.183 and my
>> > serviceURL is http://172.16.24.86/ , therefore, as you point out the
>> > error,
>> >
>> > the configuration should be:
>> >
>> > 	ProxyPass /172.16.24.86/ http://172.16.24.86/
>> > 	ProxyPassReverse /172.16.24.86/ http://172.16.24.86/
>> >
>> > Is that right? (it seems weird to me.)
>> >
>> > Assuming I have a service putting in
>> >
>> > 	http://172.16.24.86/TEST/
>> >
>> > and as I check the the apache's doc and books, the configuration is:
>> >
>> > 		ProxyPass /TEST/ http://172.16.24.86/TEST/
>> > 		ProxyPassReverse /TEST/ http://172.16.24.86/TEST/
>> > Do you think the localtion "/TEST/" at the proxy server SHOULD be the same
>> > as the location at the real service server,
>> >
>> > 	http://172.16.24.86/TEST/
>> >  			   ------
>> >
>> > Can you give me a little bit expain about the syntax error? Thanks.
>> >
>> >
>> > Chien-Lung
>> >
>> >
>> >
>> >>
>> >> If the proxy server is working properly you can
>> >> even disable proxy requests and cache.
>> >> ProxyRequests Off
>> >> NoCache       *
>> >>
>> >> Chrs,
>> >>
>> >> Chien-Lung Wu writes:
>> >>
>> >> > Hi,
>> >> >
>> >> > I have a question/problem in setting apache server as Reverse proxy.
>> >> >
>> >> > Following is my configuration:
>> >> >
>> >> >
>> >> >   http request ------ proxy server (myIPaddress, for example 192.18.32.3)
>> >> > 			|
>> >> > 			|
>> >> > 			+--> myRealWebService (URL= http://ServiceURL
>> >> >
>> >> >
>> >> >
>> >> > Now in my httpd.conf, I have proxy setting as following:
>> >> > (Note: the ServerRoot ="usr/local/apache2"
>> >> > *******
>> >> > ProxyRequests on
>> >> >
>> >> > ProxyPass / http://ServiceURL
>> >> > proxyPassReverse / http://ServiceURL
>> >> >
>> >> >
>> >> > *******
>> >> >
>> >> > With this configuration, everything is ok to access the Service by this
>> >> > proxy mechanism.
>> >> >
>> >> >
>> >> > However, if I set an "empty" directory (called "FBT") under the
>> >> > ServerRoot (/usr/local/apache2/FBT) with the privilege:
>> >> >
>> >> > 	drwxr-xr-x   2 root     root         4096 Apr 22 09:49 FBT
>> >> >
>> >> > And the proxy configuration is as following:
>> >> >
>> >> > *****
>> >> > ProxyRequests on
>> >> >
>> >> >
>> >> > ProxyPass /FBT http://serviceURL
>> >> > ProxyPassReverse /FBT http:/ServiceURL
>> >> >
>> >> > *********
>> >> >
>> >> > And I always get the message as foolowing:
>> >> >
>> >> > -------------------------
>> >> > Seeing this instead of the website you expected?
>> >> >
>> >> > This page is here because the site administrator has changed the
>> >> > configuration of this web server. Please contact the person responsible
>> >> > for maintaining this server with
>> >> > questions. The Apache Software Foundation, which wrote the web server
>> >> > software this site administrator is using, has nothing to do with
>> >> > maintaining this site and cannot help
>> >> > resolve configuration issues.
>> >> > ------------------------
>> >> >
>> >> > Can any one help me out this problem?  Can I just add a directory (empty)
>> >> > as I did and then point to the real Service URL? or any thing I can do to
>> >> > let reverse proxy server handle different server/service
>> >> >
>> >> > 	request<---->Proxy server
>> >> > 			|
>> >> > 			+------------service1_URL
>> >> > 			|
>> >> > 			+------------service2_URL
>> >> > 			|
>> >> > 			+------------service3_URL
>> >> > 			|
>> >> > 			.
>> >> > 			|
>> >> > 			+------------serviceN_URL
>> >> >
>> >> >
>> >> > Appreciate your help. Thanks.
>> >> >
>> >> >
>> >> > Chien-Lung
>> >> > ****************************************************************************
>> >> > Chien-Lung Wu						cwu4@eos.ncsu.edu
>> >> > Graduate Student of ECE 				(O) 919-513-1894
>> >> > at North Carolina State University			(H) 919-233-6724
>> >> > ****************************************************************************
>> >> >
>> >> >
>> >> >
>> >> > ---------------------------------------------------------------------
>> >> > 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
>> >> > For additional commands, e-mail: users-help@httpd.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >> Rui Santos
>> >>
>> >>
>> >> --
>> >> Crie o seu Email Gr�tis no Clix em
>> >> http://registo.clix.pt/
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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
>> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >>
>> >>
>> >
>> > ****************************************************************************
>> > Chien-Lung Wu						cwu4@eos.ncsu.edu
>> > Graduate Student of ECE 				(O) 919-513-1894
>> > at North Carolina State University			(H) 919-233-6724
>> > ****************************************************************************
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > 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
>> > For additional commands, e-mail: users-help@httpd.apache.org
>> >
>>
>>
>>
>> Rui Santos
>>
>>
>> --
>> Crie o seu Email Gr�tis no Clix em
>> http://registo.clix.pt/
>>
>> ---------------------------------------------------------------------
>> 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
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
> 
> ****************************************************************************
> Chien-Lung Wu						cwu4@eos.ncsu.edu
> Graduate Student of ECE 				(O) 919-513-1894
> at North Carolina State University			(H) 919-233-6724
> ****************************************************************************
> 



Rui Santos


--
Crie o seu Email Gr�tis no Clix em
http://registo.clix.pt/

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: Reverse Proxy Server

Posted by Chien-Lung Wu <cw...@unity.ncsu.edu>.
Hi, Chrs:

Thanks for your explanation.

As you said that the name could be any name. You are right. For example, I
set the proxy server to relay the service from http://172.18.24.86/

with the configuration:

	ProxyPass /test/  http://172.18.24.86/
	ProxyPassReverse /test/ http://172.18.24.86/

And I use the remote client's browser to access the service as the
following address

	http://216.166.210.183/test/

and actually it works. However, with the page showup (it is real proxy,
since I use the proxy server's URL to access the service (service URL:
http:172.18.24.86)), if I "input" data from my browser (remote browser),
it will show me the information page as I mentioned before:

--------------------begin message here-------------------

If you can see this, it means that the installation of the Apache web
server software on this system was successful. You may now add content to
this directory and replace this
page.


=====================================
         Seeing this instead of the website you expected?

This page is here because the site administrator has changed the
configuration of this web server. Please contact the person responsible
for maintaining this server with
questions. The Apache Software Foundation, which wrote the web server
software this site administrator is using, has nothing to do with
maintaining this site and cannot help
resolve configuration issues.

======================================

The Apache documentation has been included with this distribution.

You are free to use the image below on an Apache-powered web server.
Thanks for using Apache!

--------------------End of message -------------

Note: in my case, when the first page showup, I will keyin the login name
and passwd to access service from http://172.18.24.86/


Compare to the configuration with:

	ProxyPass /  http://172.18.24.86/
	ProxyPassReverse /  http://172.18.24.86/

I can access the service with the login name and passwd. (Everything is
o.k. as I expected and I get all data pop out.)

Hence I wonder there should be some difference or missing between these
two configuration. How come it is ok. if I set "/"; but it is not o.k., if
I set /test/, instead of "/".

Are there is any I missing or any other "parameters" I need to turn on.

Attachment is the configuration file (httpd.conf) I used in my case.

Thanks.


Chien-Lung



On Mon, 22 Apr 2002, ruirtsantos@clix.pt wrote:

>
> Chien,
> No it doesn't you can name it what ever you want.
>
> Lets say you have reverse proxy named servera
> that will relay requests to webserverb
>
> If you add the directive following directive on
> the httpd.conf for you reverse proxy all requests
> to http://servera/a/ will be in fact relayed from
> http://webserverb/.
>
> ProxyPass /a/ http://webserverb/
> proxyPassReverse /a/ http://webserverb/
>
> I hope this clear's it for you.
>
> Chrs,
>
> Chien-Lung Wu writes:
>
> > Hi, Chrs,
> >
> > Thanks for your reply. And couple things to make it clearlly.
> >
> > First, you point out the error (thanks). Do you think the name should be
> > the same
> >>
> >> Hi,
> >> You have an error on your configuration, it
> >> should be like:
> >>
> >> ProxyPass /ServiceURL/ http://ServiceURL/
> >> proxyPassReverse /ServiceURL/ http://ServiceURL/
> >
> > For example, if my proxy server is http://216.166.210.183 and my
> > serviceURL is http://172.16.24.86/ , therefore, as you point out the
> > error,
> >
> > the configuration should be:
> >
> > 	ProxyPass /172.16.24.86/ http://172.16.24.86/
> > 	ProxyPassReverse /172.16.24.86/ http://172.16.24.86/
> >
> > Is that right? (it seems weird to me.)
> >
> > Assuming I have a service putting in
> >
> > 	http://172.16.24.86/TEST/
> >
> > and as I check the the apache's doc and books, the configuration is:
> >
> > 		ProxyPass /TEST/ http://172.16.24.86/TEST/
> > 		ProxyPassReverse /TEST/ http://172.16.24.86/TEST/
> > Do you think the localtion "/TEST/" at the proxy server SHOULD be the same
> > as the location at the real service server,
> >
> > 	http://172.16.24.86/TEST/
> >  			   ------
> >
> > Can you give me a little bit expain about the syntax error? Thanks.
> >
> >
> > Chien-Lung
> >
> >
> >
> >>
> >> If the proxy server is working properly you can
> >> even disable proxy requests and cache.
> >> ProxyRequests Off
> >> NoCache       *
> >>
> >> Chrs,
> >>
> >> Chien-Lung Wu writes:
> >>
> >> > Hi,
> >> >
> >> > I have a question/problem in setting apache server as Reverse proxy.
> >> >
> >> > Following is my configuration:
> >> >
> >> >
> >> >   http request ------ proxy server (myIPaddress, for example 192.18.32.3)
> >> > 			|
> >> > 			|
> >> > 			+--> myRealWebService (URL= http://ServiceURL
> >> >
> >> >
> >> >
> >> > Now in my httpd.conf, I have proxy setting as following:
> >> > (Note: the ServerRoot ="usr/local/apache2"
> >> > *******
> >> > ProxyRequests on
> >> >
> >> > ProxyPass / http://ServiceURL
> >> > proxyPassReverse / http://ServiceURL
> >> >
> >> >
> >> > *******
> >> >
> >> > With this configuration, everything is ok to access the Service by this
> >> > proxy mechanism.
> >> >
> >> >
> >> > However, if I set an "empty" directory (called "FBT") under the
> >> > ServerRoot (/usr/local/apache2/FBT) with the privilege:
> >> >
> >> > 	drwxr-xr-x   2 root     root         4096 Apr 22 09:49 FBT
> >> >
> >> > And the proxy configuration is as following:
> >> >
> >> > *****
> >> > ProxyRequests on
> >> >
> >> >
> >> > ProxyPass /FBT http://serviceURL
> >> > ProxyPassReverse /FBT http:/ServiceURL
> >> >
> >> > *********
> >> >
> >> > And I always get the message as foolowing:
> >> >
> >> > -------------------------
> >> > Seeing this instead of the website you expected?
> >> >
> >> > This page is here because the site administrator has changed the
> >> > configuration of this web server. Please contact the person responsible
> >> > for maintaining this server with
> >> > questions. The Apache Software Foundation, which wrote the web server
> >> > software this site administrator is using, has nothing to do with
> >> > maintaining this site and cannot help
> >> > resolve configuration issues.
> >> > ------------------------
> >> >
> >> > Can any one help me out this problem?  Can I just add a directory (empty)
> >> > as I did and then point to the real Service URL? or any thing I can do to
> >> > let reverse proxy server handle different server/service
> >> >
> >> > 	request<---->Proxy server
> >> > 			|
> >> > 			+------------service1_URL
> >> > 			|
> >> > 			+------------service2_URL
> >> > 			|
> >> > 			+------------service3_URL
> >> > 			|
> >> > 			.
> >> > 			|
> >> > 			+------------serviceN_URL
> >> >
> >> >
> >> > Appreciate your help. Thanks.
> >> >
> >> >
> >> > Chien-Lung
> >> > ****************************************************************************
> >> > Chien-Lung Wu						cwu4@eos.ncsu.edu
> >> > Graduate Student of ECE 				(O) 919-513-1894
> >> > at North Carolina State University			(H) 919-233-6724
> >> > ****************************************************************************
> >> >
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > 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
> >> > For additional commands, e-mail: users-help@httpd.apache.org
> >> >
> >>
> >>
> >>
> >> Rui Santos
> >>
> >>
> >> --
> >> Crie o seu Email Gr�tis no Clix em
> >> http://registo.clix.pt/
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>
> >
> > ****************************************************************************
> > Chien-Lung Wu						cwu4@eos.ncsu.edu
> > Graduate Student of ECE 				(O) 919-513-1894
> > at North Carolina State University			(H) 919-233-6724
> > ****************************************************************************
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
>
> Rui Santos
>
>
> --
> Crie o seu Email Gr�tis no Clix em
> http://registo.clix.pt/
>
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

****************************************************************************
Chien-Lung Wu						cwu4@eos.ncsu.edu
Graduate Student of ECE 				(O) 919-513-1894
at North Carolina State University			(H) 919-233-6724
****************************************************************************


Re: Reverse Proxy Server

Posted by "ruirtsantos@clix.pt" <ru...@clix.pt>.
Chien,
No it doesn't you can name it what ever you want.

Lets say you have reverse proxy named servera
that will relay requests to webserverb

If you add the directive following directive on
the httpd.conf for you reverse proxy all requests
to http://servera/a/ will be in fact relayed from
http://webserverb/.
 
ProxyPass /a/ http://webserverb/
proxyPassReverse /a/ http://webserverb/

I hope this clear's it for you.

Chrs,

Chien-Lung Wu writes:

> Hi, Chrs,
> 
> Thanks for your reply. And couple things to make it clearlly.
> 
> First, you point out the error (thanks). Do you think the name should be
> the same
>>
>> Hi,
>> You have an error on your configuration, it
>> should be like:
>>
>> ProxyPass /ServiceURL/ http://ServiceURL/
>> proxyPassReverse /ServiceURL/ http://ServiceURL/
> 
> For example, if my proxy server is http://216.166.210.183 and my
> serviceURL is http://172.16.24.86/ , therefore, as you point out the
> error,
> 
> the configuration should be:
> 
> 	ProxyPass /172.16.24.86/ http://172.16.24.86/
> 	ProxyPassReverse /172.16.24.86/ http://172.16.24.86/
> 
> Is that right? (it seems weird to me.)
> 
> Assuming I have a service putting in
> 
> 	http://172.16.24.86/TEST/
> 
> and as I check the the apache's doc and books, the configuration is:
> 
> 		ProxyPass /TEST/ http://172.16.24.86/TEST/
> 		ProxyPassReverse /TEST/ http://172.16.24.86/TEST/
> Do you think the localtion "/TEST/" at the proxy server SHOULD be the same
> as the location at the real service server,
> 
> 	http://172.16.24.86/TEST/
>  			   ------
> 
> Can you give me a little bit expain about the syntax error? Thanks.
> 
> 
> Chien-Lung
> 
> 
> 
>>
>> If the proxy server is working properly you can
>> even disable proxy requests and cache.
>> ProxyRequests Off
>> NoCache       *
>>
>> Chrs,
>>
>> Chien-Lung Wu writes:
>>
>> > Hi,
>> >
>> > I have a question/problem in setting apache server as Reverse proxy.
>> >
>> > Following is my configuration:
>> >
>> >
>> >   http request ------ proxy server (myIPaddress, for example 192.18.32.3)
>> > 			|
>> > 			|
>> > 			+--> myRealWebService (URL= http://ServiceURL
>> >
>> >
>> >
>> > Now in my httpd.conf, I have proxy setting as following:
>> > (Note: the ServerRoot ="usr/local/apache2"
>> > *******
>> > ProxyRequests on
>> >
>> > ProxyPass / http://ServiceURL
>> > proxyPassReverse / http://ServiceURL
>> >
>> >
>> > *******
>> >
>> > With this configuration, everything is ok to access the Service by this
>> > proxy mechanism.
>> >
>> >
>> > However, if I set an "empty" directory (called "FBT") under the
>> > ServerRoot (/usr/local/apache2/FBT) with the privilege:
>> >
>> > 	drwxr-xr-x   2 root     root         4096 Apr 22 09:49 FBT
>> >
>> > And the proxy configuration is as following:
>> >
>> > *****
>> > ProxyRequests on
>> >
>> >
>> > ProxyPass /FBT http://serviceURL
>> > ProxyPassReverse /FBT http:/ServiceURL
>> >
>> > *********
>> >
>> > And I always get the message as foolowing:
>> >
>> > -------------------------
>> > Seeing this instead of the website you expected?
>> >
>> > This page is here because the site administrator has changed the
>> > configuration of this web server. Please contact the person responsible
>> > for maintaining this server with
>> > questions. The Apache Software Foundation, which wrote the web server
>> > software this site administrator is using, has nothing to do with
>> > maintaining this site and cannot help
>> > resolve configuration issues.
>> > ------------------------
>> >
>> > Can any one help me out this problem?  Can I just add a directory (empty)
>> > as I did and then point to the real Service URL? or any thing I can do to
>> > let reverse proxy server handle different server/service
>> >
>> > 	request<---->Proxy server
>> > 			|
>> > 			+------------service1_URL
>> > 			|
>> > 			+------------service2_URL
>> > 			|
>> > 			+------------service3_URL
>> > 			|
>> > 			.
>> > 			|
>> > 			+------------serviceN_URL
>> >
>> >
>> > Appreciate your help. Thanks.
>> >
>> >
>> > Chien-Lung
>> > ****************************************************************************
>> > Chien-Lung Wu						cwu4@eos.ncsu.edu
>> > Graduate Student of ECE 				(O) 919-513-1894
>> > at North Carolina State University			(H) 919-233-6724
>> > ****************************************************************************
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > 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
>> > For additional commands, e-mail: users-help@httpd.apache.org
>> >
>>
>>
>>
>> Rui Santos
>>
>>
>> --
>> Crie o seu Email Gr�tis no Clix em
>> http://registo.clix.pt/
>>
>> ---------------------------------------------------------------------
>> 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
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
> 
> ****************************************************************************
> Chien-Lung Wu						cwu4@eos.ncsu.edu
> Graduate Student of ECE 				(O) 919-513-1894
> at North Carolina State University			(H) 919-233-6724
> ****************************************************************************
> 
> 
> 
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
> 



Rui Santos


--
Crie o seu Email Gr�tis no Clix em
http://registo.clix.pt/

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: Reverse Proxy Server

Posted by Chien-Lung Wu <cw...@unity.ncsu.edu>.
Hi, Chrs,

Thanks for your reply. And couple things to make it clearlly.

First, you point out the error (thanks). Do you think the name should be
the same
>
> Hi,
> You have an error on your configuration, it
> should be like:
>
> ProxyPass /ServiceURL/ http://ServiceURL/
> proxyPassReverse /ServiceURL/ http://ServiceURL/

For example, if my proxy server is http://216.166.210.183 and my
serviceURL is http://172.16.24.86/ , therefore, as you point out the
error,

the configuration should be:

	ProxyPass /172.16.24.86/ http://172.16.24.86/
	ProxyPassReverse /172.16.24.86/ http://172.16.24.86/

Is that right? (it seems weird to me.)

Assuming I have a service putting in

	http://172.16.24.86/TEST/

and as I check the the apache's doc and books, the configuration is:

		ProxyPass /TEST/ http://172.16.24.86/TEST/
		ProxyPassReverse /TEST/ http://172.16.24.86/TEST/
Do you think the localtion "/TEST/" at the proxy server SHOULD be the same
as the location at the real service server,

	http://172.16.24.86/TEST/
 			   ------

Can you give me a little bit expain about the syntax error? Thanks.


Chien-Lung



>
> If the proxy server is working properly you can
> even disable proxy requests and cache.
> ProxyRequests Off
> NoCache       *
>
> Chrs,
>
> Chien-Lung Wu writes:
>
> > Hi,
> >
> > I have a question/problem in setting apache server as Reverse proxy.
> >
> > Following is my configuration:
> >
> >
> >   http request ------ proxy server (myIPaddress, for example 192.18.32.3)
> > 			|
> > 			|
> > 			+--> myRealWebService (URL= http://ServiceURL
> >
> >
> >
> > Now in my httpd.conf, I have proxy setting as following:
> > (Note: the ServerRoot ="usr/local/apache2"
> > *******
> > ProxyRequests on
> >
> > ProxyPass / http://ServiceURL
> > proxyPassReverse / http://ServiceURL
> >
> >
> > *******
> >
> > With this configuration, everything is ok to access the Service by this
> > proxy mechanism.
> >
> >
> > However, if I set an "empty" directory (called "FBT") under the
> > ServerRoot (/usr/local/apache2/FBT) with the privilege:
> >
> > 	drwxr-xr-x   2 root     root         4096 Apr 22 09:49 FBT
> >
> > And the proxy configuration is as following:
> >
> > *****
> > ProxyRequests on
> >
> >
> > ProxyPass /FBT http://serviceURL
> > ProxyPassReverse /FBT http:/ServiceURL
> >
> > *********
> >
> > And I always get the message as foolowing:
> >
> > -------------------------
> > Seeing this instead of the website you expected?
> >
> > This page is here because the site administrator has changed the
> > configuration of this web server. Please contact the person responsible
> > for maintaining this server with
> > questions. The Apache Software Foundation, which wrote the web server
> > software this site administrator is using, has nothing to do with
> > maintaining this site and cannot help
> > resolve configuration issues.
> > ------------------------
> >
> > Can any one help me out this problem?  Can I just add a directory (empty)
> > as I did and then point to the real Service URL? or any thing I can do to
> > let reverse proxy server handle different server/service
> >
> > 	request<---->Proxy server
> > 			|
> > 			+------------service1_URL
> > 			|
> > 			+------------service2_URL
> > 			|
> > 			+------------service3_URL
> > 			|
> > 			.
> > 			|
> > 			+------------serviceN_URL
> >
> >
> > Appreciate your help. Thanks.
> >
> >
> > Chien-Lung
> > ****************************************************************************
> > Chien-Lung Wu						cwu4@eos.ncsu.edu
> > Graduate Student of ECE 				(O) 919-513-1894
> > at North Carolina State University			(H) 919-233-6724
> > ****************************************************************************
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
>
> Rui Santos
>
>
> --
> Crie o seu Email Gr�tis no Clix em
> http://registo.clix.pt/
>
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

****************************************************************************
Chien-Lung Wu						cwu4@eos.ncsu.edu
Graduate Student of ECE 				(O) 919-513-1894
at North Carolina State University			(H) 919-233-6724
****************************************************************************



---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: Reverse Proxy Server

Posted by "ruirtsantos@clix.pt" <ru...@clix.pt>.
Hi,
You have an error on your configuration, it
should be like:

ProxyPass /ServiceURL/ http://ServiceURL/
proxyPassReverse /ServiceURL/ http://ServiceURL/

If the proxy server is working properly you can
even disable proxy requests and cache.
ProxyRequests Off
NoCache       *

Chrs,

Chien-Lung Wu writes:

> Hi,
> 
> I have a question/problem in setting apache server as Reverse proxy.
> 
> Following is my configuration:
> 
> 
>   http request ------ proxy server (myIPaddress, for example 192.18.32.3)
> 			|
> 			|
> 			+--> myRealWebService (URL= http://ServiceURL
> 
> 
> 
> Now in my httpd.conf, I have proxy setting as following:
> (Note: the ServerRoot ="usr/local/apache2"
> *******
> ProxyRequests on
> 
> ProxyPass / http://ServiceURL
> proxyPassReverse / http://ServiceURL
> 
> 
> *******
> 
> With this configuration, everything is ok to access the Service by this
> proxy mechanism.
> 
> 
> However, if I set an "empty" directory (called "FBT") under the
> ServerRoot (/usr/local/apache2/FBT) with the privilege:
> 
> 	drwxr-xr-x   2 root     root         4096 Apr 22 09:49 FBT
> 
> And the proxy configuration is as following:
> 
> *****
> ProxyRequests on
> 
> 
> ProxyPass /FBT http://serviceURL
> ProxyPassReverse /FBT http:/ServiceURL
> 
> *********
> 
> And I always get the message as foolowing:
> 
> -------------------------
> Seeing this instead of the website you expected?
> 
> This page is here because the site administrator has changed the
> configuration of this web server. Please contact the person responsible
> for maintaining this server with
> questions. The Apache Software Foundation, which wrote the web server
> software this site administrator is using, has nothing to do with
> maintaining this site and cannot help
> resolve configuration issues.
> ------------------------
> 
> Can any one help me out this problem?  Can I just add a directory (empty)
> as I did and then point to the real Service URL? or any thing I can do to
> let reverse proxy server handle different server/service
> 
> 	request<---->Proxy server
> 			|
> 			+------------service1_URL
> 			|
> 			+------------service2_URL
> 			|
> 			+------------service3_URL
> 			|
> 			.
> 			|
> 			+------------serviceN_URL
> 
> 
> Appreciate your help. Thanks.
> 
> 
> Chien-Lung
> ****************************************************************************
> Chien-Lung Wu						cwu4@eos.ncsu.edu
> Graduate Student of ECE 				(O) 919-513-1894
> at North Carolina State University			(H) 919-233-6724
> ****************************************************************************
> 
> 
> 
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
> 



Rui Santos


--
Crie o seu Email Gr�tis no Clix em
http://registo.clix.pt/

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org