我一直在殴打我的头,整个晚上都无法看清我要出错的地方。我想在xampp上设置一个主机mysite.local,并按照所有说明操作,但我一直在重定向到mysite.local/xampp。xampp - mysite.local重定向到xampp文件夹
任何想法,我哪里会出错?的路径是正确的,我已经重新启动Apache的:)
我修改了hosts文件中加入:
127.0.0.1 mysite.local
我编辑的额外/的httpd-vhosts.conf:
NameVirtualHost localhost:80
<VirtualHost localhost:80>
ServerName localhost
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
<Directory "/Applications/XAMPP/xamppfiles/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
<VirtualHost localhost:80>
<Directory "/Applications/XAMPP/xamppfiles/htdocs/wd">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/wd"
ServerName mysite.local
</VirtualHost>