Answer the question
In order to leave comments, you need to log in
Nginx redirect setup?
Good afternoon.
It is necessary that when accessing the site my.site.ru/redirect, it would be redirected to the site blog.mysite2.ru
with this setting:
server {
merge_slashes off;
location ~* "my.site.ru/redirect/" {
rewrite ^ $scheme://www.blog.mysite2.ru;
}
}
2019/11/11 21:29:54 [alert] 9036#9036: *3 open socket #12 left in connection 3
2019/11/11 21:29:54 [alert] 9036#9036: aborting
erver {
listen 80;
server_name my.site.ru;
return 302 http://blog.mysite2.ru$request_uri;
}
my.site.ru/redirect
server name "my.site.ru/redirect" has suspicious symbols/code>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question