the rewrite rules here weren't complicated enough, let's make them more complicated. Are there RewriteRule obfuscation contests?

Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
Rick Elrod 2017-01-09 22:39:16 +00:00
parent 0054170cc1
commit 1cd71f7f5e

View file

@ -7,8 +7,15 @@ RewriteCond %{HTTP_USER_AGENT} ^fpaste\/0\.3.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^Python\-urllib.*$
RewriteCond %{REQUEST_METHOD} POST
RewriteRule ^/$ /stickynotes2modernpaste/$1 [L,PT]
RewriteCond %{HTTP_USER_AGENT} ^fpaste\/0\.3.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^Python\-urllib.*$
RewriteCond %{REQUEST_METHOD} POST
RewriteRule ^/(.*)=/$ /stickynotes2modernpaste/$1= [L,PT]
# Otherwise, if we're given a URL with a trailing slash, kill it.
RewriteRule ^/(.*)=/$ /$1= [R,L]
WSGIScriptAlias / /usr/share/modern-paste/modern_paste.wsgi
<Directory /usr/share/stickynotes2modernpaste>