0

こんにちは、ウェブホスティングのサーバー OS として ubuntu を使用していますが、ドメイン名をサーバーにリダイレクトするのに問題があります。/etc/hosts ファイルと /etc/apache2/sites-available/mysite ファイルを次に示します。

ホスト ファイル:

127.0.0.1 www.lowkey.se

次の行は、IPv6 対応のホストに適しています

::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters

利用可能なサイト/ファイル:

ServerAdmin webmaster@localhost サーバー名 www.lowkey.se

DocumentRoot /var/www/doost/
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory /var/www/doost/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

そして、私のドメイン名プロバイダーからのスクリーンショット:

ここに画像の説明を入力

私は何を間違っていますか?

4

1 に答える 1

1

Apache 構成で次の 3 行をコメントしてから、Apache を再起動してください。

DocumentRoot /var/www/doost/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

コメントするには、次のように置き換えます。

#DocumentRoot /var/www/doost/
#ErrorLog ${APACHE_LOG_DIR}/error.log
#CustomLog ${APACHE_LOG_DIR}/access.log combined
于 2012-11-22T05:30:00.027 に答える