Created
August 26, 2022 02:33
-
-
Save craffate/cce781cd2f5f23ae9189f49c722cceef to your computer and use it in GitHub Desktop.
FastCGI server status script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo 'Content-Type: text/plain' | |
echo '' | |
echo -n "Kernel:\t\t\t"; uname -sr | |
echo -n "Uptime:\t\t\t"; uptime -p | |
echo "Gateway interface:\t$GATEWAY_INTERFACE\nServer software:\t$SERVER_SOFTWARE\nServer protocol:\t$SERVER_PROTOCOL\nServer address:\t\t$SERVER_ADDR\nServer port:\t\t$SERVER_PORT\nServer name:\t\t$SERVER_NAME" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment