Skip to content

Instantly share code, notes, and snippets.

@imax
Created July 26, 2014 16:09

Revisions

  1. imax created this gist Jul 26, 2014.
    23 changes: 23 additions & 0 deletions apache reverse proxy setup for mac os x
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@

    # enable Apache
    sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist

    # Vim /private/etc/apache2/httpd.conf
    # Enable Virtual Hosts Include

    # Vim /private/etc/apache2/extra/httpd-vhosts.conf
    <VirtualHost *:80>
    ProxyPreserveHost On

    ServerName local.djinni.co

    <Location />
    ProxyPass http://localhost:8000/
    ProxyPassReverse http://localhost:8000/
    Order allow,deny
    Allow from all
    </Location>
    </VirtualHost>

    # Vim /etc/hosts
    127.0.0.1 localhost local.djinni.co