新版 WampServer 开放外网访问配置步骤有所改变,如下:

  1. 运行 WampServer ,右键图标,设置语言中文,并增加在线/离线选项菜单:
    WampServer-1.png
  2. 左键点击托盘图标,切换到在线状态,如图:
    WampServer-2.png
  3. 打开编辑配置文件“httpd-vhosts.conf”,修改“Require local”为“Require all granted”,例如:

    <VirtualHost *:80>
    ServerName localhost
    DocumentRoot c:/wamp64/www
    <Directory "c:/wamp64/www/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require all granted
    </Directory>
    </VirtualHost>
  4. 重启 Apache 即可。
最后修改:2019 年 03 月 04 日
如果觉得我的文章对你有用,请随意赞赏