Created
May 6, 2014 23:38
-
-
Save hotmeteor/e09c8ddfa64621daedbc to your computer and use it in GitHub Desktop.
Make AJAX calls to MAMP on the same domain as your grunt server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ProxyPass /ajax/ http://localhost:80/myappfolder/app/ | |
ProxyPassReverse /ajax/ http://localhost:80/myappfolder/app/ | |
ProxyPass / http://localhost:9000/ | |
ProxyPassReverse / http://localhost:9000/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an advanced setup from https://gist.github.com/hotmeteor/11407089
It allows you to make AJAX requests to PHP scripts on the same domain as your grunt server.
ajax
. This path doesn't really exist, it's just the proxy we're using to pass requests through/ajax/app.php
or/ajax/api/method/