Files
ansible/roles/nginx/templates/vhosts/blog.libertus.eu.conf.j2
2025-03-09 15:01:51 +01:00

22 lines
381 B
Django/Jinja

server {
{% include './templates/header.conf.j2' %}
root /var/www/blog.libertus.eu/;
index index.html index.htm index.php;
## Optimisation des images
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
expires 2w;
log_not_found off;
}
## blocage équivalent HTTPS
location ~ (\.htaccess|\.inc)$ {
deny all;
}
location /feed/atom {
return 302 /atom.xml;
}
}