大网数据广告活动
服务器运维问答

Puppet Apache vhost proxypassreverse configuration

· 52CE 我爱测

I'm having trouble configuring an apache 2.4 vhost for kibana 4.1.1 in puppet 3 on ubuntu 14.04. proxy_pass => 'http://localhost:5601', proxy_pass_reverse => 'http://localhost:5601', Error 400 on SERVER: Invalid parameter proxy_p…

问题原文

原帖链接 · markhorrocks · CC BY-SA 3.0

I'm having trouble configuring an apache 2.4 vhost for kibana 4.1.1 in puppet 3 on ubuntu 14.04.

proxy_pass         => 'http://localhost:5601',
proxy_pass_reverse => 'http://localhost:5601',

Error 400 on SERVER: Invalid parameter proxy_pass_reverse on Apache::Vhost

I can't find anything on the web even in the puppet apache module readme. Does anybody know how to get this done?

已采纳解答

原帖链接 · M. Glatki · CC BY-SA 3.0

The result needs to look something like this:

ProxyPass / http://127.0.0.1:5601/
ProxyPassReverse / http://127.0.0.1:5601/

The corresponding configuration in your profile/role needs to look like this:

proxy_pass => {
  path => '/',
  url => 'http://127.0.0.1:5601/'
},

This is described in the module documentation.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-09-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。