27 lines
593 B
Django/Jinja
27 lines
593 B
Django/Jinja
server {
|
|
{% include './templates/header.conf.j2' %}
|
|
|
|
root /var/www/koi.libertus.eu/public;
|
|
|
|
index index.html index.htm index.php;
|
|
|
|
# Media: images, icons, video, audio, fonts
|
|
location ~* \.(?:jpg|jpeg|gif|png|webp|ico|svg|webm|eot|ttf|otf|woff|woff2|js|css)$ {
|
|
expires 2w;
|
|
access_log off;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
|
|
location ~ [^/]\.php(/|$) {
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
|
|
|
try_files $uri $document_root$fastcgi_script_name =404;
|
|
|
|
include fastcgi_params;
|
|
fastcgi_pass unix:/run/php/php{{ php_version }}-fpm.sock;
|
|
}
|
|
}
|