D
D
Dmitry Sergeev2012-04-17 20:34:39
Nginx
Dmitry Sergeev, 2012-04-17 20:34:39

Define the reference to the main page (/) in $request_uri

not working
if ($request_uri ~* (/test| / )) { # accessing the main page and the test page, not working
return 444;
} Also

a little lower in the config there is a location /
location / {
try_files… # try_files leads to a named location
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VBart, 2012-04-17
@VBart

location = / {
    return 444;
}

location = /test {
    return 444;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question