Live data from Hacker News

Show HN: Hosting my website using my C web server

github.com

121–130 of 160 posts

Re: Show HN: Hosting my website using my C web server

#122
post #73

>I enjoy making my own tools and I'm a bit tired of hearing that everything needs to be "battle-tested." So what it will crash? Bugs can be fixed :^) I love it

[flagged]

Be respectful. Anyone sharing work is making a contribution, however modest.

https://news.ycombinator.com/showhn.html

Re: Show HN: Hosting my website using my C web server

#124
post #92

Earlier quoted context omitted.

For fun, sure. Small mistake can be big security nightmare

For a blog? If you don't put anything important on the server itself I can't imagine a hacker could do much. Maybe put a nasty image on your front page, or put their Bitcoin address pretending it's the place to send donations, but it would take a lot of time and effort to remain hidden for hardly any gain.

or take over your server?

Re: Show HN: Hosting my website using my C web server

#125
post #70

> No reverse proxies required! This is one that has always baffled me. If there's no specific reason that a reverse proxy is helpful, I will often hang an app with an embedded Jetty out on the internet without one. This has never lead to any problems. Infra or security people will see this and ask why I don't have an nginx instance in front of it. When I ask why I need one, the answers are all hand-wavy security or p…

> I will often hang an app with an embedded Jetty out on the internet

So you are using a proxy server, just an embedded one. Most prefer simply prefer not to bundle their application with one.

Re: Show HN: Hosting my website using my C web server

#126

Earlier quoted context omitted.

You forgot the original need: share a single IPv4 among different services. If going IPv6-only, the need for a reverse proxy is seriously lowered. You could spin multiple servers up (even on different machines), listening to 443. Have each service handle its certificate renewal, etc.

> You forgot the original need: share a single IPv4 among different services. That "original need" is exactly what GP is talking about.

Right, indirectly (single port). I was spelling it out.

Re: Show HN: Hosting my website using my C web server

#127
post #70

> No reverse proxies required! This is one that has always baffled me. If there's no specific reason that a reverse proxy is helpful, I will often hang an app with an embedded Jetty out on the internet without one. This has never lead to any problems. Infra or security people will see this and ask why I don't have an nginx instance in front of it. When I ask why I need one, the answers are all hand-wavy security or p…

Reverse proxy allows some operational flexibility:

1) you can share multiple apps or sites with one server listening on port 443/80. 2) You can redirect to another backend on your infrastrcture 3) You can enforce certain login/sso/restrictions 4) You can configure all these things in one place.

Of course, if you don't need all that, then it's somewhat moot.

Re: Show HN: Hosting my website using my C web server

#128

Earlier quoted context omitted.

It’s kind of sad how C has gotten the reputation as this dangerous and scary dark art that only wizards can successfully wield. C was my first love, it’s what we used throughout university, it’s what our operating systems and basic tools are all written in... If you go to your favorite language and step down into the actual implementation of, for example, your network calls, you’re eventually going to get to poll() a…

But if the dy/dx gradient is that experts can develop faster in safe languages, and novices make fewer mistakes in safe languages, then C isn't useful day-to-day. It occupies an ever-shrinking ecological niche on the Pareto frontier.

What are you on about? C is more useful day-to-day than the vast majority of languages. Learning it is hardly a waste of time.

Re: Show HN: Hosting my website using my C web server

#129
post #128

Earlier quoted context omitted.

But if the dy/dx gradient is that experts can develop faster in safe languages, and novices make fewer mistakes in safe languages, then C isn't useful day-to-day. It occupies an ever-shrinking ecological niche on the Pareto frontier.

What are you on about? C is more useful day-to-day than the vast majority of languages. Learning it is hardly a waste of time.

C is one of the worst designed programming languages still in use. It's a ridiculous, cruel joke on anyone looking to learn unless your actual goal is to learn what a programming language designed 70s computers looks like.

Re: Show HN: Hosting my website using my C web server

#130
post #70

> No reverse proxies required! This is one that has always baffled me. If there's no specific reason that a reverse proxy is helpful, I will often hang an app with an embedded Jetty out on the internet without one. This has never lead to any problems. Infra or security people will see this and ask why I don't have an nginx instance in front of it. When I ask why I need one, the answers are all hand-wavy security or p…

> slow loris,

Really? I am curious.

You are not talking of monkeys?

Post reply on HN