httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From solprovi...@apache.org
Subject Re: [users@httpd] rewrite or proxypass?
Date Thu, 18 Oct 2007 20:30:13 GMT
Where is the login homepage?  Where does it POST?
Where is the application?
What URLs do clients see?
How do those URLs reach the correct server/port?
How does the application send URLs usable by the client?

>From my understanding of your needs, only example.com:80 should be
accessible to clients.  You want to firewall port 8080 from clients.
Apache httpd on port 80 will proxy to port 8080.  Questions:
1. Are all requests using the proxy?  Why bother using a proxy?  (That
was my previous question.)
2. Does a virtual server name indicate using the proxy?  (app.example.com)
3. Do certain paths indicate using the proxy? (example.com/app/...)

Your current issue is the application is not aware of the proxy.
mod_proxy only rewrites request URLs.  You need to use one of the
following options:

1. Configure the application for use behind the proxy.  Something like:
ROOT_PREFIX = "http://www.example.com/app/"
The syntax will depend on the application and the abilities of the developers.

2. Use mod_proxy_html to rewrite the HTML sent by the application to
change every "http://www.example.com:8080/" to
"http"//www.example.com/app/".

solprovider

On 10/18/07, Patrick Coleman <pat@bluedog.net> wrote:
> I may have spoken a little too soon.
>
> While the entries I used ..
>
> ProxyPass / http://www.ourcompany.com:8080/
> ProxyPassReverse / http://www.ourcompany.com:8080/
>
> ..work on the initial screen and the first screen after logging in
> if I click on any that the 8080 shows up again in the URL?
>
> Is there something else that needs to be added to pick that up each
> time?
>
> On Oct 18, 2007, at 2:31 AM, solprovider@apache.org wrote:
> > Why not put the homepage/login page on port 80 and proxy the POST to
> > Tomcat?  Or are dynamic elements on the login page?
> >
> > If everything will be served by Tomcat, why not run tomcat on port 80?
> >
> > If you are using virtual servers, you should already have
> > configured the proxy.
> >
> > solprovider
> >
> > On 10/17/07, Patrick Coleman <pat@bluedog.net> wrote:
> >> I don't exactly know if this is a rewrite or proxypass or something
> >> else type of thing so
> >> I was hoping someone could help.
> >> I have a Tomcat app running on port 8080
> >> I can get to it through
> >> http://www.example.com:8080
> >>
> >> it goes to a login page and the URL displays
> >> http://www.example.com:8080/login
> >>
> >> I would like to be able to just put in
> >> http://www.example.com
> >> and get
> >> http://www.example.com/login
> >>
> >> Thanks.
> >> Pat

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


Mime
View raw message