We deployed a Rails application on a backend server, served via Passenger. This application is served at port 9000, and is configured to use
sub_uri. Originally the URL is
http://ip.address:9000/, and now it is served at
Now we need to integrate this application into our production environment. The backend server above won't be accessible directly; all applications are to be proxy'ed via Apache on a front end server. Using
Proxy, this Rails application should be accessible via http ://domain.name/app1.
The current apache configuration we are using for PHP applications, in-house apps are:
ProxyPassReverse /app1 http ://ip.address:9000/app1 ProxyPass /app1 http ://ip.address:9000/app1 retry=5
The application kinda loaded, but there are 2 problems:
- some other functions are broken.
I don't know what is the best way to configure this setup. Work on the front end or do more configuration on the backend? Should I remove sub_uri and do all configuration in the frontend server? I'm currently using
RailsBaseURI on the Rails server. After reading this site there are other options such as
What should I do? I'm very new to Ruby, Rails and Passenger, and any help are much appreciated.