Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fcaldarelli/99e779108619ded48c93a226e97cf2f0 to your computer and use it in GitHub Desktop.
Save fcaldarelli/99e779108619ded48c93a226e97cf2f0 to your computer and use it in GitHub Desktop.
Plesk allow subfolder access in protected folder
# 1. Inside Websites And Domains & > Apache & nginx Settings
<Directory "/var/www/vhosts/sfmobile.it/devtat.sfmobile.it">
SetEnvIf Request_URI "frontend_cro/img/email-template" allowed_restricted
Order Deny,Allow
Deny from all
Allow from env=allowed_restricted
Satisfy any
</Directory>
# 2. Insert .htaccess inside subfolder to allow
Allow From All
Satisfy Any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment