修改index.php 这俩行文件
$projectContents .= 'http://localhost/'.$file.$UrlPort.'/"';
$projectContents .= 'http://localhost/'.$UrlPort.'/'.$file.'/"';
$projectContents .= 'http://localhost/'.$UrlPort.'/'.$file.'/"';
apache拓展里面的autoindex_module打开
配置
C:\PHP\wamp64\bin\apache\apache2.4.17\conf\extra
配置
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "c:/PHP/wamp64/www/my-site"
ServerName www.good.com
<Directory "c:/PHP/wamp64/www/my-site">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "c:/PHP/wamp64/www/my-site"
ServerName www.good.com
<Directory "c:/PHP/wamp64/www/my-site">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>