系統:win10wamp版本 3.0.6Apache版本 2.4.23本機可以訪問test01.com局域網內其他電腦不可以訪問httpd-vhosts.conf修改如下:<VirtualHost *:80>?ServerName test01.com?DocumentRoot d:/wamp/www/test01?<Directory? "d:/wamp/www/test01">??Options +Indexes +Includes +FollowSymLinks +MultiViews??AllowOverride All??Require local? Require all granted?</Directory>httpd.conf修改如下:(+斜體部分)DocumentRoot "D:/wamp/www"<Directory "D:/wamp/www">??? #??? # 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 +Multiviews??? #??? # 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??? Require all granted</Directory>hosts文件加127.0.0.1 test01.com
- 2 回答
- 1 關注
- 1455 瀏覽
添加回答
舉報
0/150
提交
取消