Skip to content

Instantly share code, notes, and snippets.

@jfeldstein
Created January 2, 2016 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfeldstein/893617f32acd9d5dfd64 to your computer and use it in GitHub Desktop.
Save jfeldstein/893617f32acd9d5dfd64 to your computer and use it in GitHub Desktop.
Run Apache on CircleCI, and save logs as artifacts
machine:
hosts:
local.example.com: 127.0.0.1
dependencies:
pre:
- cp ./httpd.conf.circle /etc/apache2/sites-available/default
- sudo a2enmod rewrite
- sudo service apache2 restart
general:
artifacts:
- "/var/log/apache2/"
<VirtualHost *:80>
UseCanonicalName Off
ServerName local.example.com
DocumentRoot /home/ubuntu/www
DirectoryIndex index.php
LogLevel notice
<Directory /home/ubuntu/www>
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment