Skip to content
Browse documentation

How to host a website

Put a static site or a Node.js / Python web app online on your own domain, with free HTTPS.

Every slot on your plan holds one bot or one website. A website can be static files or a web app in Node.js or Python, and it's reachable on your own domain with HTTPS.

1. Create the website

  1. Open your server in the panel and click a free slot.
  2. Choose A website, give it a name and pick the type: Static site, Node.js app or Python app.
  3. Keep the default start command unless your app starts differently.

2. Upload your files

In the Deploy tab, upload a .zip. For a static site, include index.html — or the dist, build or public folder of a React, Vite or Astro project. For an app, your code must listen on the PORT environment variable:

Node.js (index.js)
const http = require("http");
http.createServer((req, res) => res.end("Hello!")).listen(process.env.PORT);
Python (app.py, Flask)
import os
from flask import Flask
app = Flask(__name__)

@app.get("/")
def home():
    return "Hello!"

app.run(host="0.0.0.0", port=int(os.environ["PORT"]))

3. Connect a domain

  1. Open the Domains tab and add your domain, for example example.com.
  2. At your domain provider, add an A record for it pointing to the IP shown in the panel. On Cloudflare, set it to DNS only (grey cloud).
  3. Press Check. Once it's connected, HTTPS is set up automatically within about a minute.

No domain yet? In the Domains tab you can get a name.marvhosting.eu address for €1 a month, billed with your plan.

4. Start it

Press Start. The Console shows your app's output; if it crashes, it's restarted automatically. If the site shows "This website isn't running", start it in the panel.