refactored nginx.conf
This commit is contained in:
@@ -141,8 +141,10 @@ if ! command -v spawn-fcgi &> /dev/null; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Start FastCGI application with stderr logging using wrapper
|
||||
spawn-fcgi -s "$SOCKET_PATH" -M 666 -u "$USER" -g "$USER" -f "./fcgi-wrapper.sh" -P "$PID_FILE" 2>logs/spawn-fcgi.log
|
||||
# Start FastCGI application with stderr logging (no wrapper needed)
|
||||
# Create stderr log with timestamp
|
||||
echo "FastCGI starting at $(date)" > logs/fcgi-stderr.log
|
||||
spawn-fcgi -s "$SOCKET_PATH" -M 666 -u "$USER" -g "$USER" -f "$FCGI_BINARY" -P "$PID_FILE" 2>>logs/fcgi-stderr.log
|
||||
|
||||
if [ $? -eq 0 ] && [ -f "$PID_FILE" ]; then
|
||||
PID=$(cat "$PID_FILE")
|
||||
|
||||
Reference in New Issue
Block a user