<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>From what I can tell the config as is is fine, and shouldn't need
to have anything else exposed. Since that's basically their nginx
snippet in a nutshell.</p>
<p>Their warning is more if you attempt to use something that
doesn't have a predefined example set - like lighttpd - where
you'd then have to configure it to have the proper docroot.</p>
<p>Otherwise the configuration looks fine per their nginx example on
the same linked instructions page.</p>
<p><br>
</p>
<p>Thomas<br>
</p>
<div class="moz-cite-prefix">On 9/25/20 2:47 PM, Amateur Synologist
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1f0ffdfc0f99e6d0f6ea828f69d6287f.NginxMailingListEnglish@forum.nginx.org">
<pre class="moz-quote-pre" wrap="">Hi to all. I'm newbie in Linux and nginx, so I need your help
I have Synology NAS with installed Baïkal CardDAV server.
Baïkal Installation instructions says:
"Only the html directory is needed to be accessible by your web browser. You
may choose to lock out access to any other directory using your webserver
configuration.
In particular you should really make sure that the Specific directory is not
accessible directly, as this could contain your sql database.
The following configuration may be used for nginx:
server {
listen 80;
server_name dav.example.org;
root /var/www/baikal/html;
index index.php;
rewrite ^/.well-known/caldav /dav.php redirect;
rewrite ^/.well-known/carddav /dav.php redirect;
charset utf-8;
location ~ /(\.ht|Core|Specific) {
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-fpm/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
"
Source: <a class="moz-txt-link-freetext" href="https://sabre.io/baikal/install/">https://sabre.io/baikal/install/</a>
Can you tell me which nginx file(s) should I edit?
Posted at Nginx Forum: <a class="moz-txt-link-freetext" href="https://forum.nginx.org/read.php?2,289540,289540#msg-289540">https://forum.nginx.org/read.php?2,289540,289540#msg-289540</a>
_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></pre>
</blockquote>
</body>
</html>