SONUB home EN English 한국어 日本語 中文 हिन्दी বাংলা اردو Español Português Français Deutsch Русский العربية Bahasa Indonesia Tiếng Việt ไทย Türkçe

How to enable notifications

Notifications are unavailable in this browser or on this address. Try a supported browser on the secure SONUB site.

If notifications are blocked, allow them in your browser settings.

  1. Open the site controls beside the address bar, or your browser’s site settings. Set Notifications for this site to Allow.
  2. In your device settings, allow notifications for your browser and check Do Not Disturb or Focus.
  3. Return to SONUB, reload the page, and use the bell to enable notifications.

On iPhone or iPad, add SONUB to your Home Screen, open it there, then allow notifications.

All Vibe Coding topics
VIBE CODING

Web Server

Twenty lines of that a will talk to.

A web is simply a that waits for a and sends a . To prove it, we build one out of bash, and a — you can read every line of it — and then move to Caddy, the server that runs real sites with included.

What this server cannot do

The example is honest teaching material and a poor service. Knowing exactly why it falls short is what a real server has to solve for you.

  • One visitor at a time. nc handles a single connection, so while it is busy everyone else waits.
  • It ignores the path. Ask for anything at all and you still get index.html — there is no routing and no second page.
  • It sends everything as HTML. Images, stylesheets and downloads all need their own content type, and this server has exactly one.
  • No HTTPS. Everything travels in the clear, so any network in between can read it or change it on the way.
  • No safety at all. It never checks the size of a request, never times out, and would happily read a file path someone else chose if you extended it carelessly.
So use it for what it is good at

Run it on your own machine to see HTTP with your own eyes, then use a real server for anything anyone else will visit. The next section is that real server — and it is barely harder to start than this one.

You mark this yourself. Nothing is graded here.

Mark this step as understood?

This cannot be undone yet, so mark it only when you really understand.

Marked as understood

You mark this yourself. Nothing is graded here.