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:
parent
0054170cc1
commit
1cd71f7f5e
1 changed files with 7 additions and 0 deletions
|
@ -7,8 +7,15 @@ RewriteCond %{HTTP_USER_AGENT} ^fpaste\/0\.3.*$ [OR]
|
||||||
RewriteCond %{HTTP_USER_AGENT} ^Python\-urllib.*$
|
RewriteCond %{HTTP_USER_AGENT} ^Python\-urllib.*$
|
||||||
RewriteCond %{REQUEST_METHOD} POST
|
RewriteCond %{REQUEST_METHOD} POST
|
||||||
RewriteRule ^/$ /stickynotes2modernpaste/$1 [L,PT]
|
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]
|
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
|
WSGIScriptAlias / /usr/share/modern-paste/modern_paste.wsgi
|
||||||
|
|
||||||
<Directory /usr/share/stickynotes2modernpaste>
|
<Directory /usr/share/stickynotes2modernpaste>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue