diff options
Diffstat (limited to 'debug/nginx.sh')
-rwxr-xr-x | debug/nginx.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/debug/nginx.sh b/debug/nginx.sh new file mode 100755 index 0000000..a195aea --- /dev/null +++ b/debug/nginx.sh @@ -0,0 +1,6 @@ +#!/bin/sh +killall nginx fcgiwrap > /dev/null +rm -f fcgiwrap.socket +/usr/bin/env printf 'fastcgi_param SCRIPT_FILENAME "%q/../zzcxz.cgi"; fastcgi_pass "unix:%q/fcgiwrap.socket";' "$(pwd)" "$(pwd)" > /tmp/fastcgi_conf; +fcgiwrap -s unix:"$(pwd)"/fcgiwrap.socket & +nginx -p "$(pwd)" -c nginx.conf |