updated nginx state
This commit is contained in:
parent
d0eb00f5c3
commit
b7ca8cf3a7
@ -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 %}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user