NGINX Default Configure File Ubuntu



nginx config file: default Path: `/etc/nginx/sites-available/default `
server {
    listen 159.203.115.189:80;
 
    root /var/www/html/zogo-commerce/public;
    index index.php index.html index.htm;
 
    server_name 159.203.115.189;
    client_max_body_size 20M;
    try_files $uri $uri/ /index.php?$query_string;
 
   error_page 404 /404.html;
   error_page 500 502 503 504 /50x.html;
 
   location ~ \.php$ {
        try_files $uri =404;
	fastcgi_split_path_info ^(.+\.php)(/.+)$;
	#include snippets/fastcgi-php.conf;
	fastcgi_pass unix:/run/php/php7.0-fpm.sock;
	fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
	fastcgi_index index.php;
	include fastcgi.conf;
  }
 
    location ~ /\.ht {
        deny all;
    }
}
Resource LINK :: http://www.servermom.org/setup-lemp-ubuntu-16-04/3534/ http://pastebin.com/qJZ8MfPU https://forum.phalconphp.com/discussion/9239/problem-with-get-on-nginx
Selim Reza

Site Footer