
- location /status {
- stub_status on;
- auth_basic "NginxStatus";
- }
其中“/status”是可以自定义的测试网址,可以改其他名字
- server {
- listen 80;
- server_name suibian.com *.suibian.com;
- root "D:/SystemKits/Laragon/www/suibian";
-
- index index.html index.htm index.php;
-
- location / {
- try_files $uri $uri/ /index.php$is_args$args;
- autoindex on;
- }
-
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass php_upstream;
- #fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- }
-
- location /status {
- stub_status on;
- auth_basic "NginxStatus";
- }
-
-
- charset utf-8;
-
- location = /favicon.ico { access_log off; log_not_found off; }
- location = /robots.txt { access_log off; log_not_found off; }
- location ~ /\.ht {
- deny all;
- }
- }
-
- # This file is auto-generated.
- # If you want Laragon to respect your changes, just remove the [auto.] prefix
- # If you want to use SSL, enable it at: Menu > Nginx > SSL > Enabled

ok~
可以看到有些连接是卡住的,waiting....
netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'