I've install haproxy, varnish and apache2 in sequence with https and http domain.Here I want to convert redirect condition from apache to haproxy.Flow :---443--> |          | HAProxy ------>Varnish(8081) ----------> apache2(8080)---80---> | Apache2 :Convert to HAproxy for https request onlyRewriteCond %{HTTP_HOST} ^example.com [NC]RewriteCond %{HTTP_HOST} ^www.example.com [NC]RewriteRule ^(.*)$ https://www.example.com$1 [L,R=301]RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ %{DOCUMENT_ROOT}/app_dev.php [QSA,L]Here I need to do two things, 1) Redirect domain to www with https or http2) Hide app_dev.php from URL  Can we make above rule on HAProxy? or Is there any other option with replace HAProxy to make easy?
How to redirection on haproxy like apache2
linux;apache httpd;htaccess;haproxy;varnish