« Haproxy : Les ACLs » : différence entre les versions
De www.yakakliker.org
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
{| class="wikitable" | {| class="wikitable" | ||
| colspan="1" rowspan="1" |ACL | | colspan="1" rowspan="1" |'''ACL''' | ||
| colspan="1" rowspan="1" |<small>Description</small> | | colspan="1" rowspan="1" |<small>'''Description'''</small> | ||
|- | |- | ||
| colspan="1" rowspan="1" |<code>if { path_beg /api/ }</code> | | colspan="1" rowspan="1" |<code>if { path_beg /api/ }</code> |
Version du 28 août 2025 à 11:21
ACL | Description |
if { path_beg /api/ }
|
Route API requests. |
if { path_end .jpg .png }
|
Route requests for images. |
if { hdr(host) -m dom example.local }
|
Routes requests for the domain example.local. |
if { src 127.0.0.1/8 }
|
Route requests originating from the given IP address range. |
if { method POST PUT }
|
Route POST and PUT requests. |
if { url_param(region) europe }
|
Route requests that have a URL parameter named region that is set to europe. |
Liens
https://www.haproxy.com/blog/introduction-to-haproxy-acls