Ask Your Question

using create_resources with apache rewrites from heira [closed]

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

chandlermelton gravatar image

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

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.


Hiera will only return one set of data for 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

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

chandlermelton gravatar image

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

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

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

Question Tools

1 follower


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

Seen: 751 times

Last updated: Feb 17 '15