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
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
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
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;
>
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
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
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
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
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
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
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
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
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
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
14 matches
Mail list logo