仮想ホストのリストの最初に、この仮想ホストをセットアップしました。です
<VirtualHost localhost:80>
ServerName localhost
DocumentRoot "/www/drupal5"
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Allow from localhost
</Location>
</VirtualHost>
残りの仮想ホストは以下にあり、*:80として表されます。
この仮想ホストにDocumentRootを含めると、サーバーhttp://localhost/server-status
で/www/drupal5/.htaccessの書き換えルールを通じて常に/index.phpをヒットするように要求されます。DocumentRoot宣言を削除すると、/ server-statusリクエストは正常に機能しますが、サイトはまったく使用できませんhttp://localhost/
。
どのように私はhttp://localhost/server-status
ロードするサイトと同様に仕事に行くことができhttp://localhost/
ますか?
/www/drupal5/.htaccess
か?うまくいけば、/ server-statusの要求が書き換えられないように書き換えルールを変更することが可能です。