Forum

Can reverse proxy serve inner requests?

Fred
30 November 2016, 17:39
Hi Hugo,

Could you please tell me if Hiawatha reverse web proxy is able to serve inner requests?
Let me elaborate a bit..
I am a FreeBSD user ans I have 1 hiawatha reverse proxy jail that serve many other hiawatha webserver most runing wordpress but not only..

Example 1:
I have cdn.domain1.com that is used as a cdn server and when I run the fetch https://cdn.domain1.com/wp/themes/flatsome.zip from domain2.com, I get:
Connection refused

If I run the same command from my desktop (not same lan) it work with no problem for me

Example 2:
From domain3.com, if I run
wp plugin install https://cdn.domain1.com/wp/plugins/gplkit.zip --activate
I get
Downloading install package from https://rcdn.domain1.com/wp/plugins/gplkit.zip...
Warning: Download failed. "cURL error 7: Failed to connect to cdn.domain1.com port 443: Connection refused"


Example 4:
domain4.com is wordpress site and cron isn't working..
When runing the following command
wp cron test
I get the following error:
Error: WP-Cron spawn failed with error: cURL error 7: Failed to connect to domain4.com port 80: Connection refused


I have check the firewall and a colleague also checked it so we are fairly sure its not firewall issue..
Could you please help us debug this problem?

All sites are forced ssl. I public IP on the reverse proxy and internal IPs on webjails..

Thank you in advance
Fred
5 December 2016, 12:45
Hi Hugo,

Haven't seen you for a while hope you ok?
Just letting you know that I managed to fix the issue by adding the cdn domain to the webjail /etc/hosts file
10.8.60.16 cdn.domain1.com
Hugo Leisink
5 December 2016, 12:46
I'm fine, just very busy. Because of that, I missed your first post. Sorry. Good to hear you found a solution.
This topic has been closed.