Skip to content

Commit 379d843

Browse files
Merge pull request #952 from elfosardo/fix-directory-regex-trailing-slash
🐛 Fix Directory regex to match paths without trailing slash
2 parents 53461f7 + 29d4b6c commit 379d843

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ironic-config/apache2-ipxe.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Listen {{ env.IPXE_TLS_PORT }}
1515
Options Indexes FollowSymLinks
1616
Require all granted
1717
</Directory>
18-
<Directory ~ "/shared/html/(redfish|ilo|images)/">
18+
<Directory ~ "/shared/html/(redfish|ilo|images)/?">
1919
Require all denied
2020
</Directory>
2121

ironic-config/apache2-vmedia.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Listen {{ env.VMEDIA_TLS_PORT }}
2626
<Directory ~ "/shared/html">
2727
Require all denied
2828
</Directory>
29-
<Directory ~ "/shared/html/(redfish|ilo)/">
29+
<Directory ~ "/shared/html/(redfish|ilo)/?">
3030
Require all granted
3131
</Directory>
3232

ironic-config/httpd.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ DocumentRoot "/shared/html"
2525
{%- endif %}
2626
</Directory>
2727

28-
<Directory ~ "/shared/html/(redfish|ilo)/">
28+
<Directory ~ "/shared/html/(redfish|ilo)/?">
2929
{%- if env.IRONIC_VMEDIA_TLS_SETUP | lower == "true" %}
3030
Require all denied
3131
{%- else %}

0 commit comments

Comments
 (0)