Xampp虚拟主机定向到htdocs根目录

时间:2019-11-25 14:42:31

标签: xampp

我的URL仍然指向xampp htdocs文件夹。我已经绝望了。有人可以帮我吗?

httpd-vhosts.conf

<VirtualHost *:80>
     DocumentRoot "C:\XAMPP\htdocs\mysite"
     ServerName mysite.localhost.com
     <Directory "C:\XAMPP\htdocs\mysite">
        Options Indexes FollowSymLinks Includes ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

主机

127.0.0.1       mysite.localhost.com

httpd.conf未注释

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

apache重新启动

0 个答案:

没有答案