Apache2 - Communication to update server over proxy
by dr-ing from LinuxQuestions.org on (#572W3)
Hey,
We run an Apache2 (Apache/2.4.25 (Debian)) Server in a network where connection to the Internet is only allowed through a proxy (squid proxy), which is fine for local use, but our Apache2 communicates daily with a few servers (update and some application specific servers), all of which are located on the Internet.
I have configured the debian /etc/environment with http_proxy & https_proxy
Code:root@apache-srv:~# env | grep proxy
https_proxy=http://ip-from-our-proxy:3128
http_proxy=http://ip-from-our-proxy:3128But the communication from Apache to e.g. the update server still fails, and the logs on our Squid proxy clearly show that there was no attempted connection.
I also tried with ProxyRemote and the following enabled mods:
Code:root@apache-srv:~# ls -l /etc/apache2/mods-enabled/ | grep-Proxy
lrwxrwxrwxrwx 1 root root 28 Feb 6 2020 proxy.conf -> ../mods-available/proxy.conf
lrwxrwxrwxrwx 1 root root 28 Feb 6 2020 proxy.load -> ../mods-available/proxy.load
lrwxrwxrwxrwx 1 root root 36 Aug 19 13:05 proxy_connect.load -> ../mods-available/proxy_connect.load
lrwxrwxrwxrwx 1 root root 33 Feb 6 2020 proxy_http.load -> ../mods-available/proxy_http.loadand made some configuration settings, like ProxyRemote "*" "http://ip-from-our-proxy:3128" or more precise with the Ip from our update server, all without success. (For this I edited the proxy.conf in mods-enabled/proxy.conf and sited-enabled/proxy.conf)
Unfortunately, our application does not log when the connection to the update server is unsuccessful.
Maybe someone has more experience on this subject and can help me please.
TIA,
dr-ing.


We run an Apache2 (Apache/2.4.25 (Debian)) Server in a network where connection to the Internet is only allowed through a proxy (squid proxy), which is fine for local use, but our Apache2 communicates daily with a few servers (update and some application specific servers), all of which are located on the Internet.
I have configured the debian /etc/environment with http_proxy & https_proxy
Code:root@apache-srv:~# env | grep proxy
https_proxy=http://ip-from-our-proxy:3128
http_proxy=http://ip-from-our-proxy:3128But the communication from Apache to e.g. the update server still fails, and the logs on our Squid proxy clearly show that there was no attempted connection.
I also tried with ProxyRemote and the following enabled mods:
Code:root@apache-srv:~# ls -l /etc/apache2/mods-enabled/ | grep-Proxy
lrwxrwxrwxrwx 1 root root 28 Feb 6 2020 proxy.conf -> ../mods-available/proxy.conf
lrwxrwxrwxrwx 1 root root 28 Feb 6 2020 proxy.load -> ../mods-available/proxy.load
lrwxrwxrwxrwx 1 root root 36 Aug 19 13:05 proxy_connect.load -> ../mods-available/proxy_connect.load
lrwxrwxrwxrwx 1 root root 33 Feb 6 2020 proxy_http.load -> ../mods-available/proxy_http.loadand made some configuration settings, like ProxyRemote "*" "http://ip-from-our-proxy:3128" or more precise with the Ip from our update server, all without success. (For this I edited the proxy.conf in mods-enabled/proxy.conf and sited-enabled/proxy.conf)
Unfortunately, our application does not log when the connection to the update server is unsuccessful.
Maybe someone has more experience on this subject and can help me please.
TIA,
dr-ing.