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: - require:
- file: nginx-config-dir-sites-available - file: nginx-config-dir-sites-available
- file: nginx-config-dir-sites-enabled - file: nginx-config-dir-sites-enabled
- watch_in:
- service: nginx-service
- context: - context:
vhost_name: {{ vhost.name }} vhost_name: {{ vhost.name }}
https: {{ vhost.https|default(true) }} https: {{ vhost.https|default(true) }}

View File

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