Skip to content

Instantly share code, notes, and snippets.

@humbertodosreis
Forked from jtreminio/gist:bcb78ccb97978a2cbd9e
Last active August 29, 2015 14:24
Show Gist options
  • Save humbertodosreis/72c70fd32a3f130135cf to your computer and use it in GitHub Desktop.
Save humbertodosreis/72c70fd32a3f130135cf to your computer and use it in GitHub Desktop.
# ************************************
# Vhost template in module puppetlabs-apache
# Managed by Puppet
# ************************************
<VirtualHost *:80>
ServerName awesome.dev
## Vhost docroot
DocumentRoot "/var/www/awesome/web"
## Directories, there should at least be a declaration for /var/www/awesome/web
<Directory "/var/www/awesome/web">
Options Indexes FollowSymlinks MultiViews
AllowOverride All
Require all granted
# directory custom fragment goes here
<FilesMatch "\.php$">
Require all granted
SetHandler proxy:fcgi://127.0.0.1:9000
# filesmatch custom fragment goes here
</FilesMatch>
</Directory>
## Logging
ErrorLog "/var/log/apache2/8ehoxq3ta1cj_error.log"
ServerSignature Off
CustomLog "/var/log/apache2/8ehoxq3ta1cj_access.log" combined
## Server aliases
ServerAlias www.awesome.dev
## SetEnv/SetEnvIf for environment variables
SetEnv APP_ENV dev
# vhost custom fragment goes here
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment