它第一次尝试托管一个网站..首先我买了一个域名在“Strato”上,我通过Ubuntu服务器和我们的Fitzbox使用Dyndns获得了在这个域上运行的apache。但是现在我想做下一步并托管一个子域。我在strato网页界面上创建了一个子域,并试图在apache中设置它,但我无法连接到它。如果我将我们的fritzbox中的DynDns更改为子域名,我可以连接到子域名但不能访问正常的域名,您知道我可以通过互联网连接到这两个域名吗?子域Apache2
在阿帕奇我创造了这个2个文件:000.default.conf ----两者都被启用
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName www.SaneQt.de
ServerAdmin [email protected]
DocumentRoot /var/www/000
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
001-oneway.conf
<VirtualHost *:80>
ServerName onewaygaming.saneqt.de
DocumentRoot /var/www/001
</VirtualHost>
FritzboxSettings:80端口是开放,我用这个设置Fritzbox DynDns Settings
我真的是我的英语,我不是最好的,我希望你可以忽略这个事实...
在此先感谢!
林不知道你是什么意思与“onewaygaming.saneqt.de IN A”和其他的东西......问题是我的fritzbox IP每天都在变化.Im rly新...和CNAME的事情是我dindnt配置saneqt.de的东西设置被阻止,而我激活dyndns ... –
做到这一点:http://www.strato-faq.co.uk/article/111/How-to-setup-CNAME-record -for-your-subdomain.html为您的子域名。作为CNAME条目把'www.saneqt.de' –
我得到一个错误,称为“我需要填写一个绝对服务器名称” –