You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
896 B
Plaintext
33 lines
896 B
Plaintext
2 years ago
|
server {
|
||
|
listen 443 ssl;
|
||
|
server_name dav.ovalwonder.com;
|
||
|
|
||
|
|
||
|
root /var/www/baikal/html;
|
||
|
index index.php;
|
||
|
|
||
|
ssl_certificate /etc/dehydrated/certs/dav.ovalwonder.com/fullchain.pem;
|
||
|
ssl_certificate_key /etc/dehydrated/certs/dav.ovalwonder.com/privkey.pem;
|
||
|
ssl_protocols TLSv1.2 TLSv1 TLSv1.1;
|
||
|
|
||
|
|
||
|
rewrite ^/.well-known/caldav /dav.php redirect;
|
||
|
rewrite ^/.well-known/carddav /dav.php redirect;
|
||
|
|
||
|
charset utf-8;
|
||
|
|
||
|
location ~ /(\.ht|Core|Specific|config) {
|
||
|
deny all;
|
||
|
return 404;
|
||
|
}
|
||
|
|
||
|
location ~ ^(.+\.php)(.*)$ {
|
||
|
try_files $fastcgi_script_name =404;
|
||
|
include /etc/nginx/fastcgi_params;
|
||
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||
|
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||
|
}
|
||
|
}
|