You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by DJ AM_Juicebox <dj...@gmail.com> on 2010/01/04 01:17:02 UTC

[users@httpd] Setting up a basic http proxy?

Hi,

I'm looking to run apache as a proxy for web development. I'm running mac ox
10.5.4, which already has apache 2.2.8 installed and running.

I'd like to point my javascript files (which are running locally on my
machine) to:

  http://localhost/test.php

which would hit the local apache server, then have that apache instance
forward to my real remote server:

  http://www.mysite.com/test.php

I've looked at a few walkthroughs but they seem to be out of date. I'm
wondering if there's a recent how-to on setting this up - the doc here:

  http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

gives a basic example, but I'm not sure where that text should be added - to
http.conf? Do I simply add it there, then restart the server?

Thanks

Re: [users@httpd] Setting up a basic http proxy?

Posted by Devraj Mukherjee <de...@gmail.com>.
You are looking at the right documentation, you need to add rules that
are custom to your situation.

For example if your web server serving the JS is running on port 8080
a rule would look like

ProxyPass /js http://localhost:8080/

On Mon, Jan 4, 2010 at 11:17 AM, DJ AM_Juicebox
<dj...@gmail.com> wrote:
> Hi,
>
> I'm looking to run apache as a proxy for web development. I'm running mac ox
> 10.5.4, which already has apache 2.2.8 installed and running.
>
> I'd like to point my javascript files (which are running locally on my
> machine) to:
>
>   http://localhost/test.php
>
> which would hit the local apache server, then have that apache instance
> forward to my real remote server:
>
>   http://www.mysite.com/test.php
>
> I've looked at a few walkthroughs but they seem to be out of date. I'm
> wondering if there's a recent how-to on setting this up - the doc here:
>
>   http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
>
> gives a basic example, but I'm not sure where that text should be added - to
> http.conf? Do I simply add it there, then restart the server?
>
> Thanks
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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