Nginx Redirect From a Website to Another Website

Posted on May 26, 2019 at 5:00 pm

This Nginx config can redirect your website to another website:

server {
        listen 80;
        access_log /var/www/ main;
        error_log /var/www/ warn;
	root /var/www/;
	index index.html index.htm index.php;
        return 301$request_uri;

Useful if you moved your website.

Receive updates via email

Other Posts

Updated Posts