Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

ProxyPass Help

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


ar.kothari at gmail

Apr 2, 2012, 8:33 AM

Post #1 of 3 (151 views)
Permalink
ProxyPass Help

Hello All,

I am new to Apache web server and its configuration. I have a very simple
question and I think most of you would have a ready answer for my question
:)

I am developing an application that will be part of a container
application. The container application handles the user authentication
part. My application would receive the authentication information and I
will use that to show/hide parts of my application. The container
application is on an integration machine and my application is currently on
my local. I cannot run the container application on my local machine.

My question is - can i point the link to my application on the container
application to my local machine using ProxyPass or ProxyPassReverse? The
link on the container application to my application is
http://<integrationbox>/myapp
. I was trying to do something like this:

ProxyPass /myapp/ http://localhost:8080/myapp
ProxyPassReverse /myapp/ http://localhost:8080/myapp

Will something like this work?

Also, the user information is stored in session by the container app. Will
I have access to that information?

Thanks in advance

AK


toomas.aas at raad

Apr 4, 2012, 10:01 AM

Post #2 of 3 (132 views)
Permalink
Re: ProxyPass Help [In reply to]

Hello!

Mon, 02 Apr 2012 kirjutas Abhinav Kothari <ar.kothari [at] gmail>:

> I am developing an application that will be part of a container
> application. The container application handles the user authentication
> part. My application would receive the authentication information and I
> will use that to show/hide parts of my application. The container
> application is on an integration machine and my application is currently on
> my local. I cannot run the container application on my local machine.
>
> My question is - can i point the link to my application on the container
> application to my local machine using ProxyPass or ProxyPassReverse? The
> link on the container application to my application is
> http://<integrationbox>/myapp

Yes, this should be possible.

> . I was trying to do something like this:
>
> ProxyPass /myapp/ http://localhost:8080/myapp
> ProxyPassReverse /myapp/ http://localhost:8080/myapp

Where did you add these directives? They should be in Apache
configuration on the integration machine, and point to your local
machine, like that:

ProxyPass /myapp/ http://mymachine:8080/myapp
ProxyPassReverse /myapp/ http://mymachine:8080/myapp

--
Toomas Aas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


ar.kothari at gmail

Apr 4, 2012, 12:16 PM

Post #3 of 3 (128 views)
Permalink
Re: ProxyPass Help [In reply to]

Thanks Tom.

If I do it the way you suggest, will session information persist? Can my
application running locally, be able to access session objects that the
container app had put in on the integration machine?

Thanks again!

On Wed, Apr 4, 2012 at 1:01 PM, Toomas Aas <toomas.aas [at] raad> wrote:

> Hello!
>
> Mon, 02 Apr 2012 kirjutas Abhinav Kothari <ar.kothari [at] gmail>:
>
>
> I am developing an application that will be part of a container
>> application. The container application handles the user authentication
>> part. My application would receive the authentication information and I
>> will use that to show/hide parts of my application. The container
>> application is on an integration machine and my application is currently
>> on
>> my local. I cannot run the container application on my local machine.
>>
>> My question is - can i point the link to my application on the container
>> application to my local machine using ProxyPass or ProxyPassReverse? The
>> link on the container application to my application is
>> http://<integrationbox>/myapp
>>
>
> Yes, this should be possible.
>
>
> . I was trying to do something like this:
>>
>> ProxyPass /myapp/ http://localhost:8080/myapp
>> ProxyPassReverse /myapp/ http://localhost:8080/myapp
>>
>
> Where did you add these directives? They should be in Apache configuration
> on the integration machine, and point to your local machine, like that:
>
> ProxyPass /myapp/ http://mymachine:8080/myapp
> ProxyPassReverse /myapp/ http://mymachine:8080/myapp
>
> --
> Toomas Aas
>
>

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.