mac的配置文件位置:/etc/apache2/httpd.conf
重启: sudo apachectl restart
之后记得添加hosts:127.0.0.1 laravel.cbd
# Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf
#mydiy
<VirtualHost *:80>
DocumentRoot "/Users/baodong/__TEST__/LearnLaravel/laravel01/public"
ServerName laravel.cbd
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-10-21 12:39:43