How to turn a Raspberry Pi into a web server
Put 64-bit Raspberry Pi OS on a Pi 4 or 5, run one command, and open the address it prints. Your Pi then hosts websites, shops and apps on the internet, with HTTPS and no port forwarding. It takes about 15 minutes and it’s free.
Updated 13 November 2026
What you need
- A Raspberry Pi 4 or 5 with 2 GB of memory or more. A Pi 500, 400, CM5 or CM4 works too. 4 GB or more is better if you’ll run apps.
- Storage. A microSD card works. A USB SSD or an NVMe drive (on a Pi 5, with an M.2 HAT) is faster and lasts longer, because SD cards wear out under constant writing.
- The official power supply. A Pi 5 wants the 27 W (5 V, 5 A) one. A weaker phone charger can make it unstable.
- Your home network, over Wi-Fi or a cable. No screen or keyboard needed.
- A computer to set up the card and open the dashboard.
Pi 3, Pi 2, Pi 1 and Pi Zero models don’t have enough memory, and 1 GB versions of the Pi 4 and Pi 5 won’t work either.
Step 1: put Raspberry Pi OS on the card
- On your computer, install Raspberry Pi Imager from raspberrypi.com and open it.
- Choose your Pi, then Raspberry Pi OS (64-bit). The Lite version, with no desktop, is all a server needs. It’s under Raspberry Pi OS (other).
- Choose your microSD card or drive.
- In Edit settings, set a name for the Pi (like
myserver), a username and password, and your Wi-Fi name, password and country. On the Services tab, turn on SSH. - Write the card, let it verify, and wait until Imager says you can remove it.
Put the card in the Pi and plug in the power. The first start takes a few minutes, and it restarts once by itself.
Step 2: run one command
From your computer, connect to the Pi over SSH: ssh yourname@myserver.local. Then run:
curl -fsSL https://baumeister.host/pi/install.sh | sudo bash
It takes about 10 minutes. It checks the Pi first and changes nothing if something isn’t right. Then it:
- installs Baumeister, checking Baumeister’s signature before anything is unpacked
- installs Cloudflare’s tunnel program from Cloudflare’s own package source, and Node.js checked against nodejs.org
- sets Baumeister to start when the Pi starts, with nobody logged in
- turns on a firewall that lets nothing in from the internet, and leaves your home network, VPNs and Pi-hole alone
You can read the script before you run it. At the end it prints an address and a one-time setup code. Restart the Pi once when it asks (sudo reboot).
Step 3: open the dashboard
On any computer or phone at home, open the address it printed, like http://myserver.local. Type the setup code, choose a password, and add a recovery email. That’s your server’s dashboard. It shows your projects, and the Pi’s temperature, memory, disk and drive health.
Step 4: put your first site online
- Click + New Project. Pick a template, describe what you want to an AI like Claude or ChatGPT, or upload a site you already have (a folder or a .zip).
- Click Publish and pick a name. Your site is live at
yourname.baumeister.host, with HTTPS, usually within a few minutes.
It can also be a shop that takes card payments with Stripe, or a Python (Flask, FastAPI) or Node.js app. Each app runs in its own room, with a memory limit, and can’t see your other projects.
Step 5: use your own domain (optional)
On the project’s page, click Connect a domain. Connect one you already own through Cloudflare, or buy one on the Domains page. HTTPS is set up for you either way.
Why there’s no port forwarding
The usual way to host from home is to open port 80 and 443 on your router and point them at the Pi. That shows your home IP address to the world, and many internet providers block it or put you behind shared addresses (CGNAT), so it doesn’t work at all.
Instead, the Pi dials out. It keeps one encrypted connection open to Cloudflare, and visitors come in through Cloudflare. Nothing on the Pi listens to the internet, and your IP address stays hidden. More on how it works.
Doing it by hand instead
You can build the same thing yourself, and plenty of guides show how:
- install a web server (nginx, Apache or Caddy) and write its configuration
- install
cloudflared, make a tunnel in a Cloudflare account, and point your domain at it - set up each app with its own service, Python environment and restart rules
- keep all of it updated and backed up yourself
That’s a good way to learn. Baumeister does those steps for you, and adds the dashboard, free addresses, updates and backups.
When the Pi is off
Power cuts happen. Safety Net keeps your last published pages showing from Baumeister’s servers while the Pi is off. With Partner Backup, Pis keep encrypted backups for each other, and another owner’s Pi can show your sites for up to 72 hours a month. Both are free. How Partner Backup works.
What it costs
Baumeister is free on a Pi, not a trial. The free plan includes 3 baumeister.host addresses. Lite ($6.99/month) and Pro ($12.99/month) only raise limits. See Pricing. Running a Pi around the clock uses a few watts, far less than a desktop computer.
Questions
Is it safe to host a website from home on a Pi?
Nothing on the Pi is open to the internet, your home IP stays hidden, and updates are signature-checked before they install. See is home hosting safe.
Can I use a Pi 3 or a Pi Zero?
No. Baumeister needs a 64-bit system and at least 2 GB of memory, which means a Pi 4 or 5.
Does it work with Pi-hole or Home Assistant on the same Pi?
Yes. The firewall only blocks the internet, and it steps aside if the Pi already has a firewall or Docker.
How many visitors can a Pi handle?
Plenty for a personal site, a portfolio or a small business. Cloudflare sits in front and handles HTTPS, so the Pi only serves the pages.
Can I remove it?
Yes, with one command: curl -fsSL https://baumeister.host/pi/install.sh | sudo bash -s -- --uninstall. Your projects stay in ~/baumeister-data.