## Shaarli
server {
{% include './templates/header.conf.j2' %}
	root /srv/http/fav.libertus.eu/;
	index index.html index.htm index.php;
	
	location ^/(cache|data)/ {
		deny all;
	}
	
	location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
				expires 2w;
				log_not_found off;
	}
	
	location / {
		try_files _ /index.php$is_args$args;
	}
	
	location ~ index\.php$ {
		try_files $uri =404;
		fastcgi_split_path_info ^(index.php)(/.+)$;
		fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
		fastcgi_index index.php;
		include fastcgi_params;
	}
}

