server { listen 8085 default_server; server_name _; root /var/www/newclick; # "/" is index.php (redirects to adpia.vn) location = / { include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root/index.php; } # only the entry points are executed (click.php and cpo_click.php are the old names that partner links still call) location ~ ^/(tracking|click|cpo_click|deeplink|error|not_approved|index)\.php$ { include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } # the images of the error page and the favicon location ^~ /image/ { try_files $uri =404; } location = /favicon.ico { try_files $uri =404; } # everything else (.git, config, src, vendor, README.md, compose for the outside location / { return 404; } }