Forums

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

#186009
Alen
Participant

Each of the domains that your server is responding to should have its own config file. So if you are responding to domain.net and domain.me 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/domain.me.conf /etc/nginx/sites-enabled/domain.me.conf

sudo service nginx reload