corz.org text viewer..
[currently viewing: /public/linux/usr/local/bin/rv.sh - raw]
#!/bin/bash
#
# corz.org 2000->
#
# this is a handy script to put in PATH, usually /usr/local/bin
# see "ra" for more details
#
# APACHE Virtual Hostesses!

# note. on Apache2 the old -S switch still works, for now.

echo " "
echo "Testing virtual hostess configuration.."
echo " "

if [ -e /usr/local/apache2/bin/apachectl ];then
    echo " "
    sudo /usr/local/apache2/bin/httpd -t -D DUMP_VHOSTS
    exit 0
fi
if [ -e /Library/Apache2/bin/apachectl ];then
    echo " "
    sudo /Library/Apache2/bin/httpd -t -D DUMP_VHOSTS
    exit 0
fi
if [ -e /opt/Apache2/bin/apachectl ];then
    echo " "
    sudo /opt/Apache2/bin/httpd -t -D DUMP_VHOSTS
    exit 0
fi
if [ -e /usr/sbin/apachectl ];then
    echo " "
    sudo /usr/sbin/httpd -t -D DUMP_VHOSTS
    exit 0
fi


# damn, I don't have an old apache 1 install around to check if you need
# apachectl for this or not. *You* could check if you need it!

echo " "
sudo /usr/local/apache/bin/httpd -S

Welcome to corz.org!

Since switching hosts (I hope you are alright, Ed! Wherever you are …) quite a few things seems to be wonky.

Juggling two energetic boys (of very different ages) on Coronavirus lockdown, I'm unlikely to have them all fixed any time soon. Mail me! to prioritise!