Tuesday, August 23, 2011

How to Increase Memory in Tomcat - Railo Setup

This might be common knowledge to most, but I have to look it up every time.

If you need to increase the memory in Apache Tomcat.

Look here:  /opt/railo/tomcat/bin/setenv.sh

JAVA_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=128m ";   # memory settings.

Remember to restart Railo / Tomcat   afterwards:

/etc/rc.d/init.d/railo_ctl restart

Monday, August 22, 2011

How to get ProxyPass to ignore a URL so you can still use Apache HTACCESS

On a few of my servers I use Apache with Apache Tomcat. and ProxyPass to forward requests from apache over to Tomcat for my Coldfusion pages.

The part I have been struggling with for so long was how to do password protected directories in apache.  Either by adding the config to the VirtualHost directive or by .htaccess.

It seemed no matter what I did, requests were getting proxied and there was nothing I could do about it.

Tonight I finally found my answer:

The ProxyPass !  combo:

ProxyPass /dealers/ !

Here is the whole apache configuration I use for connecting Apache to Tomcat and URL Rewriting:

I found this mentioned on a Sitepoint Post

Saturday, August 20, 2011

ColdFusion By Example - Comparing strings

After a slow start I finally completed the first post of my Coldfusion By Example series.  I am not extremely happy with it yet, but I need to start somewhere.  I feel like I did not add enough explanation to the post. There is not much to say about comparing strings.  I will review the post again in a couple days and see if I can add any more to it.  I am also open to any suggestions.

How to compare strings in Coldfusion