远程访问wamp

修改httpd-vhosts.conf文件

D:\wamp64\bin\apache\apache2.4.41\conf\extra\httpd-vhosts.conf文件

Require local下边增加一行:Require all Granted


修改D:\wamp64\alias\*.conf文件

Alias /abc "D:/wamp64/www/abc/"


<Directory "D:/wamp64/www/abc/">

    Options Indexes FollowSymLinks

    AllowOverride all

  <IfDefine APACHE24>

    #Require local

Require all Granted

  </IfDefine>

  <IfDefine !APACHE24>

    Order Deny,Allow

  Deny from all

  Allow from localhost ::1 127.0.0.1

  #Allow from all

</IfDefine>

</Directory>