Skip to content

Instantly share code, notes, and snippets.

@viktorkelemen
Last active December 16, 2015 05:09
Show Gist options
  • Select an option

  • Save viktorkelemen/5382344 to your computer and use it in GitHub Desktop.

Select an option

Save viktorkelemen/5382344 to your computer and use it in GitHub Desktop.
VirtualHost set up on OSX
# Set up your custom domain to point
# to localhost in /etc/hosts
127.0.0.1 myapp.dev
# Enable virtual hosts in /etc/apache2/httpd.conf
# by uncommenting the following line
Include /private/etc/apache2/extra/httpd-vhosts.conf
# Add the mapping in /private/etc/apache2/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerName myapp.dev
ProxyRequests On
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment