Re: Double Redirect

2016-06-26 Thread Lebod
I've found the problem. Thank you everybody for the tip about nginx -T The web app that I use "forge" to deploy servers seemed to add another redirect hidden inside of /etc/nginx/forge-conf/before/ssl_redirect.conf which was redirecting port 80 example.com to https://example.com My server block w

Re: Double Redirect

2016-06-25 Thread Edho Arief
Hi, On Sun, Jun 26, 2016, at 06:09, Lebod wrote: > My complete set up is below. The only difference is the use of > "example.com" > instead of the domain for privacy reasons.I was really hoping that a > gracious person would just point out the mistake in the set up if there > is > one... > > serv

Re: Double Redirect

2016-06-25 Thread Lebod
Echo Arief, Thanks for the reply. My complete set up is below. The only difference is the use of "example.com" instead of the domain for privacy reasons.I was really hoping that a gracious person would just point out the mistake in the set up if there is one... server { listen 80; listen 443 ss

Re: Double Redirect

2016-06-24 Thread Edho Arief
Hi, On Sat, Jun 25, 2016, at 14:42, Lebod wrote: > Thank you for the reply Francis, > > I have only 1 server {} with "example.com". > > I have one server block that listens on ports 80 and 443 to example.com > and > redirects to https://www.example.com like this: > > server { > listen 80; >

Re: Double Redirect

2016-06-24 Thread Lebod
Thank you for the reply Francis, I have only 1 server {} with "example.com". I have one server block that listens on ports 80 and 443 to example.com and redirects to https://www.example.com like this: server { listen 80; listen 443 ssl; server_name example.com ***IP Address***; return 301 h

Re: Double Redirect

2016-06-24 Thread Francis Daly
On Fri, Jun 24, 2016 at 12:45:00AM -0400, Lebod wrote: Hi there, > Thanks for the tip Francis but Nginx -T doesn't give me a clue at all. > Would you know what specifically I can change to fix this? You have two server{} blocks that have server_name example.com. That is a problem. Decide what

Re: Double Redirect

2016-06-23 Thread Lebod
Thanks for the tip Francis but Nginx -T doesn't give me a clue at all. Would you know what specifically I can change to fix this? Thank you so much Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267700,267850#msg-267850 ___ nginx mailing li

Re: Double Redirect

2016-06-20 Thread itpp2012
Lebod Wrote: > > What do you think this does?: return 301 > > https://www.example.com$request_uri; > > Doesn't that re-direct https://example.com to https://www.example.com > ? It would if you used "listen 443", maybe you should read the docs to get a basic grasp what your doing. https://www.ng

Re: Double Redirect

2016-06-20 Thread Lebod
itpp2012 Wrote: --- > Lebod Wrote: > --- > > Thank you for the reply; > > > > If we did this: > > > > server { > > listen 80; > > -listen 443 ssl; > > server_name example.com ***IP Address

Re: Double Redirect

2016-06-20 Thread itpp2012
Lebod Wrote: --- > Thank you for the reply; > > If we did this: > > server { > listen 80; > -listen 443 ssl; > server_name example.com ***IP Address***; > return 301 https://www.example.com$request_uri; > } > > Wouldn't this stop https

Re: Double Redirect

2016-06-20 Thread Lebod
Thank you for the reply; If we did this: server { listen 80; -listen 443 ssl; server_name example.com ***IP Address***; return 301 https://www.example.com$request_uri; } Wouldn't this stop https://example.com from re-directing to https://www.example.com then ? Posted at Nginx Forum: h

Re: Double Redirect

2016-06-19 Thread Francis Daly
ample.com request. > I was wondering if there was an issue in our setup that's causing the double > redirect and the error: > nginx: [warn] conflicting server name "example.com" on 0.0.0.0:80, ignored nginx -T might show you where the problem is. f -- Francis

Re: Double Redirect

2016-06-19 Thread itpp2012
Lebod Wrote: --- > nginx: [warn] conflicting server name "example.com" on 0.0.0.0:80, It says it all. > server { > listen 80; remove this line: > listen 443 ssl; > server_name example.com ***IP Address***; > return 301 https://ww

Double Redirect

2016-06-19 Thread Lebod
location ~ /\.ht { deny all; } if ($allowed_country = no) { return 444; } } I was wondering if there was an issue in our setup that's causing the double redirect and the error: nginx: [warn] conflicting server name "example.com" on 0.0.0.0:80, ignored T