The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: Unable to use Location and PassProxy directive inside it  (Read 661 times)

raghavendra.tg

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
Unable to use Location and PassProxy directive inside it
« on: June 29, 2017, 11:42:04 AM »

Hi,
 I am an newbie to this apache world.
 I want to have a reverse proxy configuration inside the Location configuration. This location configuration has an setHandlder to my module.
 The configuration is as below.
 <Location /example>
 SetHandler my_handler
 ProxyPass "/example/" "http://10.139.8.61:8080/Demo2/"
 </Location>
 Using this I get a login page from Demo2. Once I enter the user name and password and submit it says file not found. Upon seeing the logs I see that it is going to search for the local file system rather display the success page.
 I require help to get this resolved.
 Thanks
 Raghavendra
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 831
Re: Unable to use Location and PassProxy directive inside it
« Reply #1 on: June 29, 2017, 09:32:39 PM »

Not being anything close to very knowledgeable of mod_proxy and knowing absolutely nothing about this "handler module" I have suspicion that the handler module intercepts the request after the login at which point it maybe sees what it wants to see only after that time and acts on the request so it never gets to proxypass at that point.

Why is the handler not on the backend server? This will not help me help you because I'm no proxy expert by any means but may help someone else help you.

And on top of all this you are using a rewrite to your handler module so that is might not be helping matters any.
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 575
Re: Unable to use Location and PassProxy directive inside it
« Reply #2 on: July 20, 2017, 10:17:45 PM »

You can not run a handler over content from a reverse proxy. You can only apply an outputfilter like mod_sed
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13