aboutsummaryrefslogtreecommitdiff
path: root/debug/nginx.sh
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2022-02-05 14:32:35 -0600
committerthe lemons <citrons@mondecitronne.com>2022-02-05 14:34:10 -0600
commit0a80a22b8a9d624c83a6e63a0b853ba42e8c3bc0 (patch)
tree024722d4f0c823eb45e04c6a5466b599ce235dbb /debug/nginx.sh
it exists
Diffstat (limited to 'debug/nginx.sh')
-rwxr-xr-xdebug/nginx.sh6
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