The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Nginx Redirect Reply To: Nginx Redirect


Each of the domains that your server is responding to should have its own config file. So if you are responding to and each needs seperate config files. You would place these in the sites-available folder. Then you would system link them, similar to what a2ensite does for Apache, to the sites-enabled.

sudo ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/

sudo service nginx reload