diff options
author | Andrew Dolgov <[email protected]> | 2017-02-25 00:27:31 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-02-25 00:27:31 +0300 |
commit | 885224d569d535b7e63ab301e4fd6cdc71c5c49b (patch) | |
tree | 30316ac1023460a53b9920e61f11f10fa87f56d0 /nginx.txt |
initial
Diffstat (limited to 'nginx.txt')
-rw-r--r-- | nginx.txt | 9 |
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; + } + |