Install nginx on your VPS
Infraa installs nginx on your VPS and configures one managed reverse-proxy vhost in front of an app already running on the server — listening on port 80 for your domain and proxying to a local port, with optional Let's Encrypt TLS. Existing nginx sites are left untouched.
- Versions
- nginx from your distro's default apt repository
- Works on
- Ubuntu 22.04, Ubuntu 24.04, and Debian 12
- Package source
- Distro apt repository
What does the nginx install do?
- Installs the nginx package from the distro repo — no third-party repository or signing key.
- Writes a managed vhost at /etc/nginx/conf.d/infraa-<domain>.conf that listens on port 80 for your domain and reverse-proxies to 127.0.0.1:<port>.
- Forwards the headers apps expect — Host, X-Real-IP, X-Forwarded-For, X-Forwarded-Proto — plus WebSocket upgrade support.
- Enables and starts the nginx systemd service.
How do I install nginx with Infraa?
Connect your server
Run the Infraa install one-liner (curl install.infraa.sh | sh) on your VPS. The agent registers over an outbound connection in about 30 seconds — no inbound ports, no SSH keys to share.
Pick the service
Choose it from the one-click catalog in the dashboard, or just ask in chat. Infraa turns your request into a concrete, reviewable plan.
Review and approve
Read exactly what will run, then approve. The agent executes only the approved, cryptographically signed steps and streams progress live.
What happens after the install?
Infraa checks nginx every 60 seconds and can obtain and renew Let's Encrypt certificates for your domain through dedicated, approval-gated capabilities — HTTPS without hand-editing config.
nginx on Infraa — common questions
01Can Infraa set up HTTPS with Let's Encrypt?
Yes. Infraa can obtain a Let's Encrypt certificate for your domain and renew it, through dedicated capabilities that you approve like any other change. The vhost is then served over HTTPS.
02Will Infraa touch my existing nginx configuration?
No. Infraa writes its own managed vhost file (/etc/nginx/conf.d/infraa-<domain>.conf) and manages only that file. Sites and config you already have stay exactly as they are.
03What does the managed nginx vhost actually do?
It listens on port 80 for the domain you provide and reverse-proxies to the local port your app runs on, forwarding Host, X-Real-IP, X-Forwarded-For, and X-Forwarded-Proto headers, with WebSocket upgrades supported.
Connect a server in 30 seconds, then install nginx from the catalog or just ask in chat.