tetramin

Untitled

Jan 27th, 2016
70
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Настройки бэкенда:
  2.  
  3. server {
  4.     listen 80;
  5.     server_name *.example.ru;
  6.  
  7.     root /var/www/example.ru/public_html;
  8.     index index.php;
  9.  
  10.     access_log off;
  11.     error_log /var/www/example.ru/log/error.log crit;
  12.  
  13.     client_max_body_size 32m;
  14.  
  15.     location / {
  16.         try_files $uri $uri/ /index.php?$query_string;
  17.     }
  18.  
  19.     location ~ \.php$ {
  20.  
  21.         fastcgi_buffers 4 256k;
  22.         fastcgi_busy_buffers_size 256k;
  23.         fastcgi_temp_file_write_size 256k;
  24.  
  25.         try_files $uri =404;
  26.         fastcgi_pass unix:/var/run/phpfpm-example.sock;
  27.         fastcgi_index index.php;
  28.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  29.  
  30.         include fastcgi_params;
  31.     }
  32. }
RAW Paste Data