Skip to content

Commit c356fee

Browse files
author
Vic Shóstak
committed
Update create_ssl and new_server docs
1 parent 7634c56 commit c356fee

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

docs/create_ssl.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ansible-playbook \
3737
- HTTP/2 (443 port) by default
3838
- Redirect from `www` to `non-www`
3939
- Redirect from `http` to `https`
40-
- Folder for website files (`/var/www/<DOMAIN>/html`)
40+
- Folder for the website files (`/var/www/<DOMAIN>/html`)
4141

4242
> 👍 If you need to change Nginx config for your website, feel free to edit a `/etc/nginx/sites-available/<DOMAIN>.conf` file.
4343
@@ -48,6 +48,12 @@ ansible-playbook \
4848

4949
> 😉 Hey, if you have tested other versions and/or OS, please write [issue](https://github.com/truewebartisans/useful-playbooks/issues/new) or send [pull request](https://github.com/truewebartisans/useful-playbooks/pulls).
5050
51+
### Troubleshooting
52+
53+
- If you will be get an error `Permission Denied` in Nginx logs (right here `/var/log/nginx/error.log`), when visit your website:
54+
- Check `chmod` (might be `0700`) and `chown` (might be `<USER>:<USER>`) of the website and `/var/www` folders.
55+
- Add parameter `user <USER>;` to the configuration file (`/etc/nginx/nginx.conf`) above `http {...}` and reload web server.
56+
5157
## 📺 Media
5258

5359
A list of articles and video lessons, where `create_ssl` playbook is used:

docs/new_server.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ ansible-playbook \
1818

1919
> 👌 Yes, actually you can specify the `<USER>` argument in your inventory file (`/etc/ansible/hosts`) and do not place it here. We use the `{{ ansible_user }}` variable in playbook to point to the remote user.
2020
21-
### Troubleshooting
22-
23-
- If you will be get an error `Permission Denied` in Nginx logs (right here `/var/log/nginx/error.log`), when visit your website:
24-
- Check `chmod` (might be `0700`) and `chown` (might be `<USER>:<USER>`) of the website folder.
25-
- Add parameter `user <USER>;` to the configuration file (`/etc/nginx/nginx.conf`) above `http {...}` and reload web server.
26-
2721
## Features
2822

2923
- Update & Upgrade distributive
@@ -43,6 +37,12 @@ ansible-playbook \
4337

4438
> 😉 Hey, if you have tested other versions and/or OS, please write [issue](https://github.com/truewebartisans/useful-playbooks/issues/new) or send [pull request](https://github.com/truewebartisans/useful-playbooks/pulls).
4539
40+
### Troubleshooting
41+
42+
- If you will be get an error `Permission Denied` in Nginx logs (right here `/var/log/nginx/error.log`), when visit your website:
43+
- Check `chmod` (might be `0700`) and `chown` (might be `<USER>:<USER>`) of the website folder.
44+
- Add parameter `user <USER>;` to the configuration file (`/etc/nginx/nginx.conf`) above `http {...}` and reload web server.
45+
4646
## 📺 Media
4747

4848
A list of articles and video lessons, where `new_server` playbook is used:

0 commit comments

Comments
 (0)