Skip to content

traefik部署访问失败 #59

@hehe9011

Description

@hehe9011

部署环境: Ubuntu 22.04.3 LTS

使用docker compose 部署:

version: '3.9'
services:
speedtest-x:
image: badapple9/speedtest-x
container_name: speedtest
restart: unless-stopped
tty: true
stdin_open: true
networks:
- traefik
ports:
- '9011:80'
labels:
traefik.enable: true
traefik.docker.network: traefik
traefik.http.routers.speedtest.rule: Host(speedtest.*.cn)
traefik.http.routers.speedtest.tls: true
traefik.http.routers.speedtest.tls.certresolver: myresolver
traefik.http.services.speedtest.loadbalancer.server.port: 9011

networks:
traefik:
external: true

无法访问,显示404 page not found, docker log如下:

  • cp /speedtest/speedtest.js /speedtest/speedtest_worker.js /var/www/html/
  • cp /speedtest/chart.html /speedtest/index.html /speedtest/results.html /var/www/html/
  • cp -r /speedtest/backend/ /var/www/html/backend
  • cp -r /speedtest/chartjs/ /var/www/html/chartjs
  • ln -snf /var/www/html/backend/speedlogs /speedlogs
  • chown -R www-data /var/www/html/backend /var/www/html/chart.html /var/www/html/chartjs /var/www/html/index.html /var/www/html/results.html /var/www/html/speedtest.js /var/www/html/speedtest_worker.js
  • '[' 80 '!=' 80 ']'
  • '[' 100 '!=' 100 ']'
  • '[' ip.sb '!=' ip.sb ']'
  • '[' false '!=' false ']'
  • echo 'Done, Starting APACHE'
    Done, Starting APACHE
  • apache2-foreground
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.26.0.7. Set the 'ServerName' directive globally to suppress this message
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.26.0.7. Set the 'ServerName' directive globally to suppress this message
    [Sat Dec 16 11:30:24.954697 2023] [mpm_prefork:notice] [pid 13] AH00163: Apache/2.4.54 (Debian) PHP/7.4.33 configured -- resuming normal operations
    [Sat Dec 16 11:30:24.954752 2023] [core:notice] [pid 13] AH00094: Command line: 'apache2 -D FOREGROUND'

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