#!/bin/sh # # echo Content-type:text/html echo FULL_PATH="$DOCUMENT_ROOT""$PATH_INFO" ROOT_FILE="$DOCUMENT_ROOT""/home/home.htm" if [ -f "$ROOT_FILE" ]; then bunzip2 -t "$FULL_PATH" 1> /dev/null 2>&1 rc2=$? if [ "$rc2" = "0" ]; then bunzip2 --stdout "$FULL_PATH" else gunzip -l "$FULL_PATH" 1> /dev/null 2>&1 rc=$? if [ "$rc" = "0" ]; then gunzip --stdout "$FULL_PATH" else cat "$FULL_PATH" fi fi else echo "
" echo "