[survey-web/oscp] Add /nginx_status
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [survey-web/oscp] Add /nginx_status
- Date: Tue, 29 Dec 2020 12:30:14 +0000 (UTC)
commit d32dd24aa8ee10f7729e1727ab14a172a821b743
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Tue Dec 29 13:30:05 2020 +0100
Add /nginx_status
nginx.conf | 32 ++++++++++++++++++--------------
1 file changed, 18 insertions(+), 14 deletions(-)
---
diff --git a/nginx.conf b/nginx.conf
index 0a60447..fac04e5 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -57,32 +57,36 @@ http {
}
location = /favicon.ico {
- log_not_found off;
- access_log off;
+ log_not_found off;
+ access_log off;
}
location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
+ allow all;
+ log_not_found off;
+ access_log off;
}
location / {
- try_files $uri $uri/ /index.php?r=$uri&$args;
+ try_files $uri /index.php?$args;
}
location ~ \.php$ {
- include fastcgi_params;
- fastcgi_intercept_errors on;
- fastcgi_read_timeout 300;
- fastcgi_param HTTPS 'on';
- fastcgi_pass php-fpm;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ include fastcgi_params;
+ fastcgi_intercept_errors on;
+ fastcgi_read_timeout 300;
+ fastcgi_param HTTPS 'on';
+ fastcgi_pass php-fpm;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires max;
- log_not_found off;
+ expires max;
+ log_not_found off;
+ }
+
+ location /nginx_status {
+ return 200;
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]