2016-08-02 9 views
1

初めて私はウェブサイトをホストしようとします。最初に "Strato"でドメインを購入しました。私はこのドメイン上でUbuntuサーバーとDyndnsを使用している私たちのfitzboxを経由してApacheを実行しています。しかし、今私は次のステップを実行し、サブドメインをホストしたい。私はstrato Webインターフェイス上にサブドメインを作成し、Apacheに設定しようとしましたが、接続できません。私がサブドメインにDynDnsをサブドメインに変更すると、私はサブドメインに接続できますが、通常のドメインには接続できません。私はインターネット経由で両者に到達するために何ができるのですか? 000.default.conf ----両者が サブドメインApache2

<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はApacheでの

私はこの2つのファイルを作成しましたオープンと私が使用この設定Fritzbox DynDns Settings

ストラト:Strato Domains

私の英語のために本当に泣いています、私はscoolで最高ではありません私はあなたが事実を無視することができます願っています...

ありがとうございます!

答えて

1

Apacheの設定はOKです、問題はDNSである:

onewaygaming.saneqt.de

;QUESTION 
onewaygaming.saneqt.de. IN A 
;ANSWER 
onewaygaming.saneqt.de. 149 IN A 81.169.145.156 

www.SaneQt.de

www.SaneQt.de. IN A 
;ANSWER 
www.SaneQt.de. 149 IN CNAME SaneQt.de. 
SaneQt.de. 59 IN A 46.243.84.57 

このとき、http://www.saneqt.de/はので、私は推測Hallo weltに応答しています正しい設定をしていることを確認します。その場合は、onewaygaming.saneqt.deCNAMEレコードを、www.SaneQt.deの場合とまったく同じに設定する必要があります。

+0

"onewaygaming.saneqt.de。IN A"と他のものとはどういう意味なのでしょうか?問題は私のフリッツボックスipが毎日変わっていることです。私はrly new ...とcnameのことです私はsaneqt.deで何かを設定しましたdyndnsを有効にしている間、設定はブロックされています... –

+0

これを行う:http://www.strato-faq.co.uk/article/111/How-to-setup-CNAME-recordサブドメインの-for-your-subdomain.html CNAMEのエントリが 'www.saneqt.de'を入力すると –

+0

私は「絶対サーバ名を記入する必要があります」と言うエラーを受け取ります。 –

関連する問題