Rails on Apache

Hi list

I deploy my rails application on apache using mod_proxy. and here is
the config.

<VirtualHost *:80>
ServerName testnl.lifegoo.com
DocumentRoot /home/jack/app_release11/public
SetOutputFilter DEFLATE

<Directory “/home/jack/app_release11/public”>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
ProxyPreserveHost on

These directories should always be served up by Apache,

since they contain static content. Or just let rails do it.

ProxyPass /images !
ProxyPass /stylesheets !
ProxyPass /javascripts !
ProxyPass /favicon.ico !

ErrorLog logs/testnl.lifegoo.com.error.log
CustomLog logs/testnl.lifegoo.com.access.log common

And when i access the URL: http://testnl.lifegoo.com/?tag=c%2B%2B (the
value is “c++”), in rails application, I get the value of tag
parameter is "c ". So how can I solve the problem. Hope you can help
me out :slight_smile:

Thanks
/Jack

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs