1.nginx 기본 구성이 추가되었습니다
1 2 3 4 5 | <code>location ~ ^/(status|ping)$
{
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php5.6-fpm.sock;
}</code>
|
로그인 후 복사
로그인 후 복사
2. pm.status = /status 열기
3. nginx 및 fpm 다시 시작, 서비스 nginx 다시 시작, 서비스 php-fpm 다시 시작
방문: http://192.168.10.10/status
결과: 404
답글 내용:
1.nginx 기본 구성이 추가되었습니다
1 2 3 4 5 | <code>location ~ ^/(status|ping)$
{
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php5.6-fpm.sock;
}</code>
|
로그인 후 복사
로그인 후 복사
2. pm.status = /status 열기
3. nginx 및 fpm 다시 시작, 서비스 nginx 다시 시작, 서비스 php-fpm 다시 시작
방문: http://192.168.10.10/status
결과: 404
1 2 3 4 5 6 7 | <code>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;
}</code>
|
로그인 후 복사
해봤는데 /status에 접근하면 정상적으로 PHP-FPM 작업 정보가 출력됩니다.
접근할 때 /status 뒤에 /를 추가하면 404가 반환됩니다.