Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name _;
- location /assets/images/ {
- root /home/ankush/fu_main_files/;
- autoindex off;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 100;
- }
- location /ecwid_fu_scripts/ {
- index index.php;
- root /home/ankush/;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- try_files $fastcgi_script_name =404;
- set $path_info $fastcgi_path_info;
- fastcgi_param PATH_INFO $path_info;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- }
- location / {
- proxy_pass http://localhost:9001;
- }
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- try_files $fastcgi_script_name =404;
- set $path_info $fastcgi_path_info;
- fastcgi_param PATH_INFO $path_info;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement