我一直在毆打我的頭,整個晚上都無法看清我要出錯的地方。我想在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>