Add Apache2 support
Closed this issue · 0 comments
0xdade commented
I hate apache. I try to actively avoid learning any more about it than I have to. But alas, people will probably want to use apache until I can convince them to use something better. So we should probably support building block lists in apache syntax.
Basically it'll be something like
RewriteEngine On
RewriteOptions Inherit
{% for range in ranges -%}
RewriteCond expr "-R '{{range.range}}'" [OR]
{% endfor %}
RewriteRule ^.*$ <wherever you want to redirect, I guess?>
But it'll need additional processing because the [OR]
only goes on the RewriteConditions until the last one.