应《中华人民共和国网络安全法》要求,自2017年6月1日起,使用互联网服务需进行帐号实名认证。为保障您的百度帐号能够正常使用,请尽快对帐号进行手机号验证,感谢您的理解与支持。

PHP5的配置问题! 20

php5完全攻略上 有一段写的是: 把Apache网站的根目录修改为D盘My Website的htdocs目录,找到如下一行代码:DocumentRoot "C:/Single Machine Tool/Apache Software Foundation/Apache2.2/htdocs" 修改为: "D:/Website/htdocs" 这本书的例子 是把Apach... 展开
发布于2011-03-13 15:38 最佳答案
/
#上面一句是2222222222222222

第一处和第二处必须保持一致;

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something'www"htdocs":/htdocs">.
#
<D.
#
#<www/,所有你写的js;C:/apache5/ to be a very restrictive set of
# features;
#上面一句是1111111111111
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/Directory "www"Directory /C,css;or disabled in that
# directory (and its subdirectories);
DocumentRoot ">.
#

#
# This should be changed to whatever you set DocumentRoot to;D;
Options FollowSymLinks
AllowOverride none
Order deny,html全放这

#DocumentRoot "s not working as
# you might expect;Directory "/
<www/, we configure the "default">:/这是放php文件的地方.
#
# First, make sure that you have specifically enabled it
# below;Directory>apache5/,你可以随便改个文件夹,allow
Deny from all
<

为您推荐: