SHARE
TWEET

Untitled

guilhermetb Nov 27th, 2018 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. upstream fastcgi_backend {
  2.         server  unix:/run/php/php7.1-fpm.sock;
  3. }
  4.  
  5. server {
  6.     listen 81;
  7.     server_name emporiobit.com.br www.emporiobit.com.br;
  8.     #return 301 https://$server_name$request_uri;
  9.         set $MAGE_ROOT /var/www/html/magento2;
  10.         set $MAGE_MODE production;
  11.         include /var/www/html/magento2/nginx.conf.sample;
  12. }
  13.  
  14. server {
  15.  
  16.         listen 443 ssl http2;
  17.         server_name emporiobit.com.br www.emporiobit.com.br;
  18.  
  19.         ssl on;
  20.         ssl_certificate /etc/certificate/emporiobit.com.br/emporiobit.com.br.crt;
  21.         ssl_certificate_key /etc/certificate/emporiobit.com.br/emporiobit.com.br.key;
  22.  
  23.        ssl_protocols              TLSv1 TLSv1.1 TLSv1.2;
  24.        ssl_ciphers               'AES128+EECDH:AES128+EDH:!aNULL';
  25.        ssl_session_cache    shared:SSL:10m;
  26.        ssl_session_timeout 24h;
  27.        keepalive_timeout 300s;
  28.  
  29.     location / {
  30.         proxy_pass http://127.0.0.1:81;
  31.         proxy_set_header Host $http_host;
  32.         proxy_set_header X-Forwarded-Host $http_host;
  33.         proxy_set_header X-Real-IP $remote_addr;
  34.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  35.         proxy_set_header Ssl-Offloaded "1";
  36.         proxy_set_header      X-Forwarded-Proto https;
  37.         proxy_set_header      X-Forwarded-Port 443;
  38.         proxy_set_header X-Forwarded-Proto $scheme;
  39.         #proxy_hide_header X-Varnish;
  40.         #proxy_hide_header Via;
  41. }
  42. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top