簡體   English   中英

無法從 http-> https 重定向,錯誤::80:綁定:權限被拒絕

[英]Can't redirect from http->https, error: :80: bind: permission denied

Traefik 重定向失敗,http-> https,我使用此命令更新/添加重定向功能, helm upgrade traefik traefik/traefik -n traefik -f traefik-config-ha.yaml這是我的 traefik-config

additionalArguments:
  - "--metrics.prometheus.entryPoint=metrics"
  - "--metrics.prometheus=true"
  - "--entrypoints.web.http.redirections.entryPoint.to=websecure"
  - "--entrypoints.web.http.redirections.entryPoint.scheme=https"
  - "--entrypoints.websecure.address=:80"
  - "--entrypoints.websecure.address=:443" 
  - "--entryPoints.metrics.address=:8082"
  - "--entrypoints.websecure.http.tls"
  - "--api.insecure=true"
  - "--api.dashboard=true"
  - "--accesslog=true"
  - "--log.level=DEBUG"

deployment:
  replicas: 3
  podAnnotations:
    prometheus.io/port: '8082'
    prometheus.io/scrape: 'true'

我收到以下錯誤:

traefik  Nov 30, 2020, 10:15:50 AM  2020/11/30 09:15:50 traefik.go:76: command traefik error: error while building entryPoint web: error preparing server: error opening listener: listen tcp :80: bind: permission denied

我將如何解決這個問題?

我修復了它,但如果有人能解釋它為什么起作用,我會很感激聽到它。

additionalArguments:
  - "--entrypoints.web.address=:8000"
  - "--entrypoints.websecure.address=:8443"
  - "--metrics.prometheus.entryPoint=metrics"
  - "--metrics.prometheus=true"
  - "--entryPoints.metrics.address=:8082"
  - "--entrypoints.web.http.redirections.entryPoint.to=:443"
  - "--api.insecure=true"
  - "--api.dashboard=true"
  - "--accesslog=true"
  - "--log.level=DEBUG"

deployment:
  replicas: 3
  podAnnotations:
    prometheus.io/port: '8082'
    prometheus.io/scrape: 'true'

現在它從 http -> https 重定向。 當我輸入此命令"--entrypoints.web.http.redirections.entryPoint.to=:443"時,它立即起作用

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM