diff options
| -rw-r--r-- | out/.gitkeep | 0 | ||||
| -rw-r--r-- | up.chud.cyou | 11 |
2 files changed, 8 insertions, 3 deletions
diff --git a/out/.gitkeep b/out/.gitkeep deleted file mode 100644 index e69de29..0000000 --- a/out/.gitkeep +++ /dev/null diff --git a/up.chud.cyou b/up.chud.cyou index 2352a13..1f9cce3 100644 --- a/up.chud.cyou +++ b/up.chud.cyou @@ -24,9 +24,8 @@ server { client_max_body_size 100m; - location ^~ /out/ { - default_type text/plain; - autoindex on; + location = /style.css { + try_files $uri =404; } location = /upchud.tcl { @@ -37,6 +36,11 @@ server { fastcgi_param SCRIPT_FILENAME /var/www/up.chud.cyou/upchud.tcl; } + location ^~ /out/ { + default_type text/plain; + autoindex on; + } + set $send 0; if ($request_method = PUT) { set $send 1; @@ -51,5 +55,6 @@ server { rewrite ^/$ /index.html last; rewrite ^/upchud.tcl$ /upchud.tcl last; + rewrite ^/style.css$ /style.css last; rewrite ^/(.+)$ /out/$1; } |
