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