httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chien-Lung Wu <c...@unity.ncsu.edu>
Subject Re: Reverse Proxy Server
Date Mon, 22 Apr 2002 19:27:21 GMT
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
****************************************************************************


Mime
View raw message