I have inherited a default Apache2 Puppet 6 configuration on a Linux machine. I am looking to implement the following /etc/apache/sites-enabled/01-production.conf via Puppet code but I am struggling to translate it into the Puppet language.
Also Apache modules rewrites and headers need to be enabled.
Is this possible? Hoping someone can assist, thank you.
<VirtualHost 10.105.5.55:80> ServerName 01Production ServerAlias instance.sub.domain.net DocumentRoot /home/apache2/01Production/wwwroot/ ServerAdmin webmaster@sub.domain.net ## Log files: CustomLog /var/log/apache2/access-01Production.log combined ErrorLog /var/log/apache2/error-01Production.log LogLevel warn ## Jk Tomcat redirection JkMount /*.jsp jvm1 #ProxyPass /redirection-01/ws ws://localhost:1088/redirection-01/ws #ProxyPassReverse /redirection-01/ws ws://localhost:1088/redirection-01/ws #Enable X-XSS-Protection Header set X-XSS-Protection "1; mode=block" # Deny direct access to WEB-INF<LocationMatch ".*WEB-INF.*"> #AllowOverride None deny from all</LocationMatch><Location /> Options FollowSymLinks MultiViews #AllowOverride None Order allow,deny allow from all</Location>