Apache + Passenger will not redirect to directory
Added by Torsten Burschka almost 14 years ago
Hello,
I've setup today a debian sqeeze server for redmine. First, redmine works fine, but on the false (sub)domain. After creating new virtualhost-files, i can't access redmine, all subdomains will end in www.ideaplexus.com .
Here are the virtualhost-files of the enabled sites (httpd.conf is empty, and not .htaccess file in the /var/www folder)
<VirtualHost *:80>
ServerName www.ideaplexus.com
ServerAlias ideaplexus.com
DocumentRoot /var/www/www.ideaplexus.com
<Directory /var/www/www.ideaplexus.com>
AllowOverride all
</Directory>
</VirtualHost>
and
<VirtualHost *:80>
ServerName projects.ideaplexus.com
DocumentRoot /var/www/projects.ideaplexus.com/public
RailsBaseURI /projects.ideaplexus.com/public
RailsEnv production
<Directory /var/www/projects.ideaplexus.com/public>
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
I'm sure i misconfigured something, but i'm not sure what's the problem.
Replies (2)
RE: Apache + Passenger will not redirect to directory - Added by Declan Lynch almost 14 years ago
Set the RailsBaseURI to / in the projects.ideaplexus.com virtual site.
If the Redmine public dir is SymLinked to that location you'll also need to add 'PassengerFollowSymlinksInDocumentRoot on'
Hope that helps.
RE: Apache + Passenger will not redirect to directory - Added by Torsten Burschka almost 14 years ago
this, plus an ifconfig /flushdns helped. thanks