From c149872a2ffbadc3dca4fd7d69e58e4789b66e7d Mon Sep 17 00:00:00 2001 From: Silk Sow <30702576+silksow@users.noreply.github.com> Date: Fri, 11 Oct 2019 11:27:36 -0700 Subject: [PATCH 1/2] Update README.md Remove duplicate subdirectory instructions Add Nginx instructions for subdirectory --- README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d6d427b..c648d01 100644 --- a/README.md +++ b/README.md @@ -60,16 +60,6 @@ To implement: ### What if you are running your blog in a subdirectory? ### -In order for webfinger to work, it must be mapped to the root directory of the URL on which your blog resides. - -**Apache** - -Add the following to the .htaccess file in the root directory: -`RedirectMatch "^\/\.well-known(.*)$" "\/blog\/\.well-known$1"` -Where 'blog' is the path to the subdirectory at which your blog resides. - -### What if you are running your blog in a subdirectory? ### - In order for WebFinger to work, it must be mapped to the root directory of the URL on which your blog resides. **Apache** @@ -80,6 +70,17 @@ Add the following to the .htaccess file in the root directory: Where 'blog' is the path to the subdirectory at which your blog resides. +**Nginx** + +Add the following to the site.conf in sites-available: + + location ~* /.well-known { + allow all; + try_files $uri $uri/ /blog/?$args; + } + +Where 'blog' is the path to the subdirectory at which your blog resides. + ## Changelog ## Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub). From 4413db850d81d6f3ef1e1fe97e4b10049aa59ba6 Mon Sep 17 00:00:00 2001 From: Silk Sow <30702576+silksow@users.noreply.github.com> Date: Mon, 18 Nov 2019 09:54:12 -0800 Subject: [PATCH 2/2] Update readme.txt README.md is autogenerated --- readme.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/readme.txt b/readme.txt index 51b7c32..1f6aaa7 100644 --- a/readme.txt +++ b/readme.txt @@ -68,15 +68,14 @@ Add the following to the .htaccess file in the root directory: `RedirectMatch "^\/\.well-known(.*)$" "\/blog\/\.well-known$1"` Where 'blog' is the path to the subdirectory at which your blog resides. -= What if you are running your blog in a subdirectory? = +**Nginx** -In order for WebFinger to work, it must be mapped to the root directory of the URL on which your blog resides. +Add the following to the site.conf in sites-available: -**Apache** - -Add the following to the .htaccess file in the root directory: - - RedirectMatch "^\/\.well-known(.*)$" "\/blog\/\.well-known$1" + `location ~* /.well-known { + allow all; + try_files $uri $uri/ /blog/?$args; + }` Where 'blog' is the path to the subdirectory at which your blog resides.