Enabling AJP with grails local dev environment
I am implementing a site (spotmouth) that is using grails and Drupal. Locally for my drupal stuff, I am running the excellent XAMPP.
I wanted my local grails app behind apache so it would be a lot closer to what my production configuration would be like. It turns out that by adding the following file to my Grails app, it will enable the AJP port for tomcat.
Copy the _Events.groovy file (below) to your scripts folder in your grails app. Of course, don't forget your httpd.conf files to proxy your app.
<Location /georepo>
ProxyPass ajp://localhost:8009/georepo
</Location>
| Attachment | Size |
|---|---|
| _Events.groovy | 1.21 KB |

Comments
Post new comment