好的,这是我的问题:我已经为自己设置了一个具有适当服务器名称的虚拟主机。例如,我还在同一台机器上安装了 Squirrelmail 和 SVN。我想通过输入 http://mydomain 进入默认页面,通过输入 http://mydomain/mail 进入我的邮件前端,通过输入 http://mydomain.no-ip.org/svn 进入我的 svn。
这是我的虚拟主机定义:
<VirtualHost *:80>
ServerName mydomain.no-ip.org
#Default site, accessible by http :// mydomain.no-ip.org/
<Location />
DocumentRoot "/var/www/alias"
DirectoryIndex index.php
</Location>
#Squirrelmail, accessible by http :// mydomain.no-ip.org /mail
<Location /mail>
DocumentRoot /usr/share/squrrelmail
Options FollowSymLinks
<IfModule mod_php5.c>
php_flag register_globals off
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
<Files configtest.php>
order deny,allow
deny from all
allow from 127.0.0.1
</Files>
</Location>
#SVN, accessible by http :// mydomain.no-ip.org /svn
<Location /svn>
DAV svn
SVNParentPath "/svnrepo"
SVNListParentPath …
Run Code Online (Sandbox Code Playgroud)