You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: turbostack_configuration/nginx_configation.md
+37Lines changed: 37 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,3 +3,40 @@ order: 70
3
3
---
4
4
5
5
# Nginx configuration
6
+
7
+
## Enable Basic Authentication on your website for NGINX
8
+
9
+
It's relatively easy to configure Basic Authentication using a .htpasswd file (similar to a basic auth block in Apache .htaccess) in NGINX on TurboStack. This way you can block access to your development version of the website for non-authenticated users. This guide assumes you know what Basic Authentication is.
10
+
11
+
## How-to
12
+
First locate your nginx main configuration file from the home directory of your user:
13
+
14
+
```
15
+
vim nginx/50main.conf
16
+
```
17
+
18
+
Then, uncomment the following lines to activate Basic Authentication:
OPTIONAL: You can add whitelisting based on IP-addresses for connections that will not need to identify using the Basic Auth service, simply add "allow ":
0 commit comments