我正在使用nginx並使用golang's fcgi module運行fcgi協議。我怎樣才能讓nginx自動重新生成我的fcgi進程?nginx自動respawn fastcgi進程?
我的nginx.conf看起來
server { listen 80; server_name 127.0.0.1; root /home/jdk2588/testdir; index index.html; location/{ access_log /home/jdk2588/KARMA/nginx/access.log; proxy_pass_header Server; proxy_set_header Host $http_host; proxy_redirect off; proxy_set_header X-Real-Ip $remote_addr; proxy_set_header X-Scheme $scheme; } location ~ /goapp { include fastcgi.conf; fastcgi_pass 127.0.0.1:9001; } }