Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6445

Puppet custom Apache config - Assistance

$
0
0

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>

Viewing all articles
Browse latest Browse all 6445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>