Skip to content

Instantly share code, notes, and snippets.

@iforwms
Last active April 9, 2021 07:15
Show Gist options
  • Save iforwms/d16fd2bf32bb72479972834de22e7d4d to your computer and use it in GitHub Desktop.
Save iforwms/d16fd2bf32bb72479972834de22e7d4d to your computer and use it in GitHub Desktop.
Allow slash arguements in Nginx
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment