Advertisement
Replace

NGINX configuration

Nov 2nd, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.55 KB | None | 0 0
  1. server {
  2.     root /var/www/example.sharetronix;
  3.     server_name example.sharetronix www.example.sharetronix;
  4.     location / {
  5.         if (!-e $request_filename) {
  6.             rewrite ^(.*)$ /index.php?$args break;
  7.         }
  8.     }
  9.     location ~ / {
  10.         fastcgi_pass unix:/var/run/php5-fpm.sock;
  11.         fastcgi_split_path_info ^(.+\.php)(/.*)$;
  12.         include fastcgi_params;
  13.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  14.         fastcgi_param HTTPS off;
  15.     }
  16.     error_log /var/log/nginx/example.sharetronix.error.log;
  17.     access_log /var/log/nginx/example.sharetronix.access.log;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement