ニーズのリストを達成するため。
1) ディレクトリを作成します。
mkdir c:\xampp\sites\myproject
2) c:\windows\system32\drivers\etc\hosts を編集して、次の行が含まれるようにします。
127.0.0.1 マイプロジェクト
c:\xampp\apache\conf\extra\httpd-vhosts.conf に以下を追加します。
NameVirtualHost myproject:80
<VirtualHost myproject:80>
DocumentRoot c:/xampp/sites/myproject
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
3) c:\xampp\apache\conf\httpd.conf の末尾に次の行を追加します。
Alias /myproject/ "/xampp/sites/myproject/"
<Directory "/xampp/sites/myproject">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
4) これを達成するために、c:\xampp\apache\conf\httpd.conf の DocumentRoot、ディレクトリなどをそのままにしておきます。参考までに、これらの行は次のようになります。
DocumentRoot "/xampp/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>