Fix cert sanitized and add some options

* Remove trailing whitespaces
* Added options to vhost:
  format_log
  location_custom_cfg_prepend
  location_custom_cfg_append
* Fixed cert name sanitized