21 lines
435 B
Plaintext
21 lines
435 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
|
|
# root /var/www/html;
|
|
root /AriaNg;
|
|
|
|
# Add index.php to the list if you are using PHP
|
|
# index index.html index.htm index.nginx-debian.html;
|
|
index index.html;
|
|
|
|
server_name _;
|
|
|
|
location / {
|
|
auth_basic "Restricted Area";
|
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
}
|
|
|