
arbarwings/docker-web-redirectThis Docker container listens (by default) on port 80 and redirects all web traffic permanently to the given target domain/URL.
_Hint: This repo was forked from [***]
The target domain/URL is set by the REDIRECT_TARGET environment variable.
The port may be changed to another port than 80 by the PORT environment variable.
Possible redirect targets include domains (mydomain.com), paths (mydomain.com/my_page) or specific protocols ([***]).
Example (Listen on Port 80): $ docker run --rm -d -e REDIRECT_TARGET=mydomain.com -p 80:80 arbarwings/docker-web-redirect
Example (Listen on Port 8080): $ docker run --rm -d -e REDIRECT_TARGET=mydomain.com -e PORT=8080 -p 8080:8080 arbarwings/docker-web-redirect
The URL path and GET parameters are retained. That means that a request to [***] will be redirected to [***] when REDIRECT_TARGET=mydomain.com is set.
Redirects are permanent (HTTP status code 301). That means browsers will cache the redirect and will go directly to the new site on further requests. Also search engines will recognize the new domain and change their URLs. This means this image is not suitable for temporary redirects e.g. for site maintenance.
A sample docker-compose file that redirects any incomming domain to mydomain.com could look like this:
yamlversion: '3' services: redirect: image: arbarwings/docker-web-redirect restart: always environment: - REDIRECT_TARGET=mydomain.com
$ docker build -t arbarwings/docker-web-redirect:latest .
[***]

manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务