logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Question about usage of mod_proxy_connect and mod_rewrite
Author
Sadeghi85



Joined: 06 Jan 2013
Posts: 1

PostPosted: Sun 06 Jan '13 20:13    Post subject: Question about usage of mod_proxy_connect and mod_rewrite Reply with quote

Hello,

I want to setup Apache with mod_proxy_connect on Windows so that when a client sends a CONNECT request to Apache, instead of getting the requested page by itself, it gives the control to a script(possibly by using mod_rewrite). How do I do that?

I don't know how the CONNECT method works, so I'm not sure if what I asked is even possible. If it's not possible due to the way CONNECT works, consider this second question:

When a client sends a CONNECT request to Apache to get a page from www.example.com, I want Apache to connect to the site I'm specifying instead and act as if it is connecting to www.example.com. Is this one possible?

Thanks.
Back to top
japi



Joined: 05 Jan 2013
Posts: 6
Location: Frankfurt

PostPosted: Mon 07 Jan '13 11:34    Post subject: Reply with quote

It would be much less work to just use the reverse proxy functionality in mod_proxy.
A one-liner would lead to the result you described:

http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypass
Back to top


Reply to topic   Topic: Question about usage of mod_proxy_connect and mod_rewrite View previous topic :: View next topic
Post new topic   Forum Index -> Apache