Zen
3 years ago
1 changed files with 24 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||||||
|
server { |
||||||
|
listen 80 default_server; |
||||||
|
listen [::]:80 default_server; |
||||||
|
|
||||||
|
server_name SERVER_NAME; |
||||||
|
root FILE_ROOT; |
||||||
|
index index.php; |
||||||
|
|
||||||
|
location = /favicon.ico { |
||||||
|
log_not_found off; |
||||||
|
access_log off; |
||||||
|
} |
||||||
|
|
||||||
|
location / { |
||||||
|
try_files $uri $uri/ /index.php?$args; |
||||||
|
} |
||||||
|
|
||||||
|
location ~ \.php$ { |
||||||
|
include snippets/fastcgi-php.conf; |
||||||
|
fastcgi_intercept_errors on; |
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
||||||
|
fastcgi_pass unix:/run/php/php7.4-fpm.sock; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue