私は最近、ubuntuサーバーを10.04にアップデートしました。私のubuntuサーバーを10.04にアップグレードした後でvirtualhostの設定を修正する方法
私は自分のサーバーから2つのサイトをホストしていますが、更新前にはそれぞれのサイトに正しくリンクされていますが、後で両方のアドレスが同じサイトにリンクします。有効になりました。
私のセットアップは、このようなものです:
を "www.site1.com" と "www.site2.com":の/ etc/apache2の/サイト-利用可能で
/私は2つの構成ファイルを持っていますthesという設定ファイル次のように設定されている:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName www.site1.com
ServerAlias site1.com
# Indexes + Directory Root.
# DirectoryIndex index.html index.htm index.php
DocumentRoot /home/www/www.site1.com/htdocs/
# CGI Directory
ScriptAlias /cgi-bin/ /home/www/www.site1.com/cgi-bin/
<Location /cgi-bin>
Options +ExecCGI
</Location>
# Logfiles
ErrorLog /home/www/www.site1.com/logs/error.log
CustomLog /home/www/www.site1.com/logs/access.log combined
</VirtualHost>
加えて、私は/etc/apache2/ports.confで以下のセットアップがあります。
NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
NameVirtualHost *:443
Listen 443
</IfModule>
を
私が持っている唯一の手掛かりは、私は、Apacheを再起動したときに、私は次のエラーを取得することです:
[warn] NameVirtualHost *:443 has no VirtualHosts
[warn] NameVirtualHost *:80 has no VirtualHosts