
Deploy Nginx Redirect on Your Own Server
A simple nginx image preloaded with redirect config that allows you to redirect to another URL. Useful for domain alias creation.
Want to deploy Nginx Redirect on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.
What is Nginx Redirect?
This is a very simply redirect nginx image. It redirects all HTTP requests to the HTTP address that you define. It's useful when you want to redirect all traffic from www.example.com to example.com, see more details here: https://github.com/Senate/nginx-redirect
Self-Host Nginx Redirect
Follow these steps to deploy on your own server.
Install Docker
Skip this step if Docker is already installed on your server.
curl -fsSL https://get.docker.com | sh
Configure
Customize the settings below. Defaults work for most cases.
General
Deploy
Copy the configuration and run it on your server.
services:
nginx_redirect:
image: caprover/nginx-redirect:latest
environment:
RETURN_LOCATION: return 301 https://senate.sh$request_uri;
Then run:
docker compose up -d
Access
Once started, access your app at http://localhost:80
Why Self-Host Nginx Redirect?
Full Data Ownership
Your data stays on your servers. No third-party access.
No Monthly Fees
Pay only for your server. No per-seat or usage charges.
Complete Control
Customize, backup, and scale on your own terms.
Privacy & Compliance
Meet GDPR, HIPAA, or internal security requirements.
Technical Details
Docker Image
caprover/nginx-redirect:latestWant to go faster?
Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.
Install on any Linux server:
sh -c "$(curl -sSL https://get.senate.sh)"