mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-25 06:53:00 +00:00
Enhance documentation for web server configuration
This commit is contained in:
parent
0cd1032a3b
commit
47f9af242a
1 changed files with 3 additions and 2 deletions
|
@ -82,7 +82,8 @@ You can edit other settings here too. See `settings.default.toml` for the settin
|
|||
In Nginx:
|
||||
|
||||
```nginx
|
||||
# put this inside the "server { }" block:
|
||||
# Put this inside the "server { }" website definition block:
|
||||
# The "server { }" block can usually be found somewhere in /etc/nginx on Linux machines, and may have a "server_name" directive specifying the domain name it's serving if multiple websites are configured.
|
||||
location ^~ /path/to/data/directory {
|
||||
deny all;
|
||||
}
|
||||
|
@ -91,7 +92,7 @@ location ^~ /path/to/data/directory {
|
|||
In Apache:
|
||||
|
||||
```htaccess
|
||||
# Create a file with this content inside the data/ directory
|
||||
# Create a file called ".htaccess" with this content inside the data/ directory
|
||||
Require all denied
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue