adding apache auth when using lang=ruby
fix var placement
added cas
Merge pull request #1 from jhtran/apache_frontend

adding apache auth when using lang=ruby