aboutsummaryrefslogtreecommitdiff
path: root/up.chud.cyou
diff options
context:
space:
mode:
Diffstat (limited to 'up.chud.cyou')
-rw-r--r--up.chud.cyou11
1 files changed, 8 insertions, 3 deletions
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;
}