Short redirect server based on nginx
1.0K
This is a simple NGINX redirection server.
It is useful to us because if we need a simple 301 permanently moved on old DNS servers, we can just set this image with SITE_URL=https://www.yournewdomain.com and it will "work"
It responds to EVERY request with a 301 to the ROOT of your new domain. It is as simple as it gets on purpose, so that it is easily reviewable.
It is meant to be behind a proxy that does ssl for it.
server {
listen 80;
server_name _ localhost;
location / {
return 301 $SITE_URL;
}
}
Content type
Image
Digest
sha256:174e0d58f…
Size
5.1 MB
Last updated
about 2 years ago
docker pull esavesoporte/nginx-redirect:1.27.0-alpine-slim