mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-08-01 07:07:52 +08:00
27 lines
980 B
Plaintext
27 lines
980 B
Plaintext
|
|
server {
|
|
listen |PORT|;
|
|
listen [::]:|PORT|;
|
|
|ssl_certificate|
|
|
|ssl_certificate_key|
|
|
ssl_session_timeout 5m;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
ssl_prefer_server_ciphers on;
|
|
server_name localhost;
|
|
root |project_directory|;
|
|
index index.html index.htm index.php;
|
|
location ~ \.php(.*)$ {
|
|
fastcgi_pass unix:|SOCK|; # 通过 Unix 套接字执行 PHP
|
|
fastcgi_index index.php;
|
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # 修复 Nginx fastcgi 漏洞
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
include /etc/nginx/fastcgi_params;
|
|
client_max_body_size |upload_max_filesize|;
|
|
client_body_timeout 3600s;
|
|
fastcgi_connect_timeout 3600s;
|
|
fastcgi_send_timeout 3600s;
|
|
fastcgi_read_timeout 3600s;
|
|
}
|
|
}
|