summaryrefslogtreecommitdiff
path: root/nginx.txt
diff options
context:
space:
mode:
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;
+ }
+