剛安裝好wampserver怜俐,我的版本是WampServer Version 2.5
Apache的版本是2.4.9。
如果沒有特別配置的話睹酌,在pc上用localhost或者本地ip或者127.0.0.1都是可以訪問的权谁,但是如果你在其它pc或者手機(內網wifi)訪問的話,是不可以的憋沿,即使用的是192.168.x.x旺芽。
打開..\wamp\bin\apache\apache2.4.9\conf\httpd.conf配置文件,
#
# 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
Require all granted ? ? ? #只需增加這行字母辐啄,此注釋不能添加采章,因為不能增加中文
# Controls who can get stuff from this server.
#
# ? onlineoffline tag - don‘t remove
Require local
以上粗體的部分為增加的內容。