cancel
Showing results for 
Search instead for 
Did you mean: 

Nginx + Varnish does not redirect domain to https

Nginx + Varnish does not redirect domain to https

I performed the installation of magento2.2.6 with varnish and redis
I am in trouble when I try to access the site through the domain (emporiobit.com.br) Error 503 error occurs Backend fetch failed
When you access the site by https://www.emporiobit.com.br or https://emporiobit.com.br everything works correctly without error.

Follow the doors:
Varnish - 80
Nginx - 81
Ngnix - 443

Before I simply typed the domain and opened the site in https, now it's not happening anymore.

Follow [configuration of my nginx][1]


[1]: https://pastebin.com/kvZF1sHG

2 REPLIES 2

Re: Nginx + Varnish does not redirect domain to https

Hi @guilhermetb

 

I understand the problem you are facing !

 

To troubleshoot the issue - Magento devdocs have article for the same - here i am sharing the link of that article , kindly follow the steps it will helps you to resolved the issue - https://devdocs.magento.com/guides/v2.2/config-guide/varnish/tshoot-varnish-503.html

 

Hope it helps !~

if issue solved,Click Kudos & Accept as Solution

Re: Nginx + Varnish does not redirect domain to https

Hi @Manthan Dave

My /etc/default/varnish:

DAEMON_OPTS="-a :80 \
-T localhost:6082 \
-f /etc/varnish/default.vcl \
-p thread_pools=4 \
-p thread_pool_max=1500 \
-p connect_timeout=300 \
-p http_resp_hdr_len=65536 \
-p http_resp_size=98304 \
-S /etc/varnish/secret \
-s malloc,2G" \