Run nginx as a non-root user
This commit is contained in:
parent
f7283b6177
commit
1a28d7882d
2 changed files with 16 additions and 6 deletions
|
|
@ -383,8 +383,8 @@ map $uri $new_uri {
|
|||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
listen 8080;
|
||||
listen [::]:8080;
|
||||
server_name www.oliverdavies.uk oliverdavies.uk _;
|
||||
|
||||
if ($host != $server_name) {
|
||||
|
|
@ -392,7 +392,7 @@ server {
|
|||
}
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
root /code;
|
||||
index index.html index.htm;
|
||||
error_page 404 /404.html;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue