This project documents how to configure a custom domain using Rumahweb DNS Management, connect a website to GitHub Pages, and point a subdomain to an Nginx web server running on a Helipod VPS.
formapi.online| Domain | Purpose | Target |
|---|---|---|
github.formapi.online |
GitHub Pages website | codewithun.github.io |
server.formapi.online |
VPS-hosted website | 169.58.223.6 |
DNS records were configured through Rumahweb DNS Management.
| Field | Value |
|---|---|
| Type | CNAME |
| Hostname | github |
| Target | codewithun.github.io |
| Field | Value |
|---|---|
| Type | A |
| Hostname | server |
| Target | 169.58.223.6 |
A TXT record was also created to verify domain ownership through GitHub.
github.formapi.online in the Custom domain field.Website: https://github.formapi.online
The static website was deployed to an Ubuntu 24.04 VPS running Nginx.
The Nginx document root is:
/var/www/static-site
The website files include:
index.htmlstyle.cssimages/The Nginx server block serves the website from /var/www/static-site.
The domain server.formapi.online points to the VPS public IP address. The HTTP service is exposed through external port 32080, mapped to internal port 80.
Website: http://server.formapi.online:32080
DNS resolution was checked using the dig command.
dig github.formapi.online CNAME +short
Expected result:
codewithun.github.io.
dig server.formapi.online A +short
Expected result:
169.58.223.6
Both DNS records resolved to their expected targets during testing.
This project demonstrates how DNS records connect custom domains to different hosting platforms. It covers domain ownership verification, CNAME and A records, GitHub Pages custom domains, and VPS-based website hosting.