httpd -t httpd -S export PUBLIC_IP=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') curl -L http://$PUBLIC_IP/~dbetz curl -u dbetz:mypassword -L http://$PUBLIC_IP/stuff