summaryrefslogtreecommitdiff
path: root/nginx.txt
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-02-25 00:27:31 +0300
committerAndrew Dolgov <[email protected]>2017-02-25 00:27:31 +0300
commit885224d569d535b7e63ab301e4fd6cdc71c5c49b (patch)
tree30316ac1023460a53b9920e61f11f10fa87f56d0 /nginx.txt
initial
Diffstat (limited to 'nginx.txt')
-rw-r--r--nginx.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/nginx.txt b/nginx.txt
new file mode 100644
index 0000000..6584012
--- /dev/null
+++ b/nginx.txt
@@ -0,0 +1,9 @@
+ location /books {
+ auth_basic "bookz";
+ auth_basic_user_file /etc/apache2/users.shared;
+
+ rewrite /books/getbook/([0-9]+) /books/backend.php?op=download&id=$1 last;
+
+ include php_params;
+ }
+