John Morrissey
2011-Nov-01 23:56 UTC
[Puppet Users] ERB templates and escaping Apache virtual hosts
Is any special escaping necessary for URLs in ERB templates? For example, Puppet complains: bad URI(is not URI?) about the :80 and http:/// lines in a template like this: <VirtualHost *:80> [...] RewriteRule ^/+(.*) http://example.com/$1 [L,R=permanent] </VirtualHost> Ruby''s uri.split() is the only place that raises this error, so I''m guessing it''s some kind of URL escaping/quoting ERB wants to do. john -- John Morrissey _o /\ ---- __o jwm@horde.net _-< \_ / \ ---- < \, www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.