• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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