xamppドキュメントルートの設定

このQ&Aのポイント
  • xamppドキュメントルートの設定について、行き詰ってしまいました。
  • xamppのドキュメントルートの設定方法として、httpd-vhosts.confファイルとhostsファイルの編集が必要です。
  • しかし、設定を行ってもアクセスできずにエラーが表示される状況です。どこが間違っているのでしょうか?
回答を見る
  • ベストアンサー

xamppドキュメントルートの設定

パーフェクトPHPという書籍を見ながら作業を進めているのですが行き詰ってしまいました。 xamppのドキュメントルートの設定のところです。 ・httpd-vhosts.confファイルに以下の文章を NameVirtualHost *:80 <VirtualHost *:80> ServerName study.localhost DocumentRoot C:/xampp/htdocs/study.localhost DirectoryIndex index.php index.html <Directory "C:/xampp/htdocs/study.localhost"> AllowOverride All Allow from All </Directory> </VirtualHost> ・hostsファイルに以下の文章を 127.0.0.1 study.localhost 上記の2つを書き込むことによって ブラウザからhttp://study.localhost/にアクセスできるようになる。 と書いてあるのですが書き込んでもアクセスができず以下のように表示されます。 --------------------------------------------------------------------------- Object not found! 要求された URL は本サーバでは見つかりませんでした。 もし手入力で URL を入力した場合は、綴りを確認して再度お試し下さい。 サーバーの障害と思われる場合は、ウェブ管理者までご連絡ください。 Error 404 study.localhost Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 --------------------------------------------------------------------------- 何がいけないのでしょうか? 書籍にはこの部分はあっさり書かれており何がいけないのか分りません。 Apache、MySQLの起動はできています。 httpd-vhosts.confファイルへの書き込みを行わなければXampp for Windowsのページも出てきます。 PCは windows7を使用しています。 xamppはv3.2.1です。

  • PHP
  • 回答数1
  • ありがとう数8

質問者が選んだベストアンサー

  • ベストアンサー
  • t_ohta
  • ベストアンサー率38% (5061/13226)
回答No.1

C:/xampp/htdocs/study.localhost フォルダは作成しましたか? そのフォルダに index.php または index.html ファイルを置きましたか?

関連するQ&A

  • P30 項目4■ バーチャルホストの追加手順で!?

    教本 パーフェクトPHP(以下URLの本)  http://www.amazon.co.jp/dp/4774144371 以上教本~  XAMPPをインストールした後教本見ながら以下、”設定構築”しましたが、  自信がないです。 以下教本を見ながら設定しました。 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ P28~P29 項目1■ ドキュメントルートの設置      1) ドキュメントルートを C:\xampp\htdocs\にstudy.localhostのデレクトリを設定して、         C:\xampp\htdocs\study.localhostとしました。      2) 次にC:\xampp\apache\conf\extra\httpd-vhosts.confに!Apacheのバーチャルホストに  NameVirtualHost *:80  <VirtualHost *:80> ServerName study.localhost DocumentRoot "C:\xampp\htdocs\study.localhost" DirectoryIndex index.php index.html <Directory "C:\xampp\htdocs\study.localhost"> AllowOverride All Allow from All </Directory> </VirtualHost>  を追加しました。    以上設定が完了したら、XAMPPのコントロールパネルからApacheとMysQLを起動します。  項目の右側にあるStartボタンを押せば起動できます。(図14)これでstudy.localhostという  ドメインでApacheにアクセスが来ると、C:\xampp\hotdocs\study.localhos以下のファイルを  閲覧できるようになります。        P29 項目3■ hostsにドメインを設定 バーチャルホストに設定が完了したら、     C:\Windows\System32\drivers\etc\hostsを開き、        127.0.0.1 study.localhostをhostsのプログラムの一番最後に         追加しまいた。 P30 項目4■ バーチャルホストの追加手順        バーチャルホストを追加する際はまずドキュメントルートとなるデレクトリ        を作成します。        a) C:\xampp\htdocs [※1]"以下にドメインと同じ名前のデレクトリを作成" すると分かりやすいでしょう。 次に C:\xampp\apache\conf\extra\httpd-vhosts.confバーチャルホストの設定を追加します。 <VirtualHost>で囲まれた部分をコピーし、ServerName   [※2] <VirtualHost *:80> ServerName localhost DocumentRoot "C:/xampp/htdocs/localhost" DirectoryIndex index.php index.html <Directory "C:/xampp/htdocs/localhost"> AllowOverride All Allow from All </Directory>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   以上の設定を参考にされて、以下の質問のですが!       P30 項目4■ バーチャルホストの追加手順 の項目で質問があります。       (素人の質問なので、内容的に不備はご了承ください。)     問い1 [※1]のドメインと同じとありますが、P28~P29の      1)でstudy.localhostのデレクトリが存在しているので     とりあえず localhostのデレクトリを追加したのですが、         設定的には間違いないでしょうか!? 問い2 [※2] <VirtualHost *:80>の80を81に変更しなくていいでしょうか!? 問い3 [※2]全てlocalhostにしましたが、間違いないでしょうか!?      問い4 P29 項目3■ 「hostsにドメインを設定」      バーチャルホストとしての機能したいのであれば      新たに"127.0.0.2 localhost"を追加しなくていいのでしょうか、      教本には、特に追加事項はないのですが、設定の流れからして      追加したい気持ちですが、間違いでしょうか!?               以上ですが、他にご指導ご鞭撻はございませんでしょうか!?         4問ですが、宜しくお願い致します。

  • P30 項目4■ バーチャルホストの追加手順で!?

    P30 項目4■ バーチャルホストの追加手順で!? 教本 パーフェクトPHP(以下URLの本) http://www.amazon.co.jp/dp/4774144371 以上教本~ XAMPPをインストールした後教本見ながら以下、”設定構築”しましたが、 自信がないです。 以下教本を見ながら設定しました。 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ P28~P29 項目1■ ドキュメントルートの設置 1) ドキュメントルートを C:\xampp\htdocs\にstudy.localhostのデレクトリを設定して、 C:\xampp\htdocs\study.localhostとしました。 2) 次にC:\xampp\apache\conf\extra\httpd-vhosts.confに!Apacheのバーチャルホストに NameVirtualHost *:80 <VirtualHost *:80> ServerName study.localhost DocumentRoot "C:\xampp\htdocs\study.localhost" DirectoryIndex index.php index.html <Directory "C:\xampp\htdocs\study.localhost"> AllowOverride All Allow from All </Directory> </VirtualHost> を追加しました。 以上設定が完了したら、XAMPPのコントロールパネルからApacheとMysQLを起動し ます。 項目の右側にあるStartボタンを押せば起動できます。(図14)これでstudy.localhostと いうドメインでApacheにアクセスが来ると、C:\xampp\hotdocs\study.localhos以下の ファイルを 閲覧できるようになります。 P29 項目3■ hostsにドメインを設定 バーチャルホストに設定が完了したら、 C:\Windows\System32\drivers\etc\hostsを開き、 127.0.0.1 study.localhostをhostsのプログラムの一番最後に 追加しまいた。 P30 項目4■ バーチャルホストの追加手順 バーチャルホストを追加する際はまずドキュメントルートとなるデレクトリ を作成します。 a) C:\xampp\htdocs [※1]"以下にドメインと同じ名前のデレクトリを作成" すると分かりやすいでしょう。 次に C:\xampp\apache\conf\extra\httpd-vhosts.conf バーチャルホストの 設定を追加します。 http://homepage3.nifty.com/mtaiyo/httpd-vhosts.conf(←ファイヘルリンク) <VirtualHost>で囲まれた部分をコピーし、ServerName やDocumentRootの値 を書き換えて保存した後、Apacheを再起動します。また、必要に合わせてC:\Windows\System32\drivers\etc\hosts ドメイン指定を追加します。 [※2] <VirtualHost *:80> ServerName localhost DocumentRoot "C:/xampp/htdocs/localhost" DirectoryIndex index.php index.html <Directory "C:/xampp/htdocs/localhost"> AllowOverride All Allow from All </Directory>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  以上の設定を参考にされて、以下の質問のですが!       P30 項目4■ バーチャルホストの追加手順 の項目で質問があります。       (素人の質問なので、内容的に不備はご了承ください。) 問い1 [※1]の“ドメインと同じ名前のデレクトリを作成"  すると、とありますが、意味がよくわかりません!      それで、P28~P29の      1)でstudy.localhostのデレクトリが存在しているので      とりあえず localhostのデレクトリを追加したのですが、      設定的には間違いないでしょうか!? 問い2 [※2] <VirtualHost *:80>の80を81に変更しなくていいでしょうか!? 問い3 [※2]全てlocalhostにしましたが、間違いないでしょうか!?      問い4 P29 項目3■ 「hostsにドメインを設定」      バーチャルホストとしての機能したいのであれば      新たに"127.0.0.2 localhost"を追加しなくていいのでしょうか、      教本には、特に追加事項はないのですが、設定の流れからして、      追加したい気持ちですが、間違いでしょうか!?               以上ですが、他にご指導ご鞭撻はございませんでしょうか!?         4問ですが、宜しくお願い致します。

  • クライアントサーバー型である私のパソコンに

    クライアントサーバー型である私のパソコンに  study.localhostに”sample2.html”のファイルを設置しました。   私のパソコンから  以下のアドレスで、  http://localhost/sample2.html  とアドレスバーに入力ししたら  ちゃんとファイルが開きました。  これって、部外からも接続できる、グローバル的なURLでしょうか!?  教本通りに設定していくと、みんな同じURLになると思うのですが!?     それはあり得ない話と思うのですが、どんなして、区別しているのでしょうか!?      ふと、疑問に思いました。   以上  知識がなくて、理解していない素人の質問なので、馬鹿げた質問だと   玄人方々は、思われると思いますが、宜しくお願い致します。    以下の項目はApacheの設定が、以下の項目まで終わっています。 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   教本 パーフェクトPHP(以下URLの本)  http://www.amazon.co.jp/dp/4774144371 以上教本の P28 項目1■ ドキュメントルートの設置(ホームページのファイル・フォルダ入れるフォルダ) 1) ドキュメントルートを C:\xampp\htdocs\study.localhostに設定しました。 2) 次に!Apacheのバーチャルホストを設定(以上で設置したstudy.localhostまでの C:\xampp\apache\conf\extra\httpd-vhosts.confに NameVirtualHost *:80 <VirtualHost *:80> ServerName study.localhost DocumentRoot "C:\xampp\htdocs\study.localhost" DirectoryIndex index.php index.html <Directory "C:\xampp\htdocs\study.localhost"> AllowOverride All Allow from All </Directory> </VirtualHost> を追加しました。        P29 項目3■ hostsにドメインを設定     C:\Windows\System32\drivers\etc\hosts    のファイルに最後に、 127.0.0.1 study.localhost を追加 P30 項目4■ バーチャルホストの追加手順         a) C:\xampp\htdocs\httpへstudy.localhostのフォルダを追加した。

  • バーチャルホストで、同htmlファイルが表示される

    バーチャルホストを作成しました。 http://wp.yat-net.com/?p=2400 http://likealunatic.jp/2008/05/16_xampp.php の様のページを参考にし、バーチャルドメインを設定しました。 【1.httpd.conf】  Include "conf/extra/httpd-vhosts.conf" ←有効 【2.httpd-vhosts.con :2つのバーチャルホスト作成】 <VirtualHost *:80>  DocumentRoot C:/xampp/htdocs  ServerName localhost  ErrorLog "logs/error.log"  CustomLog "logs/error.log" common </VirtualHost> <VirtualHost *:80>  DocumentRoot C:/xampp/htdocs/test/doc  ServerName wordpress.localhost  ErrorLog "logs/error.log"  CustomLog "logs/error.log" common </VirtualHost> 【3.hostsの設定】  127.0.0.1 localhost  127.0.0.1 wordpress.localhost 【4.index.htmlを作成】   C:/xampp/htdocs/index.html ⇒ aaaaa と記述したもの   C:/xampp/htdocs/test/doc ⇒ eeeee と記述したもの 【5.ブラウザからアクセス】  http://wordpress.localhost/index.html  http://localhost/index.html 【6.結果】 「http://wordpress.localhost/index.html」「http://localhost/index.html」のどちらでアクセスしても、 「C:/xampp/htdocs/index.html」の内容(aaaaa)が表示されます。 <質問> なぜ、「http://wordpress.localhost/index.html」でアクセスした際に、eeeeのindex.htmlファイルが 表示されないのでしょうか…。 環境は「Win7、Xampp1.7.7で Apache/2.2.21 」になります。

  • XAMPP ヴァーチャルホストの設定について

    以下は、httpd-vhosts.conf 初期状態のものを、コメントアウトし、 host、httpd.conf の設定、 モジュール関連箇所のコメントアウトをして、 正常に dummy-host.localhost で見れています。 ただ、 dummy-host.localhost というドット区切りのディレクトリを作成しなければ、 ドットで区切った URLで、見れないのでしょうか? 例えば、ドット区切りのない、 /dummy" というディレクトリを作り、 trunk.dummy では、503エラーが表示します。 (その他ファイルの必要な設定は変更しています.。一部の抜粋だけですみません。) ドット区切りのないディレクトリで、ドット区切りの URL で見れる設定方法が、あれば ご教授ください。 それ以前に、私が大きな勘違いをしている等もありますので、ご了承ください。 ( httpd-vhosts.conf の内容 ) <VirtualHost *:80> ServerAdmin postmaster@dummy-host.localhost DocumentRoot "/xampplite/htdocs/dummy-host.localhost" ServerName dummy-host.localhost ServerAlias www.dummy-host.localhost ErrorLog "logs/dummy-host.localhost-error.log" CustomLog "logs/dummy-host.localhost-access.log" combined </VirtualHost>

  • スマホでxampp上のバーチャルドメインにアクセス

    windows上のxamppに C:\xampp\htdocs\<バーチャルドメイン> のディレクトリを作って、windowsからは http://<バーチャルドメイン>/ でアクセスできるようにしています。 これをandroid(スマホ)から見たくて http://masterka.seesaa.net/article/248925874.html を参考に設定を変更したところ、 http://<指定したip>/ <バーチャルドメイン> でandroidからアクセスできるようになりました。 ただ、サイトルートで参照しているcss等の関係で、androidからも http://<バーチャルドメイン>/ でアクセスできるようにしたいのです。 C:\xampp\apache\conf\extra のhttpd-vhosts.confに <VirtualHost *:80> DocumentRoot C:/xampp/htdocs/<バーチャルドメイン> ServerName <バーチャルドメイン> </VirtualHost> <Directory "C:/xampp/htdocs/<バーチャルドメイン>"> order deny,allow allow from ALL </Directory> C:\Windows\System32\drivers\etc のhostsファイルに 127.0.0.1 <バーチャルドメイン> と記述したものに <指定したip> <バーチャルドメイン> と行を加えてみたのですが、うまく行きません。 アドバイスいただけると助かります。

  • PHPの教本の説明などで質問があります。

    http://www.amazon.co.jp/dp/4774144371  以上教本の、P28~P29の質問です。  以下中身です。 ■ドキュメントの設定 ドキュメントルールをC:\xampp\htdocs\study.localhostに設定します。まずはディレクトリを作成します。  次にApacheのバーチャルホストを設定します。C:\xampp\apache\conf\conf\extra\http-vhost.conf を開き次の設定を追加してください。<VirtualHost>で囲まれた部分がバーチャルホストの設定です。ServerNameにWeb ブラウザからアクセスする際のドメイン名(study.localhost)、DocumentRootおよび<Directory>にドキュメントルートへの パスを指定します。 (パソコン側のファイルを以下のプログラムに修正しろと言うことでしょう!?)  NameVirtualHost *:80 <Virtualhost *80> ServerName study.localhost DocumentRoot C:\xampp\htdocs\study.localhost DirectoryIndex index.php index.html <Directory “C:\xampp\htdocs\study.localhost”> AllowOverride All Allow from All </Directory> </VirtualHost> ---------------------------------------------------------- 以上が教本の中身です。 そこで質問があります! 第一の質問  教本では C:\xampp\apache\conf\conf\extra\http-vhost.confですが! パソコン側に存在するファイルは httpd-vhosts.confです。 教本のhttp-vhost.confではなくて、httpの部分がパソコン側では httpdと成っていて、dが多いです! ファイル名が違うことで、設定後何か支障はありますか!? 第二の質問  以下が、httpd-vhosts.conf  ファイルのプログラム全文を以下表示しましたが、 ##NameVirtualHost *:80が二個存在していて、どちらのプログラムを 修正すればいいのでしょうか!?  以上二件よろしくお願いします。 # Virtual Hosts # # Required modules: mod_log_config # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # <URL:http://httpd.apache.org/docs/2.4/vhosts/> # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # # Use name-based virtual hosting. # ##NameVirtualHost *:80 # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for all requests that do not # match a ##ServerName or ##ServerAlias in any <VirtualHost> block. # ##<VirtualHost *:80> ##ServerAdmin webmaster@dummy-host.example.com ##DocumentRoot "C:/xampp/htdocs/dummy-host.example.com" ##ServerName dummy-host.example.com ##ServerAlias www.dummy-host.example.com ##ErrorLog "logs/dummy-host.example.com-error.log" ##CustomLog "logs/dummy-host.example.com-access.log" common ##</VirtualHost> ##<VirtualHost *:80> ##ServerAdmin webmaster@dummy-host2.example.com ##DocumentRoot "C:/xampp/htdocs/dummy-host2.example.com" ##ServerName dummy-host2.example.com ##ErrorLog "logs/dummy-host2.example.com-error.log" ##CustomLog "logs/dummy-host2.example.com-access.log" common ##</VirtualHost>

    • 締切済み
    • PHP
  • xamppでcgiが動かない

    Mac OS10.6.8でXAMPPをインストールした後 htdocs/test/というフォルダを作って http://test/ となるような環境を作りました。 httpd-vhosts.confファイルには <VirtualHost *:80> DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/test" ServerName test </VirtualHost> <Directory "/Applications/XAMPP/xamppfiles/htdocs/test"> Options Indexes FollowSymLinks MultiViews Includes ExecCGI AddType text/html .shtml .html AddHandler server-parsed .shtml .html AddHandler cgi-script .cgi .pl AllowOverride All Order allow,deny Allow from all </Directory> このように記述しております。 http://test/test.cgiにアクセスしたら Error message: Premature end of script headers: test.cgi このように言われてしまいました。 これは何が原因なのでしょうか? パスが間違っているのかな?と思ったのですが、XAMPPを使った場合 test.cgiファイルのパスはどうすればいいのでしょうか? よろしければ教えて下さい。 ※ とりあえず usr/bin/perl としました。

  • Apache(Ver 2.4.4)の設定のエラー

    おはようござます。 Win VISTAです。 Apache(Ver 2.4.4)の設定をしています。(XAMPP 1.8.3) いろいろと参考書を見ながら、意味もわからずhttpdファイル(C:\xampp\apache\conf\httpd)のセキュリティの設定変更をしていますが、 「Access forbidden! 要求されたディレクトリへのアクセス権限がありません。 インデックスドキュメントが存在しないか、 ディレクトリの読み込みが許可されていません。 サーバーの障害と思われる場合は、ウェブ管理者までご連絡ください。」 というエラーが出て困っています。 セキュリティの設定の変更までは、正常にインストールされているとの確認画面が出ていましたので、この変更のミスが原因としか考えられません。 何とど宜しくお願いします。 ============================================================= httpdファイル(C:\xampp\apache\conf\httpd)の内容(変更後です) <変更前の内容はバックアップをとっていませんのでわかりません・・・・> <Directory /> AllowOverride none Require all denied </Directory> DocumentRoot "C:/xampp/htdocs" <Directory "C:/xampp/htdocs"> ・ ・ ・ # Order allow,deny # Allow from all Order deny,allow Deny from All Allow from localhost 127.0.0.1 # AllowOverride All ・ ・ # Require all granted </Directory> ・ ・ ・ <Directory "C:/xampp/cgi-bin"> AllowOverride None Options None # Order allow,deny # Allow from all Order deny,allow Deny from All Allow from localhost 127.0.0.1 # Require all granted </Directory> ============================================================= (C:\xampp\apache\conf\extra\httpd-xampp)<このファイルは全く書き換えていません。> <Directory "C:/xampp/php"> AllowOverride None Options None Require all denied <Files "php-cgi.exe"> Require all granted </Files> </Directory> ・ ・ ・ <Directory "C:/xampp/cgi-bin"> <FilesMatch "\.php$"> SetHandler cgi-script </FilesMatch> <FilesMatch "\.phps$"> SetHandler None </FilesMatch> </Directory> <Directory "C:/xampp/htdocs/xampp"> <IfModule php5_module> <Files "status.php"> php_admin_flag safe_mode off </Files> </IfModule> AllowOverride AuthConfig </Directory> </Directory> Alias /licenses "C:/xampp/licenses/" <Directory "C:/xampp/licenses"> Options +Indexes <IfModule autoindex_color_module> ・ ・ </IfModule> Require all granted </Directory> =============================================================

    • ベストアンサー
    • PHP
  • apacheのバーチャルホストの設定について

    XAMPPを一通りインストールして、apacheでバーチャルホストの設定を行っております。 環境:Windows2003server ApacheFriends XAMPP (Basispaket) version 1.7.1 + Apache 2.2.11 固定のグローバルIPアドレスは1つ持っており、仮に111.222.333.444としておきます。 バーチャルホストのドメイン名は2つ設定したいと思っており、 aaa.hogehoge.net bbb.hogehoge.net 他業者のDNSにて111.222.333.444をAレコードの値として、それぞれ割り当てしました。 ちなみに、hogehoge.netのAレコードは別のサーバーを当てています。 そこで、携帯から直接 http://aaa.hogehoge.netとhttp://bbb.hogehoge.net をアクセスしましたら、自社サーバーのC:/xampp/htdocs/にあるindex.htmが表示されました。 一応、名前解決は成功したとして、、、 念のため、Windowsのhostsに 111.222.333.444  aaa.hogehoge.net  bbb.hogehoge.net を追加しました。 apacheのメイン設定-httpd.conf ------------------------------ ServerRoot "C:/xampp/apache" Listen 80 ServerAdmin admin@localhost ServerName localhost:80 DocumentRoot "C:/xampp/htdocs/" ↓バーチャルホストのファイルをインクルード Include conf/extra/httpd-vhosts.conf ----以下、httpd-vhosts.confの中身 ホスト名を2つ設定 NameVirtualHost 111.222.333.444:80 <VirtualHost 111.222.333.444:80> ServerAdmin admin@aaa.hogehoge.net DocumentRoot C:/xampp/htdocs/aaa.hogehoge.net ServerName aaa.hogehoge.net ServerAlias www.aaa.hogehoge.net <Directory "C:/xampp/htdocs/aaa.hogehoge.net"> Options FollowSymLinks Includes ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost 111.222.333.444:80> ServerAdmin admin@bbb.hogehoge.net DocumentRoot C:/xampp/htdocs/bbb.hogehoge.net ServerName bbb.hogehoge.net ServerAlias www.bbb.hogehoge.net <Directory "C:/xampp/htdocs/bbb.hogehoge.net"> Options FollowSymLinks Includes ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> 設定後、apacheを再起動して、再度携帯電話からhttp://aaa.hogehoge.netとhttp://bbb.hogehoge.netにアクセスしたのですが、C:/xampp/htdocs/にあるindex.htmが表示されてしまい、C:/xampp/htdocs/aaa.hogehoge.net/index.htm、C:/xampp/htdocs/aaa.hogehoge.net/index.htmが表示されません。それぞれのパーミッション自体は766になっているので、こちらは違うと思うのですが、バーチャルホストの設定が悪いのか何処が悪いのか、何か設定が悪いのか全くわからなくなりました。参考書のマニュアルを見ると、「バーチャルホストを設定すると、メインホストの設定が無効になる」と書いてあったので、それでもメインのホストが表示されてしまうということは、バーチャルホストの設定に問題があるのだと自分なりに察知しております。 どなたか、考えられる原因や心当たりある事がございましたら、ご教授をお願いします。