php虚拟主机配置: 二级目录访问跳转到其他根文件夹

时间:2021-01-08 12:07:27
<VirtualHost *:80>
    ServerAdmin webmaster@abc.com
    DocumentRoot "d:/www/abc"
    ServerName www.abc.com
    ##ServerAlias 
    Alias /course "d:/www/moodle"
    <Directory "d:/www/moodle">
        Options FollowSymLinks
        AllowOverride None 
        Order deny,allow
        allow from all
   </Directory>
</VirtualHost>


访问 http://www.abc.com/course/ ,实际访问的是:d:/www/moodle/index.php