2020-11-13 10:26:44 +00:00
|
|
|
# see https://github.com/perftools/xhgui#configuration
|
|
|
|
|
2019-07-09 14:27:13 +00:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
2020-11-13 10:26:44 +00:00
|
|
|
listen [::]:80 default_server;
|
2019-07-09 14:27:13 +00:00
|
|
|
|
2020-11-13 10:26:44 +00:00
|
|
|
root /var/www/xhgui/webroot;
|
2019-07-09 14:27:13 +00:00
|
|
|
index index.php;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
try_files $uri =404;
|
2020-11-13 10:26:44 +00:00
|
|
|
include /etc/nginx/fastcgi_params;
|
2019-07-09 14:27:13 +00:00
|
|
|
fastcgi_pass php_xhgui:9000;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
2020-11-13 10:26:44 +00:00
|
|
|
|
|
|
|
client_body_buffer_size 1M;
|
2019-07-09 14:27:13 +00:00
|
|
|
}
|
2020-11-13 10:26:44 +00:00
|
|
|
}
|