TimReeves
Regular Pleskian
<?php if (!$VAR->domain->physicalHosting->proxySettings['nginxProxyMode']): ?>
location ~ /\.ht {
deny all;
}
<?php endif ?>
So it's saying: If Nginx proxy mode is NOT selected, deny access to .ht* - but in non-proxy mode, .ht* has no special meaning, as nothing is passed to Apache.
I think the test should be the other way around: Deny access to .ht* IF Nginx is proxying to Apache.
For me, this statement torpedoes Nextcloud trying to sync .ht* files stored on my PC for other projects )-:
Cheers, Tim
location ~ /\.ht {
deny all;
}
<?php endif ?>
So it's saying: If Nginx proxy mode is NOT selected, deny access to .ht* - but in non-proxy mode, .ht* has no special meaning, as nothing is passed to Apache.
I think the test should be the other way around: Deny access to .ht* IF Nginx is proxying to Apache.
For me, this statement torpedoes Nextcloud trying to sync .ht* files stored on my PC for other projects )-:
Cheers, Tim