ThePlenkov
(Petr Plenkov)
April 18, 2017, 4:15pm
1
Dear experts,
I’m trying to use Caddy in the corporate network to proxy some requests to the internet.
For example, we have same file available in the internet and local intranet:
this works if the resource in the local network:
proxy /resources local.domain.com
this doesn’t if the resource is in the internet.
proxy /resources internet.domain.com
Browser can access same resource only using proxy settings. With direct connection even browser doesn’t work.
Do you have any ideas?
Thanks!
Petr
So Caddy is available via an intranet address, and you want it to proxy to publically available resources on the internet, but it doesn’t work?
When you use the non-working proxy /resources internet.domain.com
, and attempt to access /resources
, what error do you get?
matt
(Matt Holt)
April 19, 2017, 3:28am
3
If you can access local resources but not global ones, it’s probably a firewall or DNS thing?
ThePlenkov
(Petr Plenkov)
April 19, 2017, 7:50am
4
Hi Matt
I’m glad you replied me=)
This is what I have in the network with proxy:
Same request works fine when going to the local network or in the internet without proxy (tried at home).
ThePlenkov
(Petr Plenkov)
April 19, 2017, 7:53am
5
This is what I have in the errors.log:
19/Apr/2017:09:45:41 +0200 [ERROR 502 /1.42.6/resources/sap-ui-cachebuster/sap-ui-core.js] dial tcp 23.214.157.34:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.