I only ran my django applications with apache2 mod_WSGI, but now I want to add Rails (Passenger) applications to the same server. I installed Passenger and it works great.
After searching, when I found a way to run it on www.myserver.com, I have:
- www.myserver.com β rails app
- www.myserver.com/app1 β django app 1
- www.myserver.com/app2 β django 2 app
The problem is that I do not know how to configure the httpd.conf file to run, for example: www.myserver.com/myrailsapp -> rails application.
I'm on Ubuntu Server 10.04 and Apache2
httpd.conf:
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.2/ext/apache2/mod_passenger.so PassengerRuby /usr/bin/ruby PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.2/ Include /etc/apache2/rails.conf <VirtualHost www.myserver.com:80> ServerName www.myserver.com.com WSGIScriptAlias /hello /home/user/django/projects/hello/hello.wsgi <Directory /home/user/django/projects/hello> Order allow,deny Allow from all </Directory> WSGIScriptAlias /app1 /home/user/django/projects/app1/app1.wsgi <Directory /home/user/django/projects/app1> Order allow,deny Allow from all </Directory> Alias /static/admin /home/user/django/src/django/contrib/admin/media ErrorLog /home/usero/django/projects/logs/error.log CustomLog /home/user/django/projects/logs/access.log combined </VirtualHost>
On line: Enable / etc / apache 2 / rails.conf
DocumentRoot /home/user/ruby/projects/redmine/public <IfDefine PASSENGER> RailsBaseURI /redmine </IfDefine>
This includes (rails.conf) what started the Rails application, but I can put something in "RailsBaseURI / redmine" but nothing changes.
Q: How can I redirect www.myserver.com/redmine to / home / user / ruby ββ/ projects / redmine / public?
Any help is appreciated. Thanks.
source share