replace rtrim with str_replace to remove trailing ;
add initial http block statement parsing and some main block config