首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >多个带有dyndns的apache站点

多个带有dyndns的apache站点
EN

Server Fault用户
提问于 2010-07-04 16:28:30
回答 1查看 322关注 0票数 0

嗨,我只想问一问,如何通过dyndn.homelinux.org/ .Also为我的计算机上托管的多个站点提供服务,我使用的是ubuntu10.04,并且我已经设置了dyndns域( mydomain.homelinux.org/ .Also),我用下面的配置设置了一个虚拟主机

代码语言:javascript
复制
<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文件是:

代码语言:javascript
复制
127.0.0.1 localhost joomla-site.com drupal-site.com
127.0.1.1 medic

现在,当我在lani之外访问mydomain.homelinux.org时,会看到apache.Any建议的默认站点吗?

EN

回答 1

Server Fault用户

发布于 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更改。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/157415

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档