Posted By

alexwilliams on 08/17/09


Tagged

url String apache query rewriting haproxy


Versions (?)

HAProxy URL Rewriting with query strings (ugly URLs)


 / Published in: Apache
 

This line can be added to 'backend', 'frontend', 'listen' directives in the HAProxy config.

It will redirect all requests for /books/mysql to /books.php?title=mysql

  1. reqirep ^([^\ ]*)\ /books/(.*) \1\ /books.php?title=\2

Report this snippet  

You need to login to post a comment.