Re:Show HN: Deploying subdomain-based routing like github.io
by defanor on Wednesday September 13, 2023 @08:29AM
(#37495838)
Possibly I am missing something, but is it different from, say, nginx's `root /var/www/$http_host`? The description sounds as if a whole web server is written for that feature.
[ Parent
| on HN ]
Re:Show HN: Deploying subdomain-based routing like github.io
by rlex on Wednesday September 13, 2023 @08:39AM
(#37495954)
yeah, it can be done entirely on nginx side in like 10 lines.
Re:Show HN: Deploying subdomain-based routing like github.io
by jatins on Wednesday September 13, 2023 @09:36AM
(#37496550)
While your comment is valid, there's a whole generation of developers (me included) who are more aware of Node ecosystem than Nginx.
Re:Show HN: Deploying subdomain-based routing like github.io
by panki27 on Wednesday September 13, 2023 @09:57AM
(#37496832)
These are not even remotely comparable. nginx is a webserver.
Re:Show HN: Deploying subdomain-based routing like github.io
by k_roy on Wednesday September 13, 2023 @10:27AM
(#37497222)
ha, 1) nginx is a webserver not a development ecosystem, and 2) You'll probably find if you look that many people using Node are also using nginx, because they are complementary, not exclusionary, and 3) open your eyes and reality a bit
Re:Show HN: Deploying subdomain-based routing like github.io
by jatins on Wednesday September 13, 2023 @02:40PM
(#37500081)
1/ what's a webserver?
2/ Is a node application serving requests not a webserver?
Re:Show HN: Deploying subdomain-based routing like github.io
by pluc on Wednesday September 13, 2023 @11:23AM
(#37498005)
This is why I'll never hire a "full-stack developer".
Re:Show HN: Deploying subdomain-based routing like github.io
by mr_o47 on Wednesday September 13, 2023 @09:44AM
(#37496658)
Nice,
Can you point me to an example I would love to check it out
Re:Show HN: Deploying subdomain-based routing like github.io
by warent on Wednesday September 13, 2023 @08:56AM
(#37496131)
Same for Caddy which is even easier than nginx https://caddyserver.com/
Re:Show HN: Deploying subdomain-based routing like github.io
by brycelarkin on Wednesday September 13, 2023 @02:40PM
(#37500062)
Caddy’s awesome! Switched our local development stack from nginx to caddy.
Especially love how easy it is to set up localhost subdomains and ssl.