Enable the php-fpmstatus function and access domain/status. The result is 404?

Source: Internet
Author: User
1. added {code...} to the nginxdefault configuration. 2. enable pm. status3. restart nginx and fpm, servicenginxrestart, and servicephp-fpmrestart. access: 192.168.10.10status. Result: 404. nginx default configuration is added.

location ~ ^/(status|ping)$        {                include snippets/fastcgi-php.conf;                fastcgi_pass unix:/run/php/php5.6-fpm.sock;        }

2. enable pm. status =/status
3. restart nginx, fpm, service nginx restart, and service php-fpm restart.

Access: http: // 192.168.10.10/status
Result: 404

Reply content:

1. added nginx default configuration

location ~ ^/(status|ping)$        {                include snippets/fastcgi-php.conf;                fastcgi_pass unix:/run/php/php5.6-fpm.sock;        }

2. enable pm. status =/status
3. restart nginx, fpm, service nginx restart, and service php-fpm restart.

Access: http: // 192.168.10.10/status
Result: 404

Nginx:    location ~ ^/(status|ping)$ {        include        fastcgi_params;        fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;        fastcgi_pass 127.0.0.1:9000;        fastcgi_index  index.php;    }

I tried, Access/status can output the PHP-FPM work information normally.
If you add a slash (/) next to/status during access, 404 is returned.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.