Skip to content

Instantly share code, notes, and snippets.

@mdoroudi
Created September 8, 2014 23:47
Show Gist options
  • Select an option

  • Save mdoroudi/8047c0bf24a30d7d1d67 to your computer and use it in GitHub Desktop.

Select an option

Save mdoroudi/8047c0bf24a30d7d1d67 to your computer and use it in GitHub Desktop.

Revisions

  1. mdoroudi created this gist Sep 8, 2014.
    37 changes: 37 additions & 0 deletions charon.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    <VirtualHost *:3000>
    ServerName ip-10-96-7-180
    DocumentRoot /srv/charon/current/public

    RailsBaseURI /
    RailsEnv production

    <Directory /srv/charon/current/public>
    Order allow,deny
    Allow from all
    </Directory>

    <LocationMatch "^/health">
    Order Allow,Deny
    Allow from all
    </LocationMatch>

    <LocationMatch "^/resque">
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
    Allow from 204.77.168.0/23
    Allow from 10.70.0.0/16
    Allow from 10.80.0.0/13
    Allow from 192.168.50.0/24
    Allow from 10.40.0.0/13
    </LocationMatch>

    XSendFile On
    XSendFilePath /srv/charon/shared/data

    ErrorLog /var/log/apache2/charon-error.log
    CustomLog /var/log/apache2/charon-access.log combined

    SetEnv TMPDIR /mnt/tmp
    PassEnv TMPDIR
    </VirtualHost>