Hello,
im currently trying to add a basic auth in from of my wordpress site. Wordpress redirects /wp-admin to /wp-login.php by default.
This is my config:
- traefik.http.routers.wp_admin.rule=Host(`hostname.tld`) && Path(`/wp-login.php`)
- traefik.http.routers.wp_admin.middlewares=auth
- traefik.http.middlewares.auth.basicAuth.users=user:$$apr1$$yxxxxxxx
(censored some information obviously)
so what am i doing wrong here? If im replacing Path(/wp-login.php
) with Path(/wp-admin
) it works fine but just not for a single file.
Is this a bug? Or is it not intended to be used like that?
Best