You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Bremser, Kurt (AMOS Austria GmbH)" <Ku...@allianz.at> on 2015/10/16 14:26:08 UTC

RE: [users@httpd] 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@hotmail.com]
Gesendet: Freitag, 16. Oktober 2015 14:23
An: users@httpd.apache.org
Betreff: **SPAM?** RE: [users@httpd] 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@hotmail.com
To: users@httpd.apache.org
Date: Fri, 16 Oct 2015 09:21:55 -0300
Subject: [users@httpd] 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.
********************************************************

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

Posted by Lucas Santos Sanches <lc...@hotmail.com>.
Thanks!


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







Then your problem is not with apache, but with curl.
http://stackoverflow.com/questions/5211887/how-to-use-curl-via-a-proxy
may be helpful.
 

Kurt Bremser
AMOS Austria

 
Newton was wrong. There is no gravity. The Earth sucks.




Von: Lucas Santos Sanches [lcssanches@hotmail.com]

Gesendet: Freitag, 16. Oktober 2015 15:08

An: users@httpd.apache.org

Betreff: **SPAM?** RE: [users@httpd] 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@allianz.at

To: users@httpd.apache.org

Date: Fri, 16 Oct 2015 15:04:09 +0200

Subject: RE: [users@httpd] 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@hotmail.com]

Gesendet: Freitag, 16. Oktober 2015 14:47

An: users@httpd.apache.org

Betreff: **SPAM?** RE: [users@httpd] 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@allianz.at

To: users@httpd.apache.org

Date: Fri, 16 Oct 2015 14:26:08 +0200

Subject: RE: [users@httpd] 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@hotmail.com]

Gesendet: Freitag, 16. Oktober 2015 14:23

An: users@httpd.apache.org

Betreff: **SPAM?** RE: [users@httpd] 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@hotmail.com

To: users@httpd.apache.org

Date: Fri, 16 Oct 2015 09:21:55 -0300

Subject: [users@httpd] 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.

******************************************************** 		 	   		  

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

Posted by "Bremser, Kurt (AMOS Austria GmbH)" <Ku...@allianz.at>.
Then your problem is not with apache, but with curl.
http://stackoverflow.com/questions/5211887/how-to-use-curl-via-a-proxy
may be helpful.

Kurt Bremser
AMOS Austria

Newton was wrong. There is no gravity. The Earth sucks.
________________________________
Von: Lucas Santos Sanches [lcssanches@hotmail.com]
Gesendet: Freitag, 16. Oktober 2015 15:08
An: users@httpd.apache.org
Betreff: **SPAM?** RE: [users@httpd] 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@allianz.at
To: users@httpd.apache.org
Date: Fri, 16 Oct 2015 15:04:09 +0200
Subject: RE: [users@httpd] 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@hotmail.com]
Gesendet: Freitag, 16. Oktober 2015 14:47
An: users@httpd.apache.org
Betreff: **SPAM?** RE: [users@httpd] 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@allianz.at
To: users@httpd.apache.org
Date: Fri, 16 Oct 2015 14:26:08 +0200
Subject: RE: [users@httpd] 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@hotmail.com]
Gesendet: Freitag, 16. Oktober 2015 14:23
An: users@httpd.apache.org
Betreff: **SPAM?** RE: [users@httpd] 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@hotmail.com
To: users@httpd.apache.org
Date: Fri, 16 Oct 2015 09:21:55 -0300
Subject: [users@httpd] 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.
********************************************************

Re: [users@httpd] Configure Apache behind proxy with auth [wd-vc]

Posted by Rainer Jung <ra...@kippdata.de>.
Am 16.10.2015 um 15:08 schrieb Lucas Santos Sanches:
> 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);

Look for "proxy" in http://php.net/manual/en/function.curl-setopt.php

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

Regards,

Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


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

Posted by Lucas Santos Sanches <lc...@hotmail.com>.
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@allianz.at
To: users@httpd.apache.org
Date: Fri, 16 Oct 2015 15:04:09 +0200
Subject: RE: [users@httpd] 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@hotmail.com]

Gesendet: Freitag, 16. Oktober 2015 14:47

An: users@httpd.apache.org

Betreff: **SPAM?** RE: [users@httpd] 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@allianz.at

To: users@httpd.apache.org

Date: Fri, 16 Oct 2015 14:26:08 +0200

Subject: RE: [users@httpd] 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@hotmail.com]

Gesendet: Freitag, 16. Oktober 2015 14:23

An: users@httpd.apache.org

Betreff: **SPAM?** RE: [users@httpd] 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@hotmail.com

To: users@httpd.apache.org

Date: Fri, 16 Oct 2015 09:21:55 -0300

Subject: [users@httpd] 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.

******************************************************** 		 	   		  

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

Posted by "Bremser, Kurt (AMOS Austria GmbH)" <Ku...@allianz.at>.
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@hotmail.com]
Gesendet: Freitag, 16. Oktober 2015 14:47
An: users@httpd.apache.org
Betreff: **SPAM?** RE: [users@httpd] 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@allianz.at
To: users@httpd.apache.org
Date: Fri, 16 Oct 2015 14:26:08 +0200
Subject: RE: [users@httpd] 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@hotmail.com]
Gesendet: Freitag, 16. Oktober 2015 14:23
An: users@httpd.apache.org
Betreff: **SPAM?** RE: [users@httpd] 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@hotmail.com
To: users@httpd.apache.org
Date: Fri, 16 Oct 2015 09:21:55 -0300
Subject: [users@httpd] 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.
********************************************************

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

Posted by Lucas Santos Sanches <lc...@hotmail.com>.
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@allianz.at
To: users@httpd.apache.org
Date: Fri, 16 Oct 2015 14:26:08 +0200
Subject: RE: [users@httpd] 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@hotmail.com]

Gesendet: Freitag, 16. Oktober 2015 14:23

An: users@httpd.apache.org

Betreff: **SPAM?** RE: [users@httpd] 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@hotmail.com

To: users@httpd.apache.org

Date: Fri, 16 Oct 2015 09:21:55 -0300

Subject: [users@httpd] 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.

********************************************************