In the IIS environment, the script execution permission of the directory can be set in the Internet Information Services (IIS) Manager.
How to set up in Apache environment?
I found two options:
Scenario 1) Restricting requests for .php files via .htaccess.
Create a .htaccess file in the directory where you want to cancel the PHP execution permissions, enter the following content and save it.
<Files ~ ".php">
order allow,deny
deny from all
</Files>
The premise is that your Apache has URL rewriting enabled.
Scenario 2) Set in the Apache configuration file.
Find the corresponding virtual host section, add the following content, and then restart httpd.
<Directory "Directory path to remove PHP execute permissions">
<Files ~ ".php">
Order allow,deny
Deny from all
</Files>
</Directory>
Currently I am using option 1, I feel so flexible . And for virtual hosts that don't generally have Apache permissions,
Phenomenon: Suddenly found that access to the website is very slow, the servers c
In the current Internet development, many unit users and even individual users ha
one by one binding methodIn order to meet the special needs of the staff of the unit, many units hav
But because of the many similarities between X86 servers and desktops, there are m
Nine steps to teach you to successfully deploy a virtualization project
Batch cleanup of Nginx cache using Shell scripts
IIS log analysis tool EXCEL pivot table
Eliminate hidden dangers from the root cause of server virus removal
Grading defense against Linux server attacks
Simple command to restart Nginx
Server virtual system comparison: Xen vs MS vs VM
Ban web and other directories to execute exe, bat, com methods
How do you know if Win8 is the official version?
How can I handle the Windows 7 system recycle bin?
How to manually add the missing boot.ini file to WinXP
What if the laptop can't be charged? How to repair laptop battery loss?
What emoji expressions are added to win10 win10 new vertical middle finger emoji expression
How to disable USB port device from Windows domain environment
Win7 system can not install League of Legends how to solve