Sign inSign up

esavesoporte/nginx-redirect

By esavesoporte

•Updated about 2 years ago

Short redirect server based on nginx

Image
Networking
0

1.0K

esavesoporte/nginx-redirect repository overview

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;
    }
}

Tag summary

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