サーバーの設定について質問です。
今回サーバーのアパッチファイルを編集して2つあるドメインごとに開くディレクトリを振り分けたいと考え、以下のようにコードを書き換えました。
<VirtualHost>
ServerName exampleone.jp
DocumentRoot /var/www/html/one
<Directory "/var/www/html/one">
AllowOverride All
Options -Indexes
</Directory>
<Files wp-config.php>
order allow,deny
deny from all
</Files>
</VirtualHost> <VirtualHost *:80> ServerName exampletwo.info DocumentRoot /var/www/html/two <Directory "/var/www/html/two"> AllowOverride All Options -Indexes </Directory> # <Files wp-config.php> # order allow,deny # deny from all # </Files> </VirtualHost> しかし、実際にexampletwo.infoにアクセスしたところ/var/www/html/oneを開いてしまい困っています。 その他の情報としては、exampleone.jpの時は正常に/var/www/html/oneを開きます。 apacheのバージョンは2.2です。 DNSの設定は終えております。 初歩的な質問かとは思いますが、どうかご教授お願い致します。回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。