Ask Your Question
1

using create_resources with apache rewrites from heira [closed]

asked 2015-02-17 08:22:11 -0500

chandlermelton gravatar image

updated 2015-02-17 10:00:01 -0500

Is it possible to use create_resources to declare multiple rewrites in a vhost with the puppetlabs-apache module? I have seen the technique suggested, but I'm not sure if it allows specifying multiple rewrites per vhost.

Example: https://gist.github.com/anonymous/430...

Hiera will only return one set of data for apache:vhosts:http-apisrv.com:rewrites. How are people working around this?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by chandlermelton
close date 2015-02-17 13:00:37.737019

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-02-17 13:00:13 -0500

chandlermelton gravatar image

updated 2015-02-17 13:02:15 -0500

This was resolved by specifying my data a bit differently as suggested by a user named _rc in IRC.

  rewrites:
    - rewrite_cond:   %%{}{REQUEST_METHOD} ^(TRACE|TRACK)
    - rewrite_rule:   .* - [F]
    - rewrite_cond:   %%{}{HTTPS} off
    - rewrite_rule:   (.*) https://apisrv.com%%{}{REQUEST_URI}
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-02-17 08:22:11 -0500

Seen: 596 times

Last updated: Feb 17 '15