Comments on: Add Subdomain on Nginx https://nabtron.com/add-subdomain-nginx/ Technology & Programming Guide Sun, 21 Apr 2019 04:01:51 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Nabtron https://nabtron.com/add-subdomain-nginx/#comment-20197 Sun, 21 Apr 2019 04:01:51 +0000 https://nabtron.com/?p=10207#comment-20197 In reply to Himanshu.

You have to do that in sites-available and then create a symlink for it using sudo ln -s /etc/nginx/sites-available/subdomain /etc/nginx/sites-enabled/

]]>
By: Himanshu https://nabtron.com/add-subdomain-nginx/#comment-20194 Fri, 12 Apr 2019 07:13:10 +0000 https://nabtron.com/?p=10207#comment-20194 I tried to add a subdomain usercontent on my server but it results in 404

server {
listen 80;
server_name usercontent.sportsapp.co.in http://www.usercontent.sportsapp.co.in;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection ‘upgrade’;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}

this is my sites-enabled/usercontent

]]>