Created
January 21, 2016 21:26
-
-
Save ctorgalson/9ce031b2c50bb2eebd59 to your computer and use it in GitHub Desktop.
Adds `extra_parameters` to Apache VirtualHosts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/example.config.yml b/example.config.yml | |
index c1ffbb7..1559c62 100644 | |
--- a/example.config.yml | |
+++ b/example.config.yml | |
@@ -75,7 +75,9 @@ configure_local_drush_aliases: true | |
# Apache VirtualHosts. Add one for each site you are running inside the VM. For | |
# multisite deployments, you can point multiple servernames at one documentroot. | |
-# View the geerlingguy.apache Ansible Role README for more options. | |
+# Note that Apache VirtualHosts requiring PHP must include extra_parameters | |
+# including ProxyPassMatch as shown below. View the geerlingguy.apache Ansible | |
+# Role README for more options. | |
apache_vhosts: | |
- servername: "{{ drupal_domain }}" | |
documentroot: "{{ drupal_core_path }}" | |
@@ -84,12 +86,18 @@ apache_vhosts: | |
- servername: "adminer.drupalvm.dev" | |
documentroot: "/opt/adminer" | |
+ extra_parameters: | | |
+ ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/opt/adminer" | |
- servername: "xhprof.drupalvm.dev" | |
documentroot: "/usr/share/php/xhprof_html" | |
+ extra_parameters: | | |
+ ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/usr/share/php/xhprof_html" | |
- servername: "pimpmylog.drupalvm.dev" | |
documentroot: "/usr/share/php/pimpmylog" | |
+ extra_parameters: | | |
+ ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/usr/share/php/pimpmylog" | |
apache_remove_default_vhost: true | |
apache_mods_enabled: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment