Advertisement
Guest User

Untitled

a guest
Aug 17th, 2020
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.      listen 80;
  3.      listen [::]:80;
  4.      server_name mysite;
  5.  
  6.      root /var/www/mautic;
  7.      index index.php index.html index.htm index.nginx-debian.html;
  8.  
  9.      location / {
  10.        #try_files $uri $uri/ =404;
  11.         try_files $uri $uri/ /index.php$uri$args;
  12.      }
  13.  
  14.      location ~ .php$ {
  15.        include snippets/fastcgi-php.conf;
  16.        fastcgi_pass unix:/run/php/php7.4-fpm.sock;
  17.      }
  18.  
  19.      location ~* ^/index.php {
  20.        fastcgi_split_path_info ^(.+.php)(/.+)$;
  21.        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
  22.        fastcgi_index index.php;
  23.        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  24.        include fastcgi_params;
  25.        fastcgi_buffer_size 128k;
  26.        fastcgi_buffers 256 16k;
  27.        fastcgi_busy_buffers_size 256k;
  28.        fastcgi_temp_file_write_size 256k;
  29.      }
  30.  
  31.     #location ~ email/(.*).gif {
  32.     #   try_files $uri /index.php?$args;
  33.     #}
  34.  }
  35. server {
  36.      listen 443 ssl;
  37.      listen [::]:443 ssl;
  38.      server_name mysite;
  39.     ssl_certificate     /etc/nginx/keys/mysite.crt;
  40.     ssl_certificate_key /etc/nginx/keys/mysite.key;
  41.     ssl_protocols       TLSv1.2;
  42.     ssl_ciphers         ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
  43.     ssl_prefer_server_ciphers off;
  44.     ssl_session_timeout 1d;
  45.     ssl_session_cache shared:MozSSL:10m;  # about 40000 sessions
  46.     ssl_session_tickets off;
  47.  
  48.      root /var/www/mautic;
  49.      index index.php index.html index.htm index.nginx-debian.html;
  50.  
  51.      location / {
  52.        #try_files $uri $uri/ /index.php?q=$uri&$args =404;
  53.         try_files $uri $uri/ /index.php$uri$args;
  54.      }
  55.  
  56.      location ~ .php$ {
  57.        include snippets/fastcgi-php.conf;
  58.        fastcgi_pass unix:/run/php/php7.4-fpm.sock;
  59.      }
  60.  
  61.      location ~* ^/index.php {
  62.        fastcgi_split_path_info ^(.+.php)(/.+)$;
  63.        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
  64.        fastcgi_index index.php;
  65.        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  66.        include fastcgi_params;
  67.        fastcgi_buffer_size 128k;
  68.        fastcgi_buffers 256 16k;
  69.        fastcgi_busy_buffers_size 256k;
  70.        fastcgi_temp_file_write_size 256k;
  71.      }
  72.  
  73.     #location ~ email/(.*).gif {
  74.     #    try_files $uri /index.php?$args;
  75.     #}
  76.  
  77.  }
  78.  
Advertisement
RAW Paste Data Copied
Advertisement