mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7405: allowing VR meta-data to be accessed without trailing slash
Signed-off-by: Erik Weber <terbolous@gmail.com> Signed-off-by: Sebastien Goasguen <runseb@gmail.com>
This commit is contained in:
parent
997f74af1c
commit
ac04e6d97e
|
|
@ -176,7 +176,7 @@ def htaccess(ip, folder, file):
|
|||
if not entry in fh.read():
|
||||
fh.write(entry + '\n')
|
||||
|
||||
entry = "RewriteRule ^meta-data/$ ../" + folder + "/%{REMOTE_ADDR}/meta-data [L,NC,QSA]"
|
||||
entry = "RewriteRule ^meta-data/?$ ../" + folder + "/%{REMOTE_ADDR}/meta-data [L,NC,QSA]"
|
||||
|
||||
fh.seek(0)
|
||||
if not entry in fh.read():
|
||||
|
|
|
|||
Loading…
Reference in New Issue