{% raw %}
apache2-config:
  file.blockreplace:
      - name: /etc/apache2/apache2.conf
      - append_if_not_found: True
      - content: |
                   ServerName postfixadmin
                   LogFormat "%{%Y-%m-%d %H:%M:%S}t %v:%p %h %l %u \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
                   LogFormat "%{%Y-%m-%d %H:%M:%S}t %h %l %u \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
                   LogFormat "%{%Y-%m-%d %H:%M:%S}t %h %l %u \"%r\" %>s %O" common

apache2-config-site:
  file.line:
      - name: /etc/apache2/sites-available/000-default.conf
      - match: DocumentRoot .*
      - mode: replace
      - content: DocumentRoot /var/www/html/public
{% endraw %}
