A
A
Anatoly Evladov2016-10-24 11:02:45
Nginx
Anatoly Evladov, 2016-10-24 11:02:45

How to make a redirect if the address ends with /?

Actually I use the play framework and nginx as a proxy, there is an address like domain.my/param/
This results in an error. If you contact domain.my/param, then there are no problems.
How can I make play work with domain.my/param/ addresses without adding a newline to the routes, or how can I redirect if the address ends in / ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
romy4, 2016-10-24
@Visteras

location ~ /$ { your rules; }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question