From 885224d569d535b7e63ab301e4fd6cdc71c5c49b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 25 Feb 2017 00:27:31 +0300 Subject: initial --- nginx.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 nginx.txt (limited to 'nginx.txt') 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; + } + -- cgit v1.2.3