Skip to content

Commit

Permalink
Quotes are good.
Browse files Browse the repository at this point in the history
Regexes contain NASTY CHARACTERS which will call the config parser
BAD NAMES and make it cry. Surround the regex with QUOTES to stop
the nastiness.
  • Loading branch information
csmith committed Nov 15, 2014
1 parent 414d6f1 commit 8c0152a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx-redirects/templates/site.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ server {
server_name {{ host }};

{% for rule in data.rules %}
rewrite ^{{rule.location}} {{rule.redirect}} last;
rewrite "^{{rule.location}}" {{rule.redirect}} last;
{% endfor %}
rewrite ^.* {{data.fallback}} last;
}
Expand Down

0 comments on commit 8c0152a

Please sign in to comment.