Advertisement
askerlab

Untitled

Feb 21st, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.51 KB | None | 0 0
  1. server {
  2.     listen 80 default_server;
  3.  
  4.     root /var/www;
  5.  
  6.     index index.php index.html index.htm;
  7.  
  8.     server_name default_server;
  9.  
  10.     access_log /var/log/nginx/default-access.log timed;
  11.     error_log /var/log/nginx/default-error.log;    
  12.  
  13.     location / {
  14.        try_files $uri $uri/ /index.php?q=$uri&$args;
  15.     }
  16.  
  17.     location ~ \.php$ {
  18.         include snippets/fastcgi-php.conf;
  19.         fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  20.     }
  21.  
  22.     location ~ /\.ht {
  23.         deny all;
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement