RE: Configure Apache behind proxy with auth [wd-vc]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks!



From: Kurt.Bremser@xxxxxxxxxx
To: users@xxxxxxxxxxxxxxxx
Date: Fri, 16 Oct 2015 15:40:30 +0200
Subject: RE: Configure Apache behind proxy with auth [wd-vc]

Then your problem is not with apache, but with curl.
may be helpful.
 
Kurt Bremser
AMOS Austria
 
Newton was wrong. There is no gravity. The Earth sucks.

Von: Lucas Santos Sanches [lcssanches@xxxxxxxxxxx]
Gesendet: Freitag, 16. Oktober 2015 15:08
An: users@xxxxxxxxxxxxxxxx
Betreff: **SPAM?** RE: Configure Apache behind proxy with auth [wd-vc]

using cUrl

here is

$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($curl, CURLOPT_TIMEOUT, $curl_timeout);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
if ($stream_context != null)
{
$opts = stream_context_get_options($stream_context);
if (isset($opts['http']['method']) && Tools::strtolower($opts['http']['method']) == 'post')
{
curl_setopt($curl, CURLOPT_POST, true);
if (isset($opts['http']['content']))
{
parse_str($opts['http']['content'], $post_data);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
}
}
}
$content = curl_exec($curl);
curl_close($curl);
return $content;
}




From: Kurt.Bremser@xxxxxxxxxx
To: users@xxxxxxxxxxxxxxxx
Date: Fri, 16 Oct 2015 15:04:09 +0200
Subject: RE: Configure Apache behind proxy with auth [wd-vc]

How do your PHP scripts access the internet? (provide a code sample)
 
Kurt Bremser
AMOS Austria
 
Newton was wrong. There is no gravity. The Earth sucks.

Von: Lucas Santos Sanches [lcssanches@xxxxxxxxxxx]
Gesendet: Freitag, 16. Oktober 2015 14:47
An: users@xxxxxxxxxxxxxxxx
Betreff: **SPAM?** RE: Configure Apache behind proxy with auth [wd-vc]

Maybe I was not clear enough.

Here's my scenary:

I've installed Apache24 + PHP5.4 on local.

I have some PHP scripts that access Internet, and here's the problem, because my computer is behind the proxy, so my script fail.


Tx


From: Kurt.Bremser@xxxxxxxxxx
To: users@xxxxxxxxxxxxxxxx
Date: Fri, 16 Oct 2015 14:26:08 +0200
Subject: RE: Configure Apache behind proxy with auth [wd-vc]

Being behind a proxy suggests you are inside a firewalled intranet. You won't need the proxy at all to access your apache server from clients located inside the intranet.
If you want your PC's http server to be accessible from the "outside", you need to have a rule defined on the firewall to direct requests to your http port.
 
Kurt Bremser
AMOS Austria
 
Newton was wrong. There is no gravity. The Earth sucks.

Von: Lucas Santos Sanches [lcssanches@xxxxxxxxxxx]
Gesendet: Freitag, 16. Oktober 2015 14:23
An: users@xxxxxxxxxxxxxxxx
Betreff: **SPAM?** RE: Configure Apache behind proxy with auth [wd-vc]

I forgot to say that I already tried the mod_proxy->ProxyRemote, but ir seems like does not allow [user]:[pass]




From: lcssanches@xxxxxxxxxxx
To: users@xxxxxxxxxxxxxxxx
Date: Fri, 16 Oct 2015 09:21:55 -0300
Subject: Configure Apache behind proxy with auth

How do I authenticate Apache in proxy? Look that I'm not trying to make Apache a proxy.

My computer is behind a proxy that needs authentication. All application I run, needs to use user/pass to access internet.

How can I tell to Apache to use proxy auth?


AMOS Austria GmbH
1130 Wien, Hietzinger Kai 101-105
FN 365014k, Handelsgericht Wien
UID: ATU 66614737

http://www.allianz.at

********************************************************
Dieses E-Mail und allfaellig daran angeschlossene Anhaenge
enthalten Informationen, die vertraulich und
ausschliesslich fuer den (die) bezeichneten Adressaten
bestimmt sind.
Wenn Sie nicht der genannte Adressat sind, darf dieses
E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen
Personen zugaenglich gemacht noch in anderer Weise
verwertet werden.
Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten
wir Sie, dieses E-Mail und saemtliche angeschlossene
Anhaenge zu loeschen.

Please note: This email and any files transmitted with it is
intended only for the named recipients and may contain
confidential and/or privileged information. If you are not the
intended recipient, please do not read, copy, use or disclose
the contents of this communication to others and notify the
sender immediately. Then please delete the email and any
copies of it. Thank you.
********************************************************

AMOS Austria GmbH
1130 Wien, Hietzinger Kai 101-105
FN 365014k, Handelsgericht Wien
UID: ATU 66614737

http://www.allianz.at

********************************************************
Dieses E-Mail und allfaellig daran angeschlossene Anhaenge
enthalten Informationen, die vertraulich und
ausschliesslich fuer den (die) bezeichneten Adressaten
bestimmt sind.
Wenn Sie nicht der genannte Adressat sind, darf dieses
E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen
Personen zugaenglich gemacht noch in anderer Weise
verwertet werden.
Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten
wir Sie, dieses E-Mail und saemtliche angeschlossene
Anhaenge zu loeschen.

Please note: This email and any files transmitted with it is
intended only for the named recipients and may contain
confidential and/or privileged information. If you are not the
intended recipient, please do not read, copy, use or disclose
the contents of this communication to others and notify the
sender immediately. Then please delete the email and any
copies of it. Thank you.
********************************************************

AMOS Austria GmbH
1130 Wien, Hietzinger Kai 101-105
FN 365014k, Handelsgericht Wien
UID: ATU 66614737

http://www.allianz.at

********************************************************
Dieses E-Mail und allfaellig daran angeschlossene Anhaenge
enthalten Informationen, die vertraulich und
ausschliesslich fuer den (die) bezeichneten Adressaten
bestimmt sind.
Wenn Sie nicht der genannte Adressat sind, darf dieses
E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen
Personen zugaenglich gemacht noch in anderer Weise
verwertet werden.
Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten
wir Sie, dieses E-Mail und saemtliche angeschlossene
Anhaenge zu loeschen.

Please note: This email and any files transmitted with it is
intended only for the named recipients and may contain
confidential and/or privileged information. If you are not the
intended recipient, please do not read, copy, use or disclose
the contents of this communication to others and notify the
sender immediately. Then please delete the email and any
copies of it. Thank you.
********************************************************

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux