mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 07:12:54 -04:00
Reduce the matching of REWRITE_HTTPS_ARGS and add query string
If the backreference of the match is not used, it's enough to match '^' instead of '^.*$'. It's slightly faster. ^ -> Match, if it starts ^.*$` -> Match, if everything matches In addition it might be useful to append the query string with the flag: QSA
This commit is contained in:
parent
d56ec3c1da
commit
df850ee980
1 changed files with 1 additions and 1 deletions
|
|
@ -56,4 +56,4 @@ CHALLENGE_PREFERENCES = ["dvsni", "recoveryToken"]
|
|||
EXCLUSIVE_CHALLENGES = [set(["dvsni", "simpleHttps"])]
|
||||
|
||||
# Rewrite rule arguments used for redirections to https vhost
|
||||
REWRITE_HTTPS_ARGS = ["^.*$", "https://%{SERVER_NAME}%{REQUEST_URI}", "[L,R=permanent]"]
|
||||
REWRITE_HTTPS_ARGS = ["^", "https://%{SERVER_NAME}%{REQUEST_URI}", "[L,QSA,R=permanent]"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue