User`s guide
Protogate Freeway Security Features User’s Guide (SFUG) Appendix A. Sample rc.startsra File
echo "ServerTokens Prod" >> /usr/local/etc/apache22/httpd.conf
if [ -f /read_only_mounts ]; then
mount -u -o ro /usr 2>/dev/null
fi
fi
# For security:
# Change any "ServerSignature On" line in Apache config to
# "ServerSignature Off"
export AP_SCMD2="‘sed -e \"/^[Ss][Ee][Rr][Vv][Ee][Rr][Ss][Ii][Gg][Nn][Aa][Tt][Uu][Rr][Ee]
*
[Oo][Nn]/!d\" \
/usr/local/etc/apache22/httpd.conf |sed -e \"2,//d\"‘"
if [ ! "${AP_SCMD2}X" = "X" ]; then
if [ -f /read_only_mounts ]; then
mount -u -o rw /usr 2>/dev/null
fi
mv /usr/local/etc/apache22/httpd.conf /usr/local/etc/apache22/httpd.conf.prev
sed -e \
"s/^[Ss][Ee][Rr][Vv][Ee][Rr][Ss][Ii][Gg][Nn][Aa][Tt][Uu][Rr][Ee]
*
[Oo][Nn]/ServerSignature Off/g" \
/usr/local/etc/apache22/httpd.conf.prev > /usr/local/etc/apache22/httpd.conf
if [ -f /read_only_mounts ]; then
mount -u -o ro /usr 2>/dev/null
fi
fi
# For security:
# Add "TraceEnable Off" line to Apache config, if not already there
export AP_SCMD3="‘sed -e \"/^[Tt][Rr][Aa][Cc][Ee][Ee][Nn][Aa][Bb][Ll][Ee]
*
[Oo][Ff][Ff]/!d\" \
/usr/local/etc/apache22/httpd.conf |sed -e \"2,//d\"‘"
if [ "${AP_SCMD3}X" = "X" ]; then
if [ -f /read_only_mounts ]; then
mount -u -o rw /usr 2>/dev/null
fi
echo "TraceEnable Off" >> /usr/local/etc/apache22/httpd.conf
if [ -f /read_only_mounts ]; then
mount -u -o ro /usr 2>/dev/null
fi
fi
if [ ! -f /sbin/shutdown.wheel ]; then
if [ -f /read_only_mounts ]; then
mount -u -o rw / 2>/dev/null
fi
cp -p /sbin/shutdown /sbin/shutdown.wheel
chgrp wheel /sbin/shutdown.wheel
if [ -f /read_only_mounts ]; then
mount -u -o ro / 2>/dev/null
fi
fi
export LOG_DIR="/var/log"
touch ${LOG_DIR}/all.log
touch ${LOG_DIR}/sra_err.log
touch ${LOG_DIR}/sra_notice.log
touch ${LOG_DIR}/sra_all.log
touch ${LOG_DIR}/sraweb_err.log
touch ${LOG_DIR}/sraweb_all.log
Protogate DC-908-3004A 31