From cd15785a6a2f07c61009a982aee2ae44f86b4ba2 Mon Sep 17 00:00:00 2001 From: Victor Date: Tue, 4 Jul 2017 09:08:21 +0200 Subject: [PATCH] importation des derniers commentaires avant MEP --- .../configurer-reverse-proxy-haproxy/5.md | 9 +++++++++ .../configurer-reverse-proxy-haproxy/6.md | 6 ++++++ .../configurer-reverse-proxy-haproxy/7.md | 19 +++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 content/comments/configurer-reverse-proxy-haproxy/5.md create mode 100644 content/comments/configurer-reverse-proxy-haproxy/6.md create mode 100644 content/comments/configurer-reverse-proxy-haproxy/7.md diff --git a/content/comments/configurer-reverse-proxy-haproxy/5.md b/content/comments/configurer-reverse-proxy-haproxy/5.md new file mode 100644 index 0000000..b9bf053 --- /dev/null +++ b/content/comments/configurer-reverse-proxy-haproxy/5.md @@ -0,0 +1,9 @@ +email: ravi.gajjar@nexuslinkservices.in +date: 2017-01-18T17:00+01:00 +author: Ravi +website: + +I'm struck on redirect rule on HAProxy, also post the question on stack exchange but no one answering me as below : +https://unix.stackexchange.com/questions/338238/how-to-redirection-on-haproxy-like-apache2 + +Here I need to Hide default "app_dev.php" page from URL; Please open above link to get more idea. diff --git a/content/comments/configurer-reverse-proxy-haproxy/6.md b/content/comments/configurer-reverse-proxy-haproxy/6.md new file mode 100644 index 0000000..1e166af --- /dev/null +++ b/content/comments/configurer-reverse-proxy-haproxy/6.md @@ -0,0 +1,6 @@ +email: salemioche@gmail.com +date: 2017-01-25T09:30+01:00 +author: Nicolas +website: + +hier soir, besoin des acls pour la première fois... encore merci pour le tuto, fix en prod dans l'urgence passé comme un charme ;-) diff --git a/content/comments/configurer-reverse-proxy-haproxy/7.md b/content/comments/configurer-reverse-proxy-haproxy/7.md new file mode 100644 index 0000000..defc3e2 --- /dev/null +++ b/content/comments/configurer-reverse-proxy-haproxy/7.md @@ -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