Giter Club home page Giter Club logo

Comments (8)

malkir avatar malkir commented on May 11, 2024 1

+1 this.

However this does work per @thrdev (thank you!!)
traefik.frontend.rule=Host:subdomain.domain.com

from traefik.

InAnimaTe avatar InAnimaTe commented on May 11, 2024

Forgot to mention that going to psg.mtu.edu returns a:

404 page not found

from traefik.

emilevauge avatar emilevauge commented on May 11, 2024

Hi! Thank you for reporting. Correction is comming soon :)

from traefik.

emilevauge avatar emilevauge commented on May 11, 2024

Sorry, I read too quickly. traefik.domain is not yet existing, so that's not a bug (the doc was a bit futuristic ^^), but I can create this label.

from traefik.

InAnimaTe avatar InAnimaTe commented on May 11, 2024

Ahh ok, yeah I saw the Can be overridden by setting the "traefik.domain" label on a container. and tried to use it figuring it would just work.

But yeah, I would definitely use this feature (and actually need it for the present work I'm doing) as sometimes people need to serve multiple domains from a single host (or cluster, etc..)

from traefik.

zacbre avatar zacbre commented on May 11, 2024

I think this should be re-opened. I cannot get traefik.domain to work anymore. I was looking through your docker template ( https://github.com/containous/traefik/blob/master/templates/docker.tmpl ) and noticed you aren't calling the "getDomain" function from the docker provider function map. Would this be the reason that this is happening or am I mistaken?

from traefik.

ldez avatar ldez commented on May 11, 2024

The function getDomain has never been called into the template since 1.0:

The domain is used in the function used to create the frontend rule:

https://github.com/containous/traefik/blob/21b8b2deb552e01d163e12ba2e587786573e7962/provider/docker/config.go#L169-L183

from traefik.

zacbre avatar zacbre commented on May 11, 2024

Interesting. I'm not sure why the "traefik.domain" label wouldn't be working then...
I know this isn't a place for support...but I do indeed have the proper labels and configuration setup as per the documentation. Any idea why this wouldn't be overriding the default domain set in my config? I'm using traefik through docker (the :latest tag).

UPDATE:
I got it to work by manually setting a frontend label rule.

traefik.frontend.rule=Host:subdomain.domain.com

from traefik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.