Apache folder permission configuration in windows

Source: Internet
Author: User

In some development scenarios, we often want to restrict some directories from executing files such as php asp asp.net, so many friends use mcafee rules to restrict them, we can also use apache rules to restrict the use of apache.

To prevent the Upload Vulnerability, some directories need to disable the php script execution permission,

Instance:

The Code is as follows: Copy code

<Directory "e:/webroot/test">
<Files ~ ". Php">
Order allow, deny
Deny from all
</Files>
</Directory>


In the httpd. conf file, add (PHP4 or above) to the settings of this directory)
"Php_admin_flag engine off"

Instance:

The Code is as follows: Copy code

<Directory/srv/www/htdocs/path>
Php_admin_flag engine off
</Directory>

Note: In Windows, Apache runs with the SYSTEM permission. You can set the read and write permissions of the SYSTEM account for the corresponding folder.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.