Skip to content

Redirect does not work #10

@guitar9

Description

@guitar9

This is my docker-compose file

version: "3"

services:

  redirect:
    image: adamkdean/redirect:1.2.4
    networks:
      - proxy_net
    environment:
      - VIRTUAL_HOST=www.mydomain.de
      - REDIRECT_LOCATION=mydomain.de
      - REDIRECT_STATUS_CODE=301
      - PRESERVE_URL=true
  nginx:
    restart: always
    image: nginx:1.21.0
    container_name: mydomain
    volumes:
      - ./volume:/usr/share/nginx/html:ro
      - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
    networks:
      - proxy_net
    environment:
      - VIRTUAL_HOST=mydomain.de
      - LETSENCRYPT_HOST=mydomain.de
      - LETSENCRYPT_EMAIL=myemail@gmail.com

networks:
  proxy_net:
    external: true

When I call www.mydomain.de I get redirected to https://www.mydomain.de/%22https://%22https://%22https://%22https://%22https://%22https://%22https://%22https://%22https://%22https://%22https://%22https://%22https://%22https://%22https://%22https://%22https://%22https://mydomain.de%22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions