Skip to content

Instantly share code, notes, and snippets.

@petersuhm
Created April 5, 2015 12:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save petersuhm/872a48039fadaf6aa0d1 to your computer and use it in GitHub Desktop.
Save petersuhm/872a48039fadaf6aa0d1 to your computer and use it in GitHub Desktop.
Listen 8080
<VirtualHost *:8080>
LoadModule php5_module /home/ubuntu/.phpenv/versions/5.3.3/libexec/apache2/libphp5.so
DocumentRoot /home/ubuntu/wppusher-plugin/wordpress
ServerName wppusher-plugin.dev
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
</VirtualHost>
@leymannx
Copy link

This conf didn't work for me. It's the same as in the Circle docs. In the end the following worked:

<VirtualHost *:80>
  LoadModule php7_module /opt/circleci/php/7.1.3/usr/lib/apache2/modules/libphp7.so

  DocumentRoot "/home/ubuntu/drupal-circleci-behat/web"
  ServerName ixde.dev
  ServerAlias *.dev

  <FilesMatch \.php$>
    SetHandler application/x-httpd-php
  </FilesMatch>

  <Directory "/home/ubuntu/drupal-circleci-behat/web">
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      <IfModule mod_authz_core.c>
          Require all granted
      </IfModule>
      <IfModule !mod_authz_core.c>
          Order allow,deny
          Allow from all
      </IfModule>
  </Directory>

</VirtualHost>

Working sample repo: https://github.com/leymannx/drupal-circleci-behat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment