diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-12-10 12:42:55 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-12-10 12:42:55 +0800 |
commit | 8442e6126f13a98eb010e5495793807ffabdc0ca (patch) | |
tree | d3da4f59142e0fdd63301b8a15354787dcefa52c | |
parent | d2a1d8a0049f36a5cf789a6568a178be8d11e3a4 (diff) |
update
-rw-r--r-- | nginx/sites-available/vps | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nginx/sites-available/vps b/nginx/sites-available/vps index dff1d7b..9953def 100644 --- a/nginx/sites-available/vps +++ b/nginx/sites-available/vps | |||
@@ -55,12 +55,14 @@ server { | |||
55 | alias /srv/cgi/; | 55 | alias /srv/cgi/; |
56 | } | 56 | } |
57 | 57 | ||
58 | location ^~ /cgi/(.+) { | 58 | location ~ /cgi/(.*) { |
59 | gzip off; | 59 | gzip off; |
60 | 60 | ||
61 | include /etc/nginx/fastcgi_params; | 61 | include /etc/nginx/fastcgi_params; |
62 | fastcgi_pass unix:/var/run/fcgiwrap.sock; | 62 | # fastcgi_pass unix:/var/run/fcgiwrap.sock; |
63 | fastcgi_pass unix:/srv/cgi/fastcgi.sock; | ||
63 | fastcgi_param SCRIPT_FILENAME /srv/cgi/$1; | 64 | fastcgi_param SCRIPT_FILENAME /srv/cgi/$1; |
65 | error_log /tmp/cgi info; | ||
64 | } | 66 | } |
65 | 67 | ||
66 | location ~ [^/]$ { | 68 | location ~ [^/]$ { |