geekoops-nginx/templates/default-www.j2
felix.niederwanger@suse.com a7bc2ae71b first commit
2021-03-24 09:46:11 +01:00

23 lines
478 B
Django/Jinja

## Default page handling for nginx
server {
listen 80;
listen [::]:80;
root /srv/www/default;
index index.php index.html index.htm;
server_name {{default_page_hostname}};
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
fastcgi_pass unix:{{php_socket}};
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}