网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 服务器与数据库 > 服务器环境搭建
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

服务器环境搭建 Windows,Linux,IIS,Apache等服务器配置、安全维护以及PHP和MYSQL运行环境讨论。

Reply
 
Thread Tools Display Modes
  #1   IP: 112.84.222.131
Old 2016-05-31, 06:53 PM
North Manchester North Manchester is offline
初级会员
 
Join Date: 2010-04-28
Posts: 1
North Manchester 现在声名狼藉
Default apache设置目录禁止执行危险文件方法

第1步:使用记事本打开apache config目录中的httpd.conf文件。

第2步:在打开的httpd.conf文件中找到自己web网站的配置文件,在目录中添加以下代码并保存。

<Directory "C:\pc811\data">

<FilesMatch ".(php|asp|jsp)$">

Deny from all

</FilesMatch>

</Directory>


注:C:\pc811\data是网站目录下的data目录,此目录设置禁止.php .asp .jsp文件运行,如果需要再禁止其他文件,只需要在加入|文件扩展名即可。

第3步:修改apache配置完毕之后,需要重新启一下apache系统服务才可以生效。生效之后,我们随便放一个可执行的php文件,在访问这些受限制扩展名的文件后我们发现这些浏览器提示403错误。

电脑互助网注:HTTP403错误就是服务器禁止访问的意思。
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 11:12 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.