• 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.

Resolved unable to download exe file 403 error

drusixtynine

Basic Pleskian
Hi there,
I want to put an exe file to be downloadable for my website visitors,
Here is the page Installation de TDF
Cllicking on the download button fires an 403 error
The log file shows this
[Mon Jul 20 00:01:12.998539 2020] [authz_core:error] [pid 29661] [client MYIPADDRESS:55344] AH01630: client denied by server configuration: /var/www/vhosts/muchosoft.com/httpdocs/software/tdf/INSTALL/INSTALL.EXE
Thanks for any help that you guys could give
 
Hi and thanks for the answer,
The problem is that it is not the same error, mine is AH01630 and not AH01797
Anyway, I tried the solution and there is nothing in the "Apache & Nginx settings"
There is no .htaccess file either
 
Maybe ModSecurity is blocking the request. Try to turn of the "web application firewall", then try the download again.
 
Same problem here AHO1630 - trying to download .exe file from host.

httpd.conf

Code:
<LocationMatch ".+\\.(?i:psd|log|cmd|exe|bat|csh|sh)$">
            Require all denied
</LocationMatch>

is the problem.

is there a way to allow this through .htaccess?
 
My original problem is back again.... and the solution I have found at that time is now unavailable and I can't remember how to fix it...
Can someone help please??
This link brings a 403 error... it was litterally working a week ago
 
"AH01630: client denied by server configuration:" means that the web server does not allow you to access the file by design, e.g. by a rule in your .htaccess file, a password-protected directory or something similar. Have you checked the contents of your .htaccess file?
 
No I didn't beforehand but it's very basic, here it is
# BEGIN WordPress
# Les directives (lignes) entre « BEGIN WordPress » et « END WordPress » sont générées
# dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.
# Toute modification des directives situées entre ces marqueurs sera surchargée.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

The website is very basic on wordpress, but it is a one page that links to another site.
The problem is in download pages like this one Installation de GESTIAA and the download button (in french) links to an install.exe file does not work
Any other idea??
 
Have you tested the full path for .htaccess files? You are showing the top level WP .htaccess, but what about the subdirectories that lead to
./software/tdf/INSTALL/INSTALL.EXE
?
And I forgot to mention: We have had several customers who accidentally placed an .htaccess file into their subscription root directory, so actually outside the httpdocs, but this also applies. So only to be sure you need to check the full path starting from the subscription root down to the file whether there is an access restriction involved.
 
None is there, there is no htaccess in any root folder up to the file folder... maybe I need to put one??
Could it be something that I need to change in plesk?
 
Here is another idea: In the Wordpress Toolkit "Security" settings there is an option that is called "Block access to potentially sensitive files". If that is checked, you cannot download file types like the above mentioned exe. Could you please check if that setting is active, in case it is deactivate that and try again?
 
Well done, that was it. I just reverted "Block access to potentially sensitive files" and it's back to normal
Thank you so much for the follow up
 
"Block access to potentially sensitive files"
This setting also blocks access for exe-files stored in Nextcloud in the same domain. Even if Wordpress and Nexcloud are installed in different directories.

Thank you very much Peter!
I searched in Nextcloud and nginx for a very long time without success. I couldn't figure out that it was the wordpress toolkit.
 
Back
Top