summaryrefslogtreecommitdiff
path: root/blob/nginx.conf
diff options
context:
space:
mode:
authorroot2014-09-13 22:26:58 +0200
committerroot2014-09-13 22:26:58 +0200
commitc5639ee890215e4e8e0f544821ea8d285ca58eb8 (patch)
tree29f685943c61c4d7ec0e376e485686e985b97065 /blob/nginx.conf
parentf8c60cae423fc78ed21d17a9217716ccc1e6dab1 (diff)
downloadvideo-dl-c5639ee890215e4e8e0f544821ea8d285ca58eb8.tar.gz
init
Diffstat (limited to 'blob/nginx.conf')
-rw-r--r--blob/nginx.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/blob/nginx.conf b/blob/nginx.conf
new file mode 100644
index 0000000..902c076
--- /dev/null
+++ b/blob/nginx.conf
@@ -0,0 +1,19 @@
+
+#include this file in your nginx config
+
+ location ~* ^/(db)|(blob)(tmp)/ {
+ return 404;
+ }
+
+ error_page 404 /404.php;
+
+ rewrite ^/help$ /help.php;
+ rewrite ^/faq$ /faq.php;
+ rewrite ^/about$ /faq.php;
+ rewrite ^/random$ /random.php;
+ rewrite ^/404$ /404.php;
+ rewrite ^/stream/(.*)$ /stream.php?vid=$1;
+ rewrite ^/video/(.*)$ /video.php?vid=$1;
+ rewrite ^/video/?$ /video.php?vid=;
+ rewrite ^/ddl/(.*)$ /download.php?vid=$1&ddl=1;
+ rewrite ^/audio/(.*)$ /download.php?vid=$1&xtau=1;