|
FYI - consider all this at your own risk. I'm not an Apache / Tomcat
guru: When it comes to my OpenBD apps, my /etc/apache2/sites-available/default file just tosses the request over to Tomcat via mod_ajp - and Tomcat handles all that pathing stuff that's local to each app. Consider this abridged version: <VirtualHost *:80>
#[ALL THE STUFF YOU GET IN A DEFAULT APACHE CONFIG, LIKE]
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
CustomLog ${APACHE_LOG_DIR}/access.log combined
#[BLAH BLAH AND SO ON]
</VirtualHost># [THIS IS TO AN OPENBD INSTANCE - TOMCAT ON 8009] <VirtualHost *:80> ServerName todo.akh.com ProxyPass / ajp://0.0.0.0:8009/ ProxyPassreverse / ajp://0.0.0.0:8009/ </VirtualHost>Now I'm running on an Amazon marketplace instance, my setup works with 0.0.0.0. You may need to use 127.0.0.1 above. Over on the Tomcat side, this is tacked on to the end of my /etc/tomcat6/server.xml file (inside the Engine node) and points to where my app sits. <Host name="todo.akh.com"> <Context path="" docBase="/var/lib/tomcat6/webapps/todo"/> </Host> That's it. Restart Apache and Tomcat, and it just works for me. Regarding scheduled tasks, mine would run once, more than once, once per process, or not at all. So I just gave up on OpenBD's internal methods for this and use OS cron jobs. This one runs once a day as root and throws away the returned page: wget -O /dev/null http://todo.akh.com/statusMe.cfm 2> /dev/null FYI, My app's security bypasses the login redirect for calls coming from a local IP to this path. HTH, Al Holden On 7/3/2014 12:51 AM, Phillip Gardner
wrote:
-- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. |
Re: [OpenBD] Scheduled Tasks running twice on OpenBD
'Alan Holden' via Open BlueDragon Thu, 03 Jul 2014 09:47:34 -0700
- [OpenBD] Scheduled Tasks running twice o... Phillip Gardner
- Re: [OpenBD] Scheduled Tasks runnin... 'Alan Holden' via Open BlueDragon
- [OpenBD] Re: Scheduled Tasks runnin... Rawk
