haproxy template fix
media dir permissions fix