Instantly share code, notes, and snippets.

Embed
What would you like to do?
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