Skip to content

Sub-directory hosting instructions break certbot webroot certification challenge #339

Closed
@sjlongland

Description

https://github.com/Automattic/wordpress-activitypub#what-if-you-are-running-your-blog-in-a-subdirectory

The example code given here breaks certbot when executing the web root challenge, as .well-known/acme-challenge gets wrongly redirected to the blog instead of left alone.

Looking through the source code, it would seem this is more correct:

RedirectMatch "^\/\.well-known/(webfinger|nodeinfo|x-nodeinfo2)(.*)$" "\/blog\/\.well-known$1"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions