Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.23 KB | None | 0 0
  1. # ************************************
  2. # Vhost template in module puppetlabs-apache
  3. # Managed by Puppet
  4. # ************************************
  5.  
  6. <VirtualHost *:80>
  7.   ServerName api.dev
  8.  
  9.   ## Vhost docroot
  10.   DocumentRoot "/var/www/limeAPI/public"
  11.  
  12.   ## Directories, there should at least be a declaration for /var/www/awesome/web
  13.  
  14.   <Directory "/var/www/limeAPI/public">
  15.     Options Indexes FollowSymlinks MultiViews
  16.     AllowOverride All
  17.     Require all granted
  18.     DirectoryIndex index.php app.dev
  19.    
  20.   </Directory>
  21.  
  22.   <FilesMatch "(app_dev|config)\.php$">
  23.     Require all granted
  24.     SetHandler proxy:fcgi://127.0.0.1:9000
  25.     SetEnv APP_ENV dev
  26.    
  27.   </FilesMatch>
  28.  
  29.   <FilesMatch "app\.php$">
  30.     Require all granted
  31.     SetHandler proxy:fcgi://127.0.0.1:9000
  32.     SetEnv APP_ENV prod
  33.    
  34.   </FilesMatch>
  35.  
  36.   <FilesMatch "\.php$">
  37.     Require all granted
  38.     SetHandler proxy:fcgi://127.0.0.1:9000
  39.    
  40.   </FilesMatch>
  41.  
  42.   ## Logging
  43.   ErrorLog "/var/log/apache2/api_error.log"
  44.   ServerSignature Off
  45.   CustomLog "/var/log/apache2/api_access.log" combined
  46.  
  47.   ## Server aliases
  48.  ServerAlias www.limeAPI.dev
  49.  # SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
  50.  
  51.   ## Custom fragment
  52.  
  53. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement