Comments (8)
+1 this.
However this does work per @thrdev (thank you!!)
traefik.frontend.rule=Host:subdomain.domain.com
from traefik.
Forgot to mention that going to psg.mtu.edu
returns a:
404 page not found
from traefik.
Hi! Thank you for reporting. Correction is comming soon :)
from traefik.
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.
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.
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.
The function getDomain
has never been called into the template since 1.0:
- https://github.com/containous/traefik/blob/v1.1/templates/docker.tmpl
- https://github.com/containous/traefik/blob/v1.2/templates/docker.tmpl
- https://github.com/containous/traefik/blob/v1.3/templates/docker.tmpl
- https://github.com/containous/traefik/blob/v1.4/templates/docker.tmpl
- https://github.com/containous/traefik/blob/v1.5/templates/docker.tmpl
The domain is used in the function used to create the frontend rule:
from traefik.
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)
- [documentation] - peerCertURI property default can't be a boolean HOT 1
- Traefik v2.10 documentation is shown by default instead of the latest version v2.11 HOT 1
- Add an ability to navigate on a dashboard from mobile device HOT 3
- Error from server (BadRequest): error when creating "ipallowlist.yml": Middleware in version "v1alpha1" cannot be handled as a Middleware: strict decoding error: unknown field "spec.ipAllowList" HOT 2
- When I set up IP whitelisting using IPWhitelist, Traefik obtains the client's IP as 127.0.0.1 instead of 192.168.5.10. How can I resolve this issue? HOT 1
- why Forwarded Headers client's IP is 127.0.0.1 not real ip (172.10.10.3) HOT 1
- Traefik Ingress Response Time Out HOT 1
- TLS certificate generation mix the CN and SANs HOT 1
- Keep URIs in server list
- Add shellrent as dnschallenge provider HOT 2
- Plugin file or directory could not be found in Pod HOT 2
- Create a cross namespace load balancing using IngressRouteTCP, where only the last service can be accessed HOT 4
- Only one node serve proper certificate HOT 3
- traefik_service_requests_total Inaccurate total count
- InfluxDB Metrics provider not working in v3.0 HOT 3
- Error with StripPrefix Middleware : `field not found, node: forceSlash` HOT 2
- Access log has many items with "0" HOT 2
- MySQL client cannot connect to database when using SNI routing with TLS HOT 1
- [v3] Support the traefik.http.*.tls.passthrough label again HOT 1
- providers.docker.defaultrule HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from traefik.