Welcome! Log In Create A New Profile

Advanced

Re: too many redirects

November 21, 2014 03:04AM
Hi guys,

This is not the first time I use this mailing list for support and it has
always been very helpful.

I might have forget to tell I'm using ISPConfig to setup my vhosts
The .conf file is automaticaly generated, I only add some tuning to make
different things work such as WordPress, PrestaShop, PageSpeed and so on.

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).

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.

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.

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.

For now, I need to fix my idividual vhost and then try to modify the vhost
template from ispconfig.

As you can see, the template doesn't make separate server blocks for each
HTTP & HTTPS protocole :

http://pastebin.fr/37523

And once again, thanks for your time / patience / help.

Regards

2014-11-21 1:09 GMT+01:00 Francis Daly <francis@daoine.org>:

> On Thu, Nov 20, 2014 at 10:07:22PM +0100, JACK LINKERS wrote:
>
> You probably already have the answer now, but just in case not...
>
> > I completely lost...
> > I tried everything (of my understanding) with no success.
>
> Your original config was:
>
> listen on http and https; redirect everything to https.
>
> That's a recipe for an infinite loop, as your browser reported.
>
> What you probably want is:
>
> listen on http; redirect everything to https.
> listen on https; process requests normally.
>
> which is most easily done with two separate server{} blocks.
>
> f
> --
> Francis Daly francis@daoine.org
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

too many redirects

shiroweb November 20, 2014 03:24AM

Re: too many redirects

dewanggaba November 20, 2014 03:28AM

Re: too many redirects

B.R. November 20, 2014 03:52AM

Re: too many redirects

shiroweb November 20, 2014 04:28AM

Re: too many redirects

shiroweb November 20, 2014 04:08PM

Re: too many redirects

B.R. November 20, 2014 05:28PM

Re: too many redirects

GreenGecko November 20, 2014 05:32PM

Re: too many redirects

Francis Daly November 20, 2014 07:10PM

Re: too many redirects

shiroweb November 21, 2014 03:04AM

Re: too many redirects

Francis Daly November 21, 2014 02:32PM

Re: too many redirects

shiroweb November 22, 2014 01:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready