dyndns多个Apache网站

大家好,我想问问怎么可能服务多个站点托pipe在我的电脑与Apache通过dyndns.I使用Ubuntu 10.04,我已经安装了一个dyndns域作为mydomain.homelinux.org/.Also我也设置了一个虚拟主机与下面的configuration

<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName www.drupal-site.com ServerAlias drupal-site.com DocumentRoot /home/pavlos/Temp/websites/drupal-site/htdocs <Directory /> Options FollowSymLinks AllowOverride all </Directory> <Directory /home/pavlos/Temp/websites/drupal-site/htdocs/> Options FollowSymLinks AllowOverride all Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /home/pavlos/Temp/websites/drupal-site/cgi-bin/ <Location /cgi-bin> Options +ExecCGI </Location> # Logfiles ErrorLog /home/pavlos/Temp/websites/drupal-site/logs/error.log CustomLog /home/pavlos/Temp/websites/drupal-site/logs/access.log combined </VirtualHost> 

我的/ etc / hosts文件是:

 127.0.0.1 localhost joomla-site.com drupal-site.com 127.0.1.1 medic 

现在当我去我的lani之外的mydomain.homelinux.org看到apache的默认网站。任何build议?

你会想要像这样的域名:

http://www.joomla-site.com和joomla-site.combuild立一个CNAME到mydomain.homelinux.org和www.drupal-site.com和drupal-site.com一样&#x3002;

这样,当这个人请求www.joomla-site.com,传递给Apache的Host头是正确的,而不是你看到mydomain.homelinux.org。

您可以对Alogging执行相同的操作,但CNAME不需要使用IP地址configuration域,并且在更新dynamicDNS地址时,其他两个域不需要任何DNS更改。