selimppc

nginx config file: default

Mar 6th, 2017
1,321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.72 KB | None | 0 0
  1. nginx config file: default
  2. =========================
  3.  
  4. server {
  5.     listen 159.203.115.189:80;
  6.  
  7.     root /var/www/html/zogo-commerce/public;
  8.     index index.php index.html index.htm;
  9.  
  10.     server_name 159.203.115.189;
  11.  
  12.     #location / {
  13.     try_files $uri $uri/ /index.php;
  14.     #}
  15.  
  16.     error_page 404 /404.html;
  17.     error_page 500 502 503 504 /50x.html;
  18.  
  19.     location ~ \.php$ {
  20.         try_files $uri =404;
  21.     fastcgi_split_path_info ^(.+\.php)(/.+)$;
  22.     #include snippets/fastcgi-php.conf;
  23.     fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  24.     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  25.     fastcgi_index index.php;
  26.     include fastcgi.conf;
  27.     }
  28.  
  29.     location ~ /\.ht {
  30.         deny all;
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment