Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ************************************
- # Vhost template in module puppetlabs-apache
- # Managed by Puppet
- # ************************************
- <VirtualHost *:80>
- ServerName api.dev
- ## Vhost docroot
- DocumentRoot "/var/www/limeAPI/public"
- ## Directories, there should at least be a declaration for /var/www/awesome/web
- <Directory "/var/www/limeAPI/public">
- Options Indexes FollowSymlinks MultiViews
- AllowOverride All
- Require all granted
- DirectoryIndex index.php app.dev
- </Directory>
- <FilesMatch "(app_dev|config)\.php$">
- Require all granted
- SetHandler proxy:fcgi://127.0.0.1:9000
- SetEnv APP_ENV dev
- </FilesMatch>
- <FilesMatch "app\.php$">
- Require all granted
- SetHandler proxy:fcgi://127.0.0.1:9000
- SetEnv APP_ENV prod
- </FilesMatch>
- <FilesMatch "\.php$">
- Require all granted
- SetHandler proxy:fcgi://127.0.0.1:9000
- </FilesMatch>
- ## Logging
- ErrorLog "/var/log/apache2/api_error.log"
- ServerSignature Off
- CustomLog "/var/log/apache2/api_access.log" combined
- ## Server aliases
- ServerAlias www.limeAPI.dev
- # SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
- ## Custom fragment
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement