G
G
Gravio2020-02-25 15:54:38
Nginx
Gravio, 2020-02-25 15:54:38

Remove slash at the end of nginx url?

There is an nginx config that returns a static file

location /.well-known/apple-developer-merchantid-domain-association { 
  default_type text/html;
  index merchant.ru.yandex.kassa;
  alias /var/www/html/.well-known/apple-developer-merchantid-domain-association;
  }


How to make it return the url without the trailing slash

Now like this:
example.com/.well-known/apple-developer-merchantid-domain-association/

Need like this:
example.com/.well-known/apple-developer- merchantid-domain-association

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2020-02-25
@SignFinder

Searching here for nginx slash didn't help?
5e5521c98aff4240108419.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question