Try the fastest and simplest way to install ONLYOFFICE

Bad Request (Invalid host)

Questions/problems on Docker

Bad Request (Invalid host)

Postby im2x3m4u » Fri Jul 21, 2017 10:32 am

Has anyone experience "Bad Request (Invalid host)" error page when install OO using docker with virtual host using haproxy?
i'm using this docker compose:
Code: Select all
version: '2'
services:
  onlyoffice-communityserver:
    container_name: onlyoffice-communityserver
    image: onlyoffice/communityserver:latest
    depends_on:
      - onlyoffice-documentserver
    environment:
      - VIRTUAL_HOST=office.app
      - ALLOW_OVERRIDE=true   
      - LE_RENEW_HOOK=docker restart @CONTAINER_NAME@
      - DOCUMENT_SERVER_PORT_80_TCP_ADDR=document_server
    links:
     - onlyoffice-documentserver:document_server
    stdin_open: true
    restart: always
    networks:
     - onlyoffice
    volumes:
     - communityserver_logs:/var/log/onlyoffice
     - communityserver_data:/var/www/onlyoffice/Data
     - communityserver_db:/var/lib/mysql
     - documentserver_data:/var/www/onlyoffice/DocumentServerData
  onlyoffice-documentserver:
    image: onlyoffice/documentserver:latest
    environment:
      - BALANCE=uri depth 3
      - EXCLUDE_PORTS=443
      - HTTP_CHECK=GET /healthcheck
      - EXTRA_SETTINGS=http-check expect string true
      # Uncomment the string below to redirect HTTP request to HTTPS request.
      #- FORCE_SSL=true
    stdin_open: true
    restart: always
    networks:
      - onlyoffice
    volumes:
       - documentserver_data:/var/www/onlyoffice/Data
       - documentserver_logs:/var/log/onlyoffice
  onlyoffice-haproxy:
    container_name: onlyoffice-haproxy
    image: dockercloud/haproxy:1.5.3
    depends_on:
      - onlyoffice-communityserver
    environment:
      - LE_RENEW_HOOK=docker restart @CONTAINER_NAME@
      - MODE=http
      # Uncomment the string below to specify the path of ssl certificates
      #- CERT_FOLDER=/certs/
    stdin_open: true
    links:
     - onlyoffice-communityserver
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      # Uncomment the string below to map a ssl certificate from host
      # to the proxy container
      #- /app/onlyoffice/DocumentServer/data/certs/onlyoffice.pem:/certs/cert1.pem
    restart: always
    networks:
     - onlyoffice
    ports:
      - '80:80'
      - '443:443'
#      - '5222:5222'
#      - '5280:5280'
      - '1936:1936'

networks:
  onlyoffice:
    driver: 'bridge'

volumes:
  communityserver_db:
  communityserver_data:
  communityserver_logs:
  documentserver_data:
  documentserver_logs:


do i miss configuration or what?
thank you for any help
im2x3m4u
 
Posts: 1
Joined: Fri Jul 21, 2017 10:15 am

Re: Bad Request (Invalid host)

Postby Maxim » Tue Sep 12, 2017 8:06 am

Hello!
It's hard to say.
Maxim
 
Posts: 1072
Joined: Tue Oct 11, 2016 2:34 pm


Return to Docker Version

Who is online

Users browsing this forum: No registered users and 1 guest