Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CSS
Posted by: Сергей Шевченко
Added: Apr 22, 2019 9:20 AM
Views: 12
  1. server {
  2.     listen 8080;
  3.     server_name modx.local;
  4.     root /var/www/modx.local;
  5.     index index.php;
  6.     client_max_body_size 30M;
  7.  
  8.     access_log /var/log/nginx/modx.access.log;
  9.     error_log  /var/log/nginx/modx.error.log;
  10.  
  11.     location / {
  12.         try_files $uri $uri/ =404;
  13.     }
  14.  
  15.     location ~ \.php$ {
  16.         try_files     $uri $uri/ =404;
  17.         include       /etc/nginx/fastcgi.conf;
  18.         fastcgi_pass  localhost:9000;
  19.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20.         fastcgi_param QUERY_STRING    $query_string;
  21.    }
  22. }