<div dir="ltr">Hi guys,<div><br></div><div>This is not the first time I use this mailing list for support and it has always been very helpful.</div><div><br></div><div>I might have forget to tell I'm using ISPConfig to setup my vhosts</div><div>The .conf file is automaticaly generated, I only add some tuning to make different things work such as WordPress, PrestaShop, PageSpeed and so on.</div><div><br></div><div>When I say i'm completely lost, I mean there is indeed plenty tutorials on how to set up a vhost manually and each tutorial is different (almost).</div><div><br></div><div>You are right when you say something may work on some setup and not on mine, because it's not a part of a whole thing.</div><div><br></div><div>I'll read everything you posted and try to figure out how to combine it with default vhost template in ISPConfig, because everytime I reload the server all changes made directly in vhost .conf files is rewritten with defaults.</div><div><br></div><div>On ISPConfig admin panel, I have an "Option" Tab where I can add custom nginx directives. All these directives are added at the end of the vhost .conf file. This is the only way I have in order to have my custom directives saved even after a reboot.</div><div><br></div><div>For now, I need to fix my idividual vhost and then try to modify the vhost template from ispconfig.</div><div><br></div><div>As you can see, the template doesn't make separate server blocks for each HTTP & HTTPS protocole :</div><div><br></div><div><div><a href="http://pastebin.fr/37523">http://pastebin.fr/37523</a><br></div></div><div><br></div><div>And once again, thanks for your time / patience / help.</div><div><br></div><div>Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-21 1:09 GMT+01:00 Francis Daly <span dir="ltr"><<a href="mailto:francis@daoine.org" target="_blank">francis@daoine.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Nov 20, 2014 at 10:07:22PM +0100, JACK LINKERS wrote:<br>
<br>
You probably already have the answer now, but just in case not...<br>
<span class=""><br>
> I completely lost...<br>
> I tried everything (of my understanding) with no success.<br>
<br>
</span>Your original config was:<br>
<br>
listen on http and https; redirect everything to https.<br>
<br>
That's a recipe for an infinite loop, as your browser reported.<br>
<br>
What you probably want is:<br>
<br>
listen on http; redirect everything to https.<br>
listen on https; process requests normally.<br>
<br>
which is most easily done with two separate server{} blocks.<br>
<span class="HOEnZb"><font color="#888888"><br>
f<br>
--<br>
Francis Daly <a href="mailto:francis@daoine.org">francis@daoine.org</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">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>
</div></div></blockquote></div><br></div>