Nginx – Redirect to another domain

 

Example configuration block for redirecting domain "old.artem.services" to "new.artem.services"

app.conf

server {
    server_name old.artem.services;
    return 301 https://new.artem.services$request_uri;
}
0 0 vote
Article Rating

Tagged: Tags

Подписаться
Уведомление о
guest
0 Comments
Inline Feedbacks
View all comments