• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Downloading files with .db extension - error 403 - forbidden

VojinP

Basic Pleskian
Since some time, my server denies downloading .db extensions, which is crucial for my app to download it directly. When I change filename to .txt extension, works just normally, but when it is .db extension won't work. Any idea why? I think I don't have mod_security or similar stuff on the server. I have tried from several folders in website, same behaviour - denied.
 
Hmm... I have turned of Proxy mode in Apache Nginx settings and now it is working. But that is too bad.....
 
That is nice, but I do not have WordPress site.
Hello.

If disabling Proxy Mode helps - it looks like a problem on Apache's side. Can you check - does the domain has any specific configuration for Apache on "Apache & Nginx settings" page? Also, is there any .htaccess file in domain folders?
 
Hello.

If disabling Proxy Mode helps - it looks like a problem on Apache's side. Can you check - does the domain has any specific configuration for Apache on "Apache & Nginx settings" page? Also, is there any .htaccess file in domain folders?
There is a classic wordpresses htaccess file, I'm using it for my websites. In nginx configuration there was nginx version of wordpresses htaccess...
 
There is a classic wordpresses htaccess file, I'm using it for my websites. In nginx configuration there was nginx version of wordpresses htaccess...
NginX configuration:

Code:
if (!-e $request_filename) {
    set $test P;
}
if ($uri !~ ^/(plesk-stat|webstat|webstat-ssl|ftpstat|anon_ftpstat|awstats-icon|internal-nginx-static-location)) {
    set $test "${test}C";
}
if ($test = PC) {
    rewrite ^/(.*)$ /index.php?$1;
}

.htaccess:
Apache config:
RewriteEngine On
RewriteBase /

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
 
Hello.

If disabling Proxy Mode helps - it looks like a problem on Apache's side. Can you check - does the domain has any specific configuration for Apache on "Apache & Nginx settings" page? Also, is there any .htaccess file in domain folders?
Howver I do not think there is an issue both with nginx configuration or htaccess. For example file.db and file.txt both exists in same folder, file.txt is accessable, file.db is not.
 
Then it has to be a problem with nginx configuration. Did you also check the includes in e.g. /etc/nginx/modules.conf.d?
BTW, which logfile did the errors end up in?
I see no errors in a log, like it never happened, and there is nothing suspicious in nginx configuration files.
 
Back
Top