Answer the question
In order to leave comments, you need to log in
How to set up a redirect c www on nginx?
Hello! There is a need to set up a 301 redirect from www on nginx
According to the recommendations, it should be something like this:
server {
server_name www.devisers.in;
return 301 $scheme://devisers.in$request_uri;
}
server {
listen 80;
server_name ${VIRTUAL_HOST};
}
server {
listen 80;
server_name www.${VIRTUAL_HOST};
return 301 $scheme://$server_name$request_uri;
}
Connection not established: Probable security risk
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