|
|
@ -0,0 +1,19 @@ |
|
|
|
email: courriel+blog@victor-hery.com |
|
|
|
date: 2017-01-25T17:00+01:00 |
|
|
|
author: Victor |
|
|
|
website: https://blog.victor-hery.com/ |
|
|
|
replyto: 5md |
|
|
|
|
|
|
|
For the redirection part it's simple, you should be able to do that with redirect scheme directive, with something like : |
|
|
|
|
|
|
|
acl acl_example hdr(host) exemple.com www.example.com |
|
|
|
http-request redirect scheme https code 301 if !{ ssl_fc } acl_example |
|
|
|
|
|
|
|
It's how I force https for my websites. |
|
|
|
|
|
|
|
For the app_dev.php, I honestly do not know. I think that's not the proxy part to do that, as he has no ideas of what is behind him, and it should transmit the information to the webserver, without hiding any information to the webserver nor to the browser.. |
|
|
|
For me it's a webserver work to rewrite or make URL prettier, but perhaps I have missed something in haproxy regarding this possibility. |
|
|
|
|
|
|
|
Good luck for this part! |
|
|
|
|
|
|
|
See you |