I have a pretty typical php5-fpm setup like so:
location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/home/gfd-dev/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } and I just want to just block 1 file by ip address, but then php doesn't run
location ^~ /script_to_hide.php { allow 100.100.100.100; deny all; } Do I put the whole php$ params in both or is there a another way to do this to just tell php to run?