How to configure apache with existing vhost redirect/proxypass/AuthType rule? #328

Closed
opened 2025-12-29 01:22:48 +01:00 by adam · 2 comments
Owner

Originally created by @dragetd on GitHub (Apr 12, 2018).

Using the config as explained here: https://github.com/lukas2511/dehydrated/blob/master/docs/wellknown.md#apache-example-config

I am trying to set up the .well-known/acme-challenge to be available under every vhost. But one vhost has for example 'Redirect permanent / https://foo.bar/cms.

This config forces a redirect and breaks the config.

Then there is
AuthType Basic… which also breaks the setting. :(

The apache config explains how the later rules take predesence https://httpd.apache.org/docs/2.4/sections.html#merge-examples

Does anyone know how to get around this? I could write excluding-rules and adjust every vhost config. But this is anything but pretty. :(

Originally created by @dragetd on GitHub (Apr 12, 2018). Using the config as explained here: https://github.com/lukas2511/dehydrated/blob/master/docs/wellknown.md#apache-example-config I am trying to set up the .well-known/acme-challenge to be available under every vhost. But one vhost has for example 'Redirect permanent / https://foo.bar/cms. This config forces a redirect and breaks the config. Then there is <Location> AuthType Basic… </Location> which also breaks the setting. :( The apache config explains how the later rules take predesence https://httpd.apache.org/docs/2.4/sections.html#merge-examples Does anyone know how to get around this? I could write excluding-rules and adjust every vhost config. But this is anything but pretty. :(
adam closed this issue 2025-12-29 01:22:49 +01:00
Author
Owner

@lukas2511 commented on GitHub (Apr 13, 2018):

Sorry but this is not a dehydrated bug-report so I'm closing this. Your best bet would be to look around on the Let's Encrypt community forums, other clients require very similar configuration so you might find some help over there.

@lukas2511 commented on GitHub (Apr 13, 2018): Sorry but this is not a dehydrated bug-report so I'm closing this. Your best bet would be to look around on the Let's Encrypt community forums, other clients require very similar configuration so you might find some help over there.
Author
Owner

@dragetd commented on GitHub (Apr 14, 2018):

True, but if there was some apache config option that would prevent it from being overwritten, it would be a great addition to the docs. :-) But I'll see what I can find out.

@dragetd commented on GitHub (Apr 14, 2018): True, but if there was some apache config option that would prevent it from being overwritten, it would be a great addition to the docs. :-) But I'll see what I can find out.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#328