B
B
Bogdan2018-10-08 15:56:22
Nginx
Bogdan, 2018-10-08 15:56:22

Cancel redirect didn't work for the address?

Hello. Please tell me how to make the redirect did not work for the address

server {
  listen 80;
  listen [::]:80; #Added IPv6 here too

  # for certbot
  location ^~ /.well-known/acme-challenge/ {
    root /etc/nginx/ssl/coins;
  }

  return 301 https://my.cryptonot.io$request_uri;
}

here it turns out for an address that contains ^~ /.well-known/acme-challenge/ all the same there is a redirect and the sertbot cannot see the address.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2018-10-08
@bogdan_uman

server {
  listen 80;
  listen [::]:80; #Added IPv6 here too

  # for certbot
  location ^~ /.well-known/acme-challenge/ {
    root /etc/nginx/ssl/coins;
  }

  location / {
    return 301 https://my.cryptonot.io$request_uri;
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question