1

指定したディレクトリ以外の同じディレクトリに移動する 2 つの仮想サイトがあります。例えば。

example1.com -> /var/www/example1
/var/www/example1/index.html meta redirects to /var/www/common/index.php?id=example1

example2.com -> /var/www/example2
/var/www/example2/index.html meta redirects to /var/www/common/index.php?id=example2

問題は、Apache Not Found エラーが発生することです。ただし、' locahost/example1' は正常に動作し、' ' は正常にlocahost/example2動作します。問題は仮想ホストの構成にあるのでしょうか?

どちらも(略)…

<VirtualHost *:80>
  ServerName example1.com
  DocumentRoot /var/www/example1
</VirtalHost>

<VirtualHost *:80>
  ServerName example2.com
  DocumentRoot /var/www/example2
</VirtalHost>

助言がありますか?

4

1 に答える 1

0

それが価値があるために、私はこれを理解することができませんでした。結局、Web ルートで 2 つの仮想サーバーを作成し、そこからサーバー側の php を使用してコンテンツを制御しました。誰かがこれが悪いと思うか、この質問に対する実際の答えを持っているなら、私は知りたい.

于 2013-03-27T03:00:32.423 に答える