updated nginx state

This commit is contained in:
Paul 2020-07-30 14:07:42 +02:00
parent d0eb00f5c3
commit b7ca8cf3a7
2 changed files with 5 additions and 3 deletions

View File

@ -46,6 +46,8 @@ nginx-sites-available-{{ key }}:
- require:
- file: nginx-config-dir-sites-available
- file: nginx-config-dir-sites-enabled
- watch_in:
- service: nginx-service
- context:
vhost_name: {{ vhost.name }}
https: {{ vhost.https|default(true) }}
@ -70,4 +72,4 @@ nginx-site-enabled-{{ key }}:
- nginx-sites-available-{{ key }}
- watch_in:
- service: nginx-service
{%- endfor %}
{%- endfor %}

View File

@ -11,7 +11,7 @@ server {
server_name {{ vhost_name }};
root {{ root_dir }};
index index.php
index index.php;
error_page 403 /core/templates/403.php;
error_page 404 /core/templates/404.php;
rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect;
@ -48,4 +48,4 @@ server {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
try_files $1 =404;
}
}
}