
私は Apache を設定するために puppet を使用していますが、問題があります。 Kibana と Uchiwa の 2 つのサブページへのリンクを含むシンプルなフロント ページを提供しようとしています。http://server/logging
Kibana 用に使用し、http://server/monitor
Uchiwa へのリダイレクトとして使用しようとしています。 これまでのところ、/monitor
URL は正常に動作し、うまくリダイレクトされています。
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 社員の役に立つことを願っています。