Skip to content

Instantly share code, notes, and snippets.

@drscream
Created July 24, 2014 13:26
Show Gist options
  • Save drscream/14d67bce1253c250966f to your computer and use it in GitHub Desktop.
Save drscream/14d67bce1253c250966f to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName {{ servername }}
# directory
DocumentRoot "{{ documentroot }}"
<Directory "{{ documentroot }}">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# php-fpm
ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/tmp/php.sock|fcgi://localhost/{{ documentroot }}
# logging
ErrorLog "/srv/log/httpd/{{ servername }}_error.log"
CustomLog "/srv/log/httpd/{{ servername }}_access.log" common
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment