Apache 設定により /index.html が再帰的に作成される

Apache 設定により /index.html が再帰的に作成される

私は Apache を設定するために puppet を使用していますが、問題があります。 Kibana と Uchiwa の 2 つのサブページへのリンクを含むシンプルなフロント ページを提供しようとしています。http://server/loggingKibana 用に使用し、http://server/monitorUchiwa へのリダイレクトとして使用しようとしています。 これまでのところ、/monitorURL は正常に動作し、うまくリダイレ​​クトされています。

URLは最終的に、など/loggingを指します。http://server/monitor/index.html/index.html/index.html/index.html/index.html/...

Puppet が生成する結果の構成は、以下に貼り付けたようになります。誰かがその問題に気づけば、Puppet の設定を修正できます。

<VirtualHost *:80>
  ServerName testnode.local.net

  DocumentRoot "/var/www/html/frontpage/"
  AliasMatch /logging "/usr/share/kibana/"

  <Directory "/var/www/html/frontpage/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>

  ErrorLog "/var/log/httpd/testnode.local.net_error.log"
  ServerSignature Off
  CustomLog "/var/log/httpd/testnode.local.net_access.log" combined

  Redirect permanent /monitor http://testnode.local.net:3000/

  ServerAlias testnode
</VirtualHost>

答え1

昼食後にこれに戻ってきて、問題を発見しました。それ以来、Directory他のフォルダー ( /kibana) のブロックを追加するために設定を少し調整しましたが、重要な変更は次のとおりだと思います。

Alias /logging "/usr/share/kibana/"

AliasMatchを に変更しますAlias

これが将来の Google 社員の役に立つことを願っています。

関連情報