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: How to get Apache to use a webproxy?
Author
id04



Joined: 08 Jul 2008
Posts: 2

PostPosted: Tue 08 Jul '08 16:06    Post subject: How to get Apache to use a webproxy? Reply with quote

Hi,

I have the problem to make ajax requests to a different webserver. To do so, I want to use mod_proxy, but since my developer machine is sitting behind a squid-webproxy(with basic authentication) that will not help me during development.

Where can I setup Apache to make requests to the proxy with user/password?
Or can I enter the proxy settings (including password) somewhere general in windows?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7372
Location: Germany, Next to Hamburg

PostPosted: Wed 09 Jul '08 22:41    Post subject: Reply with quote

How to set up apache as proxy => http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

use auth

http://httpd.apache.org/docs/2.2/howto/auth.html

In earlier days in browsers you could use http://user:password@domain.tld/file.ext

Not sure if a javascript request / ajax can do that, but you can try.
Back to top
id04



Joined: 08 Jul 2008
Posts: 2

PostPosted: Fri 11 Jul '08 10:25    Post subject: Reply with quote

James Blond wrote:

use auth

http://httpd.apache.org/docs/2.2/howto/auth.html


As I understand the auth works for requests towards the Apache, but I need authorization for requests that the mod_proxy forwards to our squid webproxy! Correct me if I am wrong, but as I understand mod_proxy, I can forward proxyrequests from apache to another proxy, but mod_proxy does not support basic authentication at the 2nd proxy
Back to top


Reply to topic   Topic: How to get Apache to use a webproxy? View previous topic :: View next topic
Post new topic   Forum Index -> Apache