<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Maybe start over your configuration, one step at a time, checking everything you do has the desirect effect?<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Step by step, gently, no pressure. That is the way you learn! Do not give up, if you need specific help people are here to help you :o)<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">As you just realized, copy-pasting 'magic' configuration snippets from other people does not always works out of the box. That demosntrates the fact that copy-pasting != learning :o)<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">By the way, the 'if' directive is tricky and to be avoided as much as possible. It is used for very speicifc cases, when you cannot do anyway else. I have not read thoroughly the link you provided, however by having a quick look it seemed to me I saw a lot of (too much?) 'if'...<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Start with a simple, but working configuration, and solve one requirement/issue at a time!<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Good luck,<br></div><div class="gmail_extra"><div><div><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></div></div>
<br><div class="gmail_quote">On Thu, Nov 20, 2014 at 10:07 PM, JACK LINKERS <span dir="ltr"><<a href="mailto:jacklinkers@gmail.com" target="_blank">jacklinkers@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I completely lost...<div>I tried everything (of my understanding) with no success.</div><div>I didn't know you could include a condition with if and came across sites like :</div><div><a href="http://publications.jbfavre.org/web/nginx-vhosts-automatiques-avec-SSL-et-authentification.fr" target="_blank">http://publications.jbfavre.org/web/nginx-vhosts-automatiques-avec-SSL-et-authentification.fr</a><br></div><div>This is way beyond my skills... I didn't managhe to enclose the 301 in if statements</div><div>I think i'm gonna givin up</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-20 10:27 GMT+01:00 JACK LINKERS <span dir="ltr"><<a href="mailto:jacklinkers@gmail.com" target="_blank">jacklinkers@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi guys,</p>
<p dir="ltr">Thanks for your fast reply and input.<br>
I didn't think of wordpress at all.</p>
<p dir="ltr">I'll try some tuning and keep you posted.</p>
<p dir="ltr">Thanks again</p>
<div class="gmail_quote">Le 20 nov. 2014 09:52, "B.R." <<a href="mailto:reallfqq-nginx@yahoo.fr" target="_blank">reallfqq-nginx@yahoo.fr</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div class="gmail_extra"><div style="font-size:small;color:rgb(51,51,153)"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>On Thursday, November 20, 2014, JACK LINKERS <<a href="mailto:jacklinkers@gmail.com" target="_blank">jacklinkers@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span style="line-height:18px;background-color:rgb(255,255,255)"><font color="#000000" face="Helvetica, Arial, sans-serif"><div><span style="white-space:pre-wrap">  </span>rewrite     ^   https://$server_name$request_uri? permanent;<br></div></font></span></div></div></blockquote></div></div></blockquote><div><br><div style="font-size:small;color:rgb(51,51,153);display:inline">​This looks highly suscpicious to me: unconditional rewrite of any request?<br><br></div><div style="font-size:small;color:rgb(51,51,153);display:inline">Try to either:<br>- match the regex against HTTP requests<br>- enclose a 'return 301 [...]' in an 'if' directive checking for the HTTP scheme<br></div><div style="font-size:small;color:rgb(51,51,153);display:inline">I am not 100% certain what would be the best alternative to go for.<br><br></div><div style="font-size:small;color:rgb(51,51,153);display:inline">If the problem comes from there, I do not really get how the backend gets to serve any (error) page... So maybe Wordpress trouble as stated before.<br></div></div><div><div><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></div></div>
​</div><br></div></div>
<br></div></div>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br></div></div>