Closed clarkk closed 8 years ago
When adding the location in nginx I get these errors
location
2016/05/02 11:31:20 [emerg] 20982#20982: invalid parameter "127.0.0.1:9000" in /var/ini/nginx/vhosts/dyntest.dk.conf:172 2016/05/02 11:31:40 [emerg] 20996#20996: invalid parameter "stats_collector.localdomain" in /var/ini/nginx/vhosts/dyntest.dk.conf:173 2016/05/02 11:31:52 [emerg] 21010#21010: invalid parameter "watchdog.localdomain" in /var/ini/nginx/vhosts/dyntest.dk.conf:174
And the line with fastcgi_pass backend; should backend be this?
fastcgi_pass backend;
upstream backend { server unix:/var/run/php5-fpm.sock; }
When testing with minimal parameters in the location
location ~ ^/(status|ping)$ { include fastcgi_params; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_param SCRIPT_FILENAME $fastcgi_script_name; # allow 127.0.0.1:9000; # allow stats_collector.localdomain; # allow watchdog.localdomain; # deny all; }
I get 403 when requesting with curl http://localhost/status
403
curl http://localhost/status
When adding the
location
in nginx I get these errorsAnd the line with
fastcgi_pass backend;
should backend be this?When testing with minimal parameters in the location
I get
403
when requesting withcurl http://localhost/status