Last active
April 9, 2021 07:15
-
-
Save iforwms/d16fd2bf32bb72479972834de22e7d4d to your computer and use it in GitHub Desktop.
Allow slash arguements in Nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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