diff --git a/nginx.conf b/nginx.conf
index c934895..2bfa54c 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -19,13 +19,14 @@ http {
charset utf-8;
access_log /srv/http/u/greptweet.access.log;
error_log /srv/http/u/greptweet.error.log;
+ error_page 404 403 =303 /404.php;
location / {
index index.php index.html;
rewrite ^/f/(.*)$ /create.php?id=$1 last;
}
- location ~ \.(svg|txt)$ {
+ location ~ \.(txt)$ {
add_header Content-Encoding gzip;
gzip off;
}
diff --git a/www/404.php b/www/404.php
new file mode 100644
index 0000000..20f8caa
--- /dev/null
+++ b/www/404.php
@@ -0,0 +1,11 @@
+
+
+