-
Notifications
You must be signed in to change notification settings - Fork 0
YT05‐Set up Nginx Domain
Zhamri Che Ani edited this page Apr 10, 2026
·
1 revision
sudo apt install nginx -y
sudo systemctl enable nginx
sudo systemctl start nginx
vim /etc/nginx/sites-available/csc584
Paste:
server {
server_name csc584.yourdomain.com;
location / {
proxy_pass http://localhost:6060;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}ln -s /etc/nginx/sites-available/csc584 /etc/nginx/sites-enabled/
nginx -t
systemctl restart nginx
A record → csc584.yourdomain.com → your-server-ip