http://httpd.apache.org/download.cgiからapache2.2.22 srcをダウンロードしてインストールしました。インストールは正常に動作します。しかし、問題は、仮想ホストを追加しようとすると発生します。 2つの仮想ホストを追加しました 1. localhost 2. someother.localhost 両方とも異なるドキュメントルートを指しますが、最初の仮想ホストのドキュメントルートに解決されます。私は、hostsファイルに適切なエントリを作成した80Apache vhostがローカルホストのドキュメントルートに解決する
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/webserver/htdocs"
ServerName localhost
ErrorLog "logs/localhost-error_log"
CustomLog "logs/localhost-access_log" common
</VirtualHost>
<Directory /home/sourabhn/somepath>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/home/sourabhn/somepath"
ServerName someother.localhost
ErrorLog "logs/someother-localhost-error_log"
CustomLog "logs/someother-localhost-access_log" common
</VirtualHost>
:
はNameVirtualHost *が
、私のバーチャルホストファイルをhereis。私はUbuntu 11.10マシンを実行しています。あなたの貴重な提案
返信いただきありがとうございます。 –