我的Appche配置文件(httpd.conf)找到<Directory "f:/demo/">,沒得 "Deny from all" 這句話 求解?
打開Appche配置文件(httpd.conf),搜索httpd-vhosts項(xiàng),去掉改行的注釋符號(hào)#。搜索網(wǎng)站目錄(例子里是"demo"),
找到<Directory "f:/demo/">,向下找到"Deny from all"(意思是不允許外部訪問)改成"Allow from all",
再把下一行"Allow from 127.0.0.1"(意思是允許本機(jī)訪問)加#號(hào)注釋掉。
<Directory "D:/PHP5.4_code/PHPCode/PHPProject/">
??? #
??? # Possible values for the Options directive are "None", "All",
??? # or any combination of:
??? #?? Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
??? #
??? # Note that "MultiViews" must be named *explicitly* --- "Options All"
??? # doesn't give it to you.
??? #
??? # The Options directive is both complicated and important.? Please see
??? # http://httpd.apache.org/docs/2.4/mod/core.html#options
??? # for more information.
??? #
??? Options Indexes FollowSymLinks
??? #
??? # AllowOverride controls what directives may be placed in .htaccess files.
??? # It can be "All", "None", or any combination of the keywords:
??? #?? AllowOverride FileInfo AuthConfig Limit
??? #
??? AllowOverride all
??? #
??? # Controls who can get stuff from this server.
??? #
#?? onlineoffline tag - don't remove
??? Require local
</Directory>
我的沒得 Deny from all 我不知道 Require local是什么意思? 請(qǐng)問我是不是需要加上這句話楠 Allow from all? 我在www.wampserver.com上面下的最新版本Apache
2015-07-19
看wiki,在問答板塊后面
2015-07-20
1.打開httpd.conf 找到”Include conf/extra/httpd-vhosts.conf“去掉前面的“#”號(hào),保存
2.打開httpd-vhost.conf 在最末尾加上這樣一段
<VirtualHost *:80>
? ?ServerName test01.com
? ?DocumentRoot &q...
這個(gè)&q...? 是啥意思啊? BobWang老師