Advertisement
Guest User

Untitled

a guest
Dec 21st, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.54 KB | None | 0 0
  1. # FORGE CONFIG (DO NOT REMOVE!)
  2. include forge-conf/zhk-land.simcase.ru/before/*;
  3.  
  4. server {
  5.     listen 80;
  6.     listen [::]:80;
  7.     server_name zhk-land.simcase.ru;
  8.     root /home/forge/zhk-land.simcase.ru/;
  9.  
  10.     # FORGE SSL (DO NOT REMOVE!)
  11.     # ssl_certificate;
  12.     # ssl_certificate_key;
  13.  
  14.     ssl_protocols TLSv1.2;
  15.     ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384;
  16.     ssl_prefer_server_ciphers on;
  17.     ssl_dhparam /etc/nginx/dhparams.pem;
  18.  
  19.     add_header X-Frame-Options "SAMEORIGIN";
  20.     add_header X-XSS-Protection "1; mode=block";
  21.     add_header X-Content-Type-Options "nosniff";
  22.  
  23.     index index.html index.htm index.php;
  24.  
  25.     charset utf-8;
  26.  
  27.     # FORGE CONFIG (DO NOT REMOVE!)
  28.     include forge-conf/zhk-land.simcase.ru/server/*;
  29.  
  30.     location / {
  31.         try_files $uri $uri/ /index.php?$query_string;
  32.     }
  33.  
  34.     location = /favicon.ico { access_log off; log_not_found off; }
  35.     location = /robots.txt  { access_log off; log_not_found off; }
  36.  
  37.     access_log off;
  38.     error_log  /var/log/nginx/zhk-land.simcase.ru-error.log error;
  39.  
  40.     error_page 404 /index.php;
  41.  
  42.     location ~ \.php$ {
  43.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  44.         fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  45.         fastcgi_index index.php;
  46.         include fastcgi_params;
  47.     }
  48.  
  49.     location ~ /\.(?!well-known).* {
  50.         deny all;
  51.     }
  52. }
  53.  
  54. # FORGE CONFIG (DO NOT REMOVE!)
  55. include forge-conf/zhk-land.simcase.ru/after/*;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement