κατασκευή ιστοσελίδων θεσσαλονίκη
  • ΑΡΧΙΚΗ
  • TOASTEDWEB
  • ΤΙ ΚΑΝΟΥΜΕ
    • Κατασκευή ιστοσελίδων
    • Κατασκευή eshop
    • Διαφήμιση Google Adwords
    • Διαφήμιση στο facebook
    • Προώθηση ιστοσελίδων
    • Φιλοξενία ιστοσελίδων
    • Ιστοσελίδες για ΑΜΕΑ με το πρότυπο WCAG 2.0
    • ΚΑΝΟΥΜΕ ΚΑΙ ΑΛΛΑ
      • Διαγωνισμοί Facebook
      • Εφαρμογές android
      • Joomla extensions
  • ΠΩΣ ΤΟ ΚΑΝΟΥΜΕ
  • PORTFOLIO
  • ΕΠΙΚΟΙΝΩΝΙΑ

Varnish with docker in plesk , the SSL problem

Αύγουστος 5, 2018avasilBlog

Varnish is an excellent caching solution for wordpress. In fact we have tested varnish with more than 3000 online visitors and website and server was working perfect!
Plesk with the new docker thing has given us the ability to add varnish to specific websites. What we found is that all the informations regarding Varnish installation with plesk did not mention or solve the SSL issue. Varnish needs some tricks to make it work with SSL.

Plesk is giving this tutorial but if you read in comment most of them are about SSL not working . So we also tried and also found that SSL is not working

https://www.plesk.com/blog/product-technology/varnish-wordpress-docker-container/

usually you see in your browser » too many redirects” error

So , we found the solution….!!!

You need to add to nginx some more lines…

1. go to nginx.conf file
/var/www/vhosts/system//conf/
edit nginx.conf and add this line
proxy_set_header X-Forwarded-Proto: https;

for example

location / {
proxy_pass https://x.x.x.x:7081;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto: https;

}

2. then open .htaccess file in wordpress directory and and this

SetEnvIf X-Forwarded-Proto https HTTPS=on

for example

# Let apache know we’re behind a SSL reverse proxy

SetEnvIf X-Forwarded-Proto «https« HTTPS=on

that’s it!

If someone found a way to add this to additional directives so  you don’t edit the conf files please send me an email so i can correct this!

 

 

Τελευταία άρθρα

  • To wordpress η το joomla μου hacked. Τι κάνω;
  • Remarketing – Dynamic remarketing
  • Add new facebook chat to Opencart (all versions 2019 update)
  • Seo σε ιατρικό site. Κλάψατε και εσείς τον Αύγουστο;
  • Νέο βραβείο για την Toastedweb

Αρχείο

  • Δεκέμβριος 2019
  • Σεπτέμβριος 2019
  • Μάιος 2019
  • Σεπτέμβριος 2018
  • Αύγουστος 2018
  • Μάιος 2018
  • Ιανουάριος 2018
  • Φεβρουάριος 2017
  • Ιανουάριος 2017
  • Σεπτέμβριος 2016
  • Ιούλιος 2016
  • Ιούνιος 2016
  • Μάιος 2016
  • Απρίλιος 2016
  • Ιανουάριος 2016
  • Νοέμβριος 2015
  • Σεπτέμβριος 2015
  • Ιούλιος 2015
  • Ιούνιος 2015
  • Απρίλιος 2015
  • Μάρτιος 2015
  • Δεκέμβριος 2014
  • Νοέμβριος 2014
  • Οκτώβριος 2014
  • Σεπτέμβριος 2014
  • Ιανουάριος 2014

ΒΡΑΒΕΥΣΕΙΣ

ΠΟΛΙΤΙΚΗ ΑΠΟΡΡΗΤΟΥ
ΥΠΟΣΤΗΡΙΞΗ
BLOG
ΠΡΟΣΩΠΙΚΑ ΔΕΔΟΜΕΝΑ-COOKIES
SITEMAP

toastedweb

HELLO@TOASTEDWEB.GR

+30 231 220 30 35

ΛΕΩΦ. ΚΩΝ/ΝΟΥ ΚΑΡΑΜΑΝΛΗ 145
542 49 | ΘΕΣΣΑΛΟΝΙΚΗ

 


Facebook
Twitter
Google+

Toastedweb’s Lounge

  • To wordpress η το joomla μου hacked. Τι κάνω;
  • Remarketing – Dynamic remarketing
  • Add new facebook chat to Opencart (all versions 2019 update)
  • Seo σε ιατρικό site. Κλάψατε και εσείς τον Αύγουστο;
© 2017 Toastedweb.gr - κατασκευή ιστοσελίδων Θεσσαλονίκη

Cookies

Η ιστοσελίδα χρησιμοποιεί cookies: Ενημερωθείτε.