Advertisement
Guest User

Untitled

a guest
Feb 18th, 2016
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.57 KB | None | 0 0
  1. server {
  2.   server_name _;
  3.   root        /var/www/default;
  4.   index       index.php;
  5.  
  6.   client_max_body_size 100M;
  7.   fastcgi_read_timeout 1800;
  8.  
  9.   location / {
  10.     try_files $uri $uri/ /index.php?$query_string;
  11.   }
  12.  
  13.   location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
  14.     expires       max;
  15.     log_not_found off;
  16.     access_log    off;
  17.   }
  18.  
  19.   location ~ \.php$ {
  20.     try_files     $uri =404;
  21.     include       fastcgi_params;
  22.     fastcgi_index index.php;
  23.     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  24.     fastcgi_pass  php:9000;
  25.   }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement