Can HAProxy rewrite a URI from "domain.com/cool/url" to "domain.com/index.php/cool/url" as it passes a request to the Web server?
Thanks.
|
Can HAProxy rewrite a URI from "domain.com/cool/url" to "domain.com/index.php/cool/url" as it passes a request to the Web server? Thanks. |
|||
|
|
Edit: It is (obviously) up to you whether or not you choose to implement a rewrite using HAProxy, however, I would strongly suggest that you consider using mod_rewrite (or similar) instead. HAProxy's rewrite functionality is intended to facilitate load-balancing activities and, from a maintenance perspective, webserver behavior should not be coupled to a load-balancer configuration - i.e. if the load-balancer were to be removed from your hosting configuration a single webserver should respond with the same content (and not 404 errors) for a request to a given URI. |
||||
|