You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Akash Jain <ak...@gmail.com> on 2013/08/25 07:17:31 UTC

[users@httpd] How to Proxy Requests

Hi,

Users of my website hit a AJAX POST call for validation of User ID.

The URL formed is
http://dummy.com/<RandomNumber>/handler/validateId?userid=<user entered
value>

** RandomNumber is any random number based on the instance the request gets
hit.

Now, at webserver level, I want that request to be processed by another URL
:
http://internalURL.com/handler/validateId?userid=<user entered value>

How can I achieve this type of POST proxy ?

Thanks.

Re: [users@httpd] How to Proxy Requests

Posted by jv r <jv...@gmail.com>.
You might use REQUEST_METHOD to chech the http method and other server
variables and the [P] flag in .htaccess.
If you don't use .htacces file, in the .conf file you might use
ProxyPass, but maybe is better for you, use a RewriteRule with [P] for
more flexibility.




2013/8/25 Akash Jain <ak...@gmail.com>

> We don't use htaccess file.  Will rewriterules work for POST requests?
>
> On 25 Aug 2013 16:00, "Aarti Sawant" <aa...@gmail.com> wrote:
>
> You can use htaccess to serve this purpose, use Rewrite rule for
> redirecting from one url to another url.
>
> Thanks,
> Aarti Sawant
>
>
>
>
> On Sun, Aug 25, 2013 at 10:47 AM, Akash Jain <ak...@gmail.com>
> wrote:
> >
> > Hi,
> >
> > Users o...
>
>

Re: [users@httpd] How to Proxy Requests

Posted by Akash Jain <ak...@gmail.com>.
We don't use htaccess file.  Will rewriterules work for POST requests?

On 25 Aug 2013 16:00, "Aarti Sawant" <aa...@gmail.com> wrote:

You can use htaccess to serve this purpose, use Rewrite rule for
redirecting from one url to another url.

Thanks,
Aarti Sawant




On Sun, Aug 25, 2013 at 10:47 AM, Akash Jain <ak...@gmail.com>
wrote:
>
> Hi,
>
> Users o...

Re: [users@httpd] How to Proxy Requests

Posted by Aarti Sawant <aa...@gmail.com>.
You can use htaccess to serve this purpose, use Rewrite rule for
redirecting from one url to another url.

Thanks,
Aarti Sawant


On Sun, Aug 25, 2013 at 10:47 AM, Akash Jain <ak...@gmail.com>wrote:

> Hi,
>
> Users of my website hit a AJAX POST call for validation of User ID.
>
> The URL formed is
> http://dummy.com/<RandomNumber>/handler/validateId?userid=<user entered
> value>
>
> ** RandomNumber is any random number based on the instance the request
> gets hit.
>
> Now, at webserver level, I want that request to be processed by another
> URL :
> http://internalURL.com/handler/validateId?userid=<user entered value>
>
> How can I achieve this type of POST proxy ?
>
> Thanks.
>