嗨,我只想问一问,如何通过dyndn.homelinux.org/ .Also为我的计算机上托管的多个站点提供服务,我使用的是ubuntu10.04,并且我已经设置了dyndns域( mydomain.homelinux.org/ .Also),我用下面的配置设置了一个虚拟主机
<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/host文件是:
127.0.0.1 localhost joomla-site.com drupal-site.com
127.0.1.1 medic现在,当我在lani之外访问mydomain.homelinux.org时,会看到apache.Any建议的默认站点吗?
发布于 2010-07-04 17:08:03
您可能希望拥有这样的域:
www.joomla-site.com和joomla-site.com与CNAME一起设置为mydomain.homelinux.org,并与www.drapal-site.com和drupal-site.com相同。
这样,当用户请求www.joomla-site.com时,传递给apache的header是正确的,而不是您看到的mydomain.homelinux.org。
您可以对A记录进行同样的操作,但是CNAME不要求您使用IP地址配置域,并且当您的动态DNS地址被更新时,您的其他两个域将不需要任何DNS更改。
https://serverfault.com/questions/157415
复制相似问题