• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue php file downloading instead of executing when using deny access

elaa

Basic Pleskian
I am denying access website only from one IP Address, so I add this code in PLESK Domains > example.com >

Apache & nginx Settings. in the Additional nginx directives section I added this code and my ip address

Code:
    location ^~ /ctst {
    allow 203.0.113.2;
    deny all;
    }

but this only denied access to /ctst but all other files inside /ctst are not denied
 
Last edited:
Back
Top