How To Setup A Subdomain Inwards Your Nginx Server

Lately I've created a sub-domain for i of my website. I promise you lot follow this blog on how to setup your nginx wordpress site. In the same server where I host my maindomain.com, I've added a subdomain.maindomain.com. And hither is how:

  1. I created a novel folder inward /var/www/subdomain where I install a novel re-create of wordpress. Note that /var/www/html contains my maindomain.
  2. The duplicate the config site inward the spider web log I mentioned inward a higher house (my-site), in addition to then directly I convey subdomain ni /etc/nginx/sites-available.
  3. Make the next modifications (first ii lines):
    listen 80; heed [::]:80; 
  4. Basically, you lot can't convey ii virtual configurations amongst default_server marker.
  5. Your sub domain should directly survive accessible.
Next
Previous
Click here for Comments

0 komentar:

Please comment if there are any that need to be asked.