Home › Forums › Other › Nginx Redirect › Reply To: Nginx Redirect
October 10, 2014 at 8:24 pm
#186009
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