まとまりのないブログ

something which something is something

linux

VirtualHost *:80 — mixing * ports and non-* ports with a NameVirtualHost

投稿日:

cdn-project:/etc/apache2# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...[Fri Oct 03 21:16:08 2008] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Fri Oct 03 21:16:08 2008] [warn] NameVirtualHost *:80 has no VirtualHosts
 waiting [Fri Oct 03 21:16:10 2008] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Fri Oct 03 21:16:10 2008] [warn] NameVirtualHost *:80 has no VirtualHosts

debianのapache2.2を起動しようとしたら上記のエラーが発生するようになった。設定ファイルの内容は何度も確認したので間違いはないはず。


ServerName 127.0.0.1
Listen 80
NameVirtualHost *:80


(省略)


エラーの内容がよくわからなかったが、”VirtualHost *:80 — mixing * ports and non-* ports”という部分、この部分の意味は、VirtualHost *:80 とポートの設定をしている箇所と、VirtualHost *とポートが設定されてない箇所があり、重複していると指摘している。はて?他にVirtualHost *というような記述はapache2のconfファイル内にはないはずだが・・・と思っていたら、設定前バックアップをとっていたことを忘れていた。

cdn-project:/etc/apache2# cp ./sites-enabled/000-default ./sites-enabled/000-default.org

というような感じで。どうも/etc/apache2以下にある記述は全て起動時に読まれることをしらなかった。このバックアップファイルを別の場所へ移動させてapacheの起動を試してみると問題なく起動できるようになった。

-linux

執筆者:


comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)

関連記事

no image

proftpdサーバにログインできない

debianをインストール後にproftpdをapt-getでインストールした後、クライアントPCからftp接続をしてみたところログインできなかった。ユーザ名とパスワードは作成されたものを正しく入力し …

no image

ECC機能付きメモリとECC機能付きではないメモリの違い

メモリには様々な規格があるが、ECC機能が有るか無いかという違いもある。メモリのECC機能とは簡単に言うとデータのエラーをチェック・修正をする機能のことで、サーバなどの稼動に信頼性が求められるマシンに …

no image

debianのglibcのバージョン

atk-1.10.3をインストールしようとしていたらconfigure時にエラーが発生した。 checking for GLIB – version >= 2.5.7… *** ‘pkg-conf …

no image

debianにsambaをインストール

root@cdn-project:/# apt-get install samba 途中で選択するステップが現れるので、ネットワークのグループ名を入力して、dhcpは今のところ私の環境ではつかっていな …

no image

サーバ版のUbuntuに固定ipアドレスを設定する

Debianの設定とは微妙に違ったのでメモ。下記の例は固定のipアドレス192.168.11.11をサーバ版のUbuntuに設定したもの。私はbuffaloのルータを使っているためlanのネットワーク …