0
votes
1answer
412 views

Allow visits only via domain, block by ip address

I am trying to block people from accessing my server via my ip address. Ideally I would like them to only be able to access it using my domain name. I have searched Google and unable to find ...
0
votes
1answer
874 views

Nginx php-fpm pool being blocked and stop responding

I'm having some issues with requests for pages not getting a response after requests take a long time to process. I have nginx setup to use php-fpm. I have two pools setup in PHP-FPM. One pool for ...
2
votes
2answers
3k views

Separate Nginx access log file for certain requests only

As far as I can see Nginx supports by default 2 log files: error_log (tracks issues related to the Nginx server itself) and access_log (tracks requests processed by Nginx). Whilst it is possible to ...
1
vote
1answer
577 views

Nginx: protect directory and files

I wrote this to prevent the directory "download" to be accessed but from the IP 1.2.3.4. location ~ /folder/download { allow 1.2.3.4; deny all; return 403; } However, the directory ...