No.20515 投稿時間:2006年05月16日(Tue) 12:02 投稿者名:ronron URL:
鷹ノ巣さん初めまして。
ことしから自宅サーバーに挑戦して意欲が出てきている60歳です。
昨年からの挑戦ですが、こちらのサイト情報で勉強して公開できるようになりました。
今度はバーチャルホスト(ドメイン?)で一つのIPアドレスで3個のドメインを公開したいと思っております。
このうちの一つはボランティアなので、なにがなんでもと意気込んでいますが、設定に失敗して表示そのものが一切されません。
ほかの方々の実例を見ておりますと、少なくてもメインのドメインは表示されているようで、力の差を感じております。
出来うれば設定のミスを指摘していただきたいと思い、こちらの掲示板に上げさせていただきました。
よろしくお願いいたします。
自サーバーの現状設定とホルダー構成はこうなっております。
モデム(ADSL)
ルーター |- pc1 サーバーに使用
|- pc2 通常のクライアント機
--------------------------------------------------------
ポートフォワードもうまく行き取得ドメインの存在は確認できています
現状構成 D:/home/pubulic_html/index.html
通常の状態では接続状況は正常です。
【WebSite Test results】
URL tested: http://61.192.180.251/
Status: Server responded normally to all tests
Server Status: HTTP/1.1 200 OK
Server type: Apache/2.0.50 (Win32) PHP/5.0.1
Last modified: Mon, 15 May 2006 03:39:52 GMT
Size: 316 bytes (0.31 Kb)
Response time: 0.4347 seconds
-------------------------------
公開フォルダーD:/home/pubulic_html/
この下に各ホルダー |- /my-webe.com(メインドメイン)
(ドメイン名で表示) |- /himaraya.jp
|- /himalayan.info
ServerRoot "C:/Apache2"
Listen 80
ServerAdmin s*****@***.ne.jp
ServerName my-webe.com:80
UseCanonicalName Off
DocumentRoot "D:/home/public_html"
<Directory "D:/home/public_html">
UserDir "/home/public_html"
NameVirtualHost 192.168.1.50
<VirtualHost 192.168.1.50>
ServerAdmin s*****@***.ne.jp
DocumentRoot /home/public_html/
ServerName my-webe.com
ServerAlias my-webe.com *.my-webe.com
ErrorLog logs/my-webe.com-error_log
CustomLog logs/my-webe.com-access_log common
</VirtualHost>
<VirtualHost 192.168.1.50>
ServerAdmin s*****@***.ne.jp
DocumentRoot /home/public_html/himachal
ServerName himalayan.info
ServerAlias himalayan.info *.himalayan.info
ErrorLog logs/himachal-error_log
CustomLog logs/himachal-access_log common
</VirtualHost>
バーチャルホストにするとこのように不明となります。
URL tested: http://61.192.180.251/index.html
Status: HTTP Responce - Not Found-----------------※無いと出てしまいます。
Server Status: HTTP/1.1 404 Not Found
Server type: Apache/2.0.50 (Win32) PHP/5.0.1
Size: 299 bytes (0.29 Kb)
Response time: 0.6666 seconds
現状を打開したいので、アドバイスをお願いいたします。
No.20516 投稿時間:2006年05月16日(Tue) 12:31 投稿者名:wal URL:
> DocumentRoot "D:/home/public_html"
> DocumentRoot /home/public_html/
> DocumentRoot /home/public_html/himachal
DocumentRootの設定がおかしいように思うが?
No.20517 投稿時間:2006年05月16日(Tue) 13:11 投稿者名:ronron URL:
> > DocumentRoot "D:/home/public_html"
>
> > DocumentRoot /home/public_html/
>
> > DocumentRoot /home/public_html/himachal
>
> DocumentRootの設定がおかしいように思うが?
ありがとうございます。
見直しましたら、確かに。
早速、書き換えてみます。
No.20518 投稿時間:2006年05月16日(Tue) 14:13 投稿者名:ronron URL:
walさんありがとうございます。
> > > DocumentRoot "D:/home/public_html"
> > DocumentRoot /home/public_html/
> > > DocumentRoot /home/public_html/himachal
> > DocumentRootの設定がおかしいように思うが?
確かにおかしかったのと、ほかの方の設定を参考に以下のように書き換えてみましたが、今度はapacheが再起動しません。
いじくりすぎていると思うのですが、そこが分からず四苦八苦中です(笑)
ServerRoot "C:/Apache2"
KeepAlive On
Listen 80
ServerAdmin aaaaa@aaa.ne.jp
ServerName aaaaaa.com:80
UseCanonicalName Off
DocumentRoot "D:/home/public_html/"
<Directory />
Options FollowSymLinks Includes ExecCGI MultiViews
AllowOverride None
</Directory>
<Directory "D:/home/public_html">
Options Indexes FollowSymLinks MultiViews ExecCGI Includes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
UserDir "/home/public_html"
Alias /icons/ "C:/Apache2/icons/"
<Directory "C:/Apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<VirtualHost 192.168.1.50>
ServerAdmin aaaaa@aaa.ne.jp
DocumentRoot /home/public_html/aaaaa.com
ServerName aaaaa.com
ServerAlias aaaaa.com *.aaaaa.com
ErrorLog logs/aaaaa.com-error_log
CustomLog logs/aaaaa.com-access_log common
</VirtualHost>
<VirtualHost 192.168.1.50>
ServerAdmin aaaaa@aaa.ne.jp
DocumentRoot /home/public_html/himalayan.info
ServerName himalayan.info
ServerAlias himalayan.info *.himalayan.info
ErrorLog logs/himalayan.info-error_log
CustomLog logs/himalayan.info-access_log common
</VirtualHost>
=apache2のバーチャルホストの設定exampleをそのまま当てはめてみました=
で再起動せず、でした。
No.20521 投稿時間:2006年05月16日(Tue) 16:06 投稿者名:wal URL:
> walさんありがとうございます。
> > > > > DocumentRoot "D:/home/public_html"
> > > DocumentRoot /home/public_html/
> > > > DocumentRoot /home/public_html/himachal
> > > DocumentRootの設定がおかしいように思うが?
> 確かにおかしかったのと、ほかの方の設定を参考に以下のように書き換えてみましたが、今度はapacheが再起動しません。
> いじくりすぎていると思うのですが、そこが分からず四苦八苦中です(笑)
windowsでしょ linuxと混同していませんか
フォルダの設定はC:やD:の設定はいらないのですか
No.20523 投稿時間:2006年05月16日(Tue) 16:40 投稿者名:ronron URL:
> windowsでしょ linuxと混同していませんか
> フォルダの設定はC:やD:の設定はいらないのですか
え!必要だったんですか!?
そういえば今まで参考にしていたのはlinuxの人が多かった!
・・・再チャレンジ!
結果;
URL tested: http://61.192.194.160/
Status: Server responded normally to all tests
Server Status: HTTP/1.1 200 OK
Server type: Apache/2.0.50 (Win32) PHP/5.0.1
Last modified: Mon, 15 May 2006 03:21:02 GMT
Size: 366 bytes (0.36 Kb)
Response time: 0.4641 seconds
基本的なレスポンスの確認できました。
そして携帯電話からですが、HPの存在を確認できました。
北インドの人たち(ネパールとの国境地帯)への応援活動で連絡用のHPをボランティアで作りましたが、活動に支障をきたしておりました、しかしwal様のおかげで、来週から運営を始めることが出来ます。
本当にありがとうございました。
感謝いたします。