mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 12:45:32 +08:00
34 lines
812 B
Nginx Configuration File
34 lines
812 B
Nginx Configuration File
|
||
server {
|
||
listen 8000 default_server;
|
||
listen [::]:8000 default_server;
|
||
|
||
root /var/www/html/public;
|
||
index index.php index.html index.htm;
|
||
|
||
server_name _;
|
||
|
||
# 上传大小不限制
|
||
client_max_body_size 8192m;
|
||
|
||
# 运行时长不限制
|
||
fastcgi_read_timeout 60000;
|
||
|
||
# ulthon_admin nginx_log 分析:access_log 写到 runtime(持久化 + PHP 必能读)
|
||
access_log /var/www/html/runtime/nginx/access.log analytics;
|
||
|
||
location / {
|
||
if (!-e $request_filename) {
|
||
rewrite ^(.*)$ /index.php?s=$1 last; break;
|
||
}
|
||
|
||
}
|
||
|
||
location ~ \.php$ {
|
||
include fastcgi_params;
|
||
fastcgi_pass 127.0.0.1:9000;
|
||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||
}
|
||
}
|