made ssl check compatible with nginx & php5-fcgi