Last active
February 15, 2024 06:11
-
-
Save alditpra/561891c6dd98108a4e8475c2697d1edd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{{root}} | |
{{nginx_access_log}} | |
{{nginx_error_log}} | |
if ($scheme != "https") { | |
rewrite ^ https://$host$uri permanent; | |
} | |
location ~ /.well-known { | |
auth_basic off; | |
allow all; | |
} | |
{{settings}} | |
index index.php index.html; | |
location ~ ^/index.php($|/) { | |
fastcgi_split_path_info ^(.*?\.php)(/.*)$; | |
include fastcgi_params; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_intercept_errors on; | |
fastcgi_read_timeout 3600; | |
fastcgi_send_timeout 3600; | |
fastcgi_param HTTPS $fastcgi_https; | |
fastcgi_pass 127.0.0.1:{{php_fpm_port}}; | |
fastcgi_param PHP_VALUE "{{php_settings}}"; | |
fastcgi_param PATH_INFO $fastcgi_path_info; | |
} | |
location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ { | |
add_header Access-Control-Allow-Origin "*"; | |
expires max; | |
access_log off; | |
} | |
if (-f $request_filename) { | |
break; | |
} | |
} |
Author
alditpra
commented
Oct 5, 2022
- cgi.fix_pathinfo=1
- security.limit_extensions = .php
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment