<aside> <img src="/icons/snippet_pink.svg" alt="/icons/snippet_pink.svg" width="40px" /> nginx script
server {
listen 80;
server_name $domain www.$domain;
root $dir;
index index.php;
error_page 404 /index;
error_log /var/log/nginx/$name.error;
access_log /var/log/nginx/$name.access;
location / {
try_files \\$uri \\$uri/ /index.php?\\$args;
}
location ~* /uploads/.*\\.php$ {
return 503;
}
location ~ \\.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
}
location ~ /\\.ht {
deny all;
}
}
</aside>