Guest User

Untitled

a guest
Dec 29th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.91 KB | None | 0 0
  1. server {
  2.     listen 80 default_server;
  3.     listen [::]:80 default_server;
  4.  
  5.     server_name _;
  6.  
  7.     location /assets/images/ {
  8.         root /home/ankush/fu_main_files/;
  9.         autoindex off;
  10.         sendfile on;
  11.         tcp_nopush on;
  12.         tcp_nodelay on;
  13.         keepalive_timeout 100;
  14.     }  
  15.  
  16.     location /ecwid_fu_scripts/ {
  17.         index index.php;
  18.         root /home/ankush/;
  19.         try_files $uri = 404;
  20.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  21.         fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  22.         fastcgi_index index.php;
  23.         include fastcgi_params;
  24.     }  
  25.    
  26.     location / {
  27.         proxy_pass http://localhost:9001;
  28.     }  
  29.  
  30.     location ~ \.php$ {
  31.         try_files $uri =404;
  32.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  33.         fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  34.         fastcgi_index index.php;
  35.         include fastcgi_params;
  36.     }
  37. }
Add Comment
Please, Sign In to add comment