Advertisement
Guest User

Untitled

a guest
May 25th, 2018
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.80 KB | None | 0 0
  1. server {
  2.     listen *:443 ssl;
  3.     server_name structures.eveskillboard.com;
  4.     root /var/www/html/structures/public;
  5.  
  6.     index index.php index.html index.htm;
  7.  
  8.     charset utf-8;
  9.  
  10.     location / {
  11.         try_files $uri $uri/ /index.php?$query_string;
  12.     }
  13.  
  14.     access_log /var/log/nginx/structures-access.log;
  15.     error_log  /var/log/nginx/structures-error.log error;
  16.  
  17.     error_page 404 /index.php;
  18.  
  19.     sendfile off;
  20.  
  21.     location ~ \.php$ {
  22.         try_files $uri /index.php =404;
  23.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  24.         fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
  25.         fastcgi_index index.php;
  26.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  27.         include fastcgi_params;
  28.     }
  29.  
  30.     location ~ /\.ht {
  31.         deny all;
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement