Skip to content

Instantly share code, notes, and snippets.

@jtreminio
Last active February 2, 2017 18:27
Show Gist options
  • Save jtreminio/bcb78ccb97978a2cbd9e to your computer and use it in GitHub Desktop.
Save jtreminio/bcb78ccb97978a2cbd9e to your computer and use it in GitHub Desktop.
Sample PuPHPet Apache vhost conf file
# ************************************
# 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
DirectoryIndex app.php
# directory custom fragment goes here
</Directory>
<FilesMatch "(app_dev|config)\.php$">
Require all granted
SetHandler proxy:fcgi://127.0.0.1:9000
SetEnv APP_ENV dev
# filesmatch custom fragment goes here
</FilesMatch>
<FilesMatch "(app)\.php$">
Require all granted
SetHandler proxy:fcgi://127.0.0.1:9000
SetEnv APP_ENV prod
# filesmatch custom fragment goes here
</FilesMatch>
## Logging
ErrorLog "/var/log/apache2/av_2tzq569hsgad_error.log"
ServerSignature Off
CustomLog "/var/log/apache2/av_2tzq569hsgad_access.log" combined
## Server aliases
ServerAlias www.awesome.dev
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
# vhost custom fragment goes here
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment