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>
 
 
 

AttachmentSize
_Events.groovy1.21 KB

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options