<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kangtain.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Nginx%3AVhost_NextCloud</id>
	<title>Nginx:Vhost NextCloud - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kangtain.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Nginx%3AVhost_NextCloud"/>
	<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=Nginx:Vhost_NextCloud&amp;action=history"/>
	<updated>2026-04-25T15:04:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://kangtain.com/wiki/index.php?title=Nginx:Vhost_NextCloud&amp;diff=7571&amp;oldid=prev</id>
		<title>Kangtain at 23:16, 18 December 2022</title>
		<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=Nginx:Vhost_NextCloud&amp;diff=7571&amp;oldid=prev"/>
		<updated>2022-12-18T23:16:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:16, 19 December 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;syntaxhighlight lang=&quot;nginx&quot; line=&quot;1&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  server {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  server {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      listen 80;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      listen 80;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l110&quot;&gt;Line 110:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 111:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          access_log off;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          access_log off;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Server]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Server]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Web Server]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Web Server]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Nginx]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Nginx]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:NextCloud]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:NextCloud]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kangtain</name></author>
	</entry>
	<entry>
		<id>https://kangtain.com/wiki/index.php?title=Nginx:Vhost_NextCloud&amp;diff=4771&amp;oldid=prev</id>
		<title>Kangtain at 23:36, 19 July 2022</title>
		<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=Nginx:Vhost_NextCloud&amp;diff=4771&amp;oldid=prev"/>
		<updated>2022-07-19T23:36:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:36, 20 July 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l111&quot;&gt;Line 111:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 111:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Server]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Web Server]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Nginx]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:NextCloud]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kangtain</name></author>
	</entry>
	<entry>
		<id>https://kangtain.com/wiki/index.php?title=Nginx:Vhost_NextCloud&amp;diff=4770&amp;oldid=prev</id>
		<title>Kangtain: Created page with &quot; server {      listen 80;      listen [::]:80;      server_name nextcloud.example.com;        # Add headers to serve security related headers      add_header X-Content-Type-Options nosniff;      add_header X-XSS-Protection &quot;1; mode=block&quot;;      add_header X-Robots-Tag none;      add_header X-Download-Options noopen;      add_header X-Permitted-Cross-Domain-Policies none;      add_header Referrer-Policy no-referrer;        #I found this header is needed on Ubuntu, but not...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=Nginx:Vhost_NextCloud&amp;diff=4770&amp;oldid=prev"/>
		<updated>2022-07-19T23:35:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; server {      listen 80;      listen [::]:80;      server_name nextcloud.example.com;        # Add headers to serve security related headers      add_header X-Content-Type-Options nosniff;      add_header X-XSS-Protection &amp;quot;1; mode=block&amp;quot;;      add_header X-Robots-Tag none;      add_header X-Download-Options noopen;      add_header X-Permitted-Cross-Domain-Policies none;      add_header Referrer-Policy no-referrer;        #I found this header is needed on Ubuntu, but not...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; server {&lt;br /&gt;
     listen 80;&lt;br /&gt;
     listen [::]:80;&lt;br /&gt;
     server_name nextcloud.example.com;&lt;br /&gt;
 &lt;br /&gt;
     # Add headers to serve security related headers&lt;br /&gt;
     add_header X-Content-Type-Options nosniff;&lt;br /&gt;
     add_header X-XSS-Protection &amp;quot;1; mode=block&amp;quot;;&lt;br /&gt;
     add_header X-Robots-Tag none;&lt;br /&gt;
     add_header X-Download-Options noopen;&lt;br /&gt;
     add_header X-Permitted-Cross-Domain-Policies none;&lt;br /&gt;
     add_header Referrer-Policy no-referrer;&lt;br /&gt;
 &lt;br /&gt;
     #I found this header is needed on Ubuntu, but not on Arch Linux. &lt;br /&gt;
     add_header X-Frame-Options &amp;quot;SAMEORIGIN&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
     # Path to the root of your installation&lt;br /&gt;
     root /usr/share/nginx/nextcloud/;&lt;br /&gt;
 &lt;br /&gt;
     access_log /var/log/nginx/nextcloud.access;&lt;br /&gt;
     error_log /var/log/nginx/nextcloud.error;&lt;br /&gt;
 &lt;br /&gt;
     location = /robots.txt {&lt;br /&gt;
         allow all;&lt;br /&gt;
         log_not_found off;&lt;br /&gt;
         access_log off;&lt;br /&gt;
     }&lt;br /&gt;
 &lt;br /&gt;
     # The following 2 rules are only needed for the user_webfinger app.&lt;br /&gt;
     # Uncomment it if you&amp;#039;re planning to use this app.&lt;br /&gt;
     #rewrite ^/.well-known/host-meta /public.php?service=host-meta last;&lt;br /&gt;
     #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json&lt;br /&gt;
     # last;&lt;br /&gt;
 &lt;br /&gt;
     location = /.well-known/carddav {&lt;br /&gt;
         return 301 $scheme://$host/remote.php/dav;&lt;br /&gt;
     }&lt;br /&gt;
     location = /.well-known/caldav {&lt;br /&gt;
        return 301 $scheme://$host/remote.php/dav;&lt;br /&gt;
     }&lt;br /&gt;
 &lt;br /&gt;
     location ~ /.well-known/acme-challenge {&lt;br /&gt;
       allow all;&lt;br /&gt;
     }&lt;br /&gt;
 &lt;br /&gt;
     # set max upload size&lt;br /&gt;
     client_max_body_size 512M;&lt;br /&gt;
     fastcgi_buffers 64 4K;&lt;br /&gt;
 &lt;br /&gt;
     # Disable gzip to avoid the removal of the ETag header&lt;br /&gt;
     gzip off;&lt;br /&gt;
 &lt;br /&gt;
     # Uncomment if your server is build with the ngx_pagespeed module&lt;br /&gt;
     # This module is currently not supported.&lt;br /&gt;
     #pagespeed off;&lt;br /&gt;
 &lt;br /&gt;
     error_page 403 /core/templates/403.php;&lt;br /&gt;
     error_page 404 /core/templates/404.php;&lt;br /&gt;
 &lt;br /&gt;
     location / {&lt;br /&gt;
        rewrite ^ /index.php;&lt;br /&gt;
     }&lt;br /&gt;
 &lt;br /&gt;
     location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {&lt;br /&gt;
        deny all;&lt;br /&gt;
     }&lt;br /&gt;
     location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {&lt;br /&gt;
        deny all;&lt;br /&gt;
      }&lt;br /&gt;
 &lt;br /&gt;
     location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) {&lt;br /&gt;
        include fastcgi_params;&lt;br /&gt;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;&lt;br /&gt;
        try_files $fastcgi_script_name =404;&lt;br /&gt;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;&lt;br /&gt;
        fastcgi_param PATH_INFO $fastcgi_path_info;&lt;br /&gt;
        #Avoid sending the security headers twice&lt;br /&gt;
        fastcgi_param modHeadersAvailable true;&lt;br /&gt;
        fastcgi_param front_controller_active true;&lt;br /&gt;
        fastcgi_pass unix:/run/php/php7.4-fpm.sock;&lt;br /&gt;
        fastcgi_intercept_errors on;&lt;br /&gt;
        fastcgi_request_buffering off;&lt;br /&gt;
     }&lt;br /&gt;
 &lt;br /&gt;
     location ~ ^/(?:updater|ocs-provider)(?:$|/) {&lt;br /&gt;
        try_files $uri/ =404;&lt;br /&gt;
        index index.php;&lt;br /&gt;
     }&lt;br /&gt;
 &lt;br /&gt;
     # Adding the cache control header for js and css files&lt;br /&gt;
     # Make sure it is BELOW the PHP block&lt;br /&gt;
     location ~* \.(?:css|js)$ {&lt;br /&gt;
         try_files $uri /index.php$uri$is_args$args;&lt;br /&gt;
         add_header Cache-Control &amp;quot;public, max-age=7200&amp;quot;;&lt;br /&gt;
         # Add headers to serve security related headers (It is intended to&lt;br /&gt;
         # have those duplicated to the ones above)&lt;br /&gt;
         add_header X-Content-Type-Options nosniff;&lt;br /&gt;
         add_header X-XSS-Protection &amp;quot;1; mode=block&amp;quot;;&lt;br /&gt;
         add_header X-Robots-Tag none;&lt;br /&gt;
         add_header X-Download-Options noopen;&lt;br /&gt;
         add_header X-Permitted-Cross-Domain-Policies none;&lt;br /&gt;
         add_header Referrer-Policy no-referrer;&lt;br /&gt;
         # Optional: Don&amp;#039;t log access to assets&lt;br /&gt;
         access_log off;&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    location ~* \.(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$ {&lt;br /&gt;
         try_files $uri /index.php$uri$is_args$args;&lt;br /&gt;
         # Optional: Don&amp;#039;t log access to other assets&lt;br /&gt;
         access_log off;&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Kangtain</name></author>
	</entry>
</feed>