Skip to content

Instantly share code, notes, and snippets.

@Ellrion
Ellrion / php-restrictions.nginxconf
Last active June 5, 2024 12:36
Nginx + Php-fpm config for Laravel app
# /etc/nginx/global/php-restrictions.conf
# Don't throw any errors for missing favicons and don't display them in the logs
location = /favicon.ico {
log_not_found off;
access_log off;
}
# Don't log missing robots or show them in the nginx logs
location = /robots.txt {
allow all;