Apache does not parse vhost inside the East--redmine
When I configured Apache and redmine, I found the following problems, please also understand to help solve it. THS
I want to achieve access redmine.aaa.com.cn with Vhost.map
Can experiment after found only with virtualhost feasible, this is how to return ah, THS
In the Apache configuration file httpd.conf directly with the VirtualHost port, with http://redmine.aaa.com.cn can access, will normally access to
HTML Code
Redmine
ServerName redmine.aaa.com.cn ServerAdmin webmaster@aaa.com.cn documentroot/usr/ Local/redmine/redmine-1.0/public
Options Indexes execcgi followsymlinks Order allow,deny allowoverride
All
But I use domain redirection rules, such as
httpd.conf
HTML Code
Rewritecond%{http_host}! (redmine.aaa.com.cn) [Nc]rewritecond%{http_host}! (www.aaa.com.cn) [Nc]rewritemap lowercase int:tolowerrewritemap vhost txt:/usr/local/apache2/conf/ Vhost.maprewritecond ${lowercase:%{server_name}} ^ (. +) $RewriteCond ${vhost:%1} ^ (/.*) $RewriteRule ^/(. *) $%1/$1
Vhost.map as follows:
HTML Code
#redmineredmine. aaa.com.cn/usr/local/redmine/redmine-1.0/public#aaawww.aaa.com/var/www/aaa
The following error occurred:
Application Error
Rails application failed to start properly
------Solution--------------------
is not to be configured to support allowoverride