home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add IRClogs password protection.
[config]
/
all_new_2018
/
linkable_etc_files
/
web
/
etc
/
nginx
/
nginx.conf
diff --git
a/all_new_2018/linkable_etc_files/web/etc/nginx/nginx.conf
b/all_new_2018/linkable_etc_files/web/etc/nginx/nginx.conf
index fa1f106e6bcb8209a685b3fcb4025183fd12813c..411aa4b8f84d52a70fecdfa376d067984def9c23 100644
(file)
--- a/
all_new_2018/linkable_etc_files/web/etc/nginx/nginx.conf
+++ b/
all_new_2018/linkable_etc_files/web/etc/nginx/nginx.conf
@@
-64,7
+64,13
@@
http {
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
- location /irclogs/plomlompomtest/ {
+ location /irclogs/([^/]+)/ {
+ auth_basic "$1 logs";
+ auth_basic_user_file /var/www/irclogs_pw/$1;
+ autoindex on;
+ }
+
+ location /irclogs/ {
autoindex on;
}
}