Merge pull request #70 from silksow/add-nginx-subdirectory-in-readme
Update README.md
This commit is contained in:
commit
4b7fa7196f
2 changed files with 17 additions and 17 deletions
21
README.md
21
README.md
|
@ -60,16 +60,6 @@ To implement:
|
||||||
|
|
||||||
### What if you are running your blog in a subdirectory? ###
|
### 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.
|
In order for WebFinger to work, it must be mapped to the root directory of the URL on which your blog resides.
|
||||||
|
|
||||||
**Apache**
|
**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.
|
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 ##
|
## Changelog ##
|
||||||
|
|
||||||
Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub).
|
Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub).
|
||||||
|
|
13
readme.txt
13
readme.txt
|
@ -68,15 +68,14 @@ Add the following to the .htaccess file in the root directory:
|
||||||
`RedirectMatch "^\/\.well-known(.*)$" "\/blog\/\.well-known$1"`
|
`RedirectMatch "^\/\.well-known(.*)$" "\/blog\/\.well-known$1"`
|
||||||
Where 'blog' is the path to the subdirectory at which your blog resides.
|
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**
|
`location ~* /.well-known {
|
||||||
|
allow all;
|
||||||
Add the following to the .htaccess file in the root directory:
|
try_files $uri $uri/ /blog/?$args;
|
||||||
|
}`
|
||||||
RedirectMatch "^\/\.well-known(.*)$" "\/blog\/\.well-known$1"
|
|
||||||
|
|
||||||
Where 'blog' is the path to the subdirectory at which your blog resides.
|
Where 'blog' is the path to the subdirectory at which your blog resides.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue