How to use Caddy with global corporate proxy?

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?

If you can access local resources but not global ones, it’s probably a firewall or DNS thing?

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).

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.