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;
}

Tagged: Tags

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments