Skip to content

Commit 61b0be0

Browse files
committed
install nginx status page onto /server_status
1 parent 685ef0b commit 61b0be0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

nginx/proxy.conf

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ server {
1010

1111
server_name _;
1212

13+
location /server_status {
14+
stub_status on;
15+
access_log off;
16+
}
17+
1318
location / {
1419
# First attempt to serve request as file, then
1520
# as directory, then fall back to displaying a 404.
@@ -21,12 +26,5 @@ server {
2126
include snippets/fastcgi-php.conf;
2227
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
2328
}
24-
25-
# deny access to .htaccess files, if Apache's document root
26-
# concurs with nginx's one
27-
#
28-
#location ~ /\.ht {
29-
# deny all;
30-
#}
3129
}
3230

0 commit comments

Comments
 (0)