Apache does not parse the stuff in the Vhost -- redmine when I configure apache and redmine, the following problems are found. please understand and help solve them .. Ths I want to use vhost. map can access redmine.aaa.com.cn through experiments and find that it is only feasible to use VirtualHost. how can this problem be solved? THS does not parse the stuff in the Vhost in the apache configuration file http Apache -- redmine
When I configured apache and redmine, I found the following problems. please help me solve them .. THS
I want to use vhost. map to access redmine.aaa.com.cn
After the experiment, we can find that it is only feasible to use VirtualHost. how can this problem be solved? THS
In the apache configuration file, httpd. conf directly uses the VirtualHost port, can be accessed with the http://redmine.aaa.com.cn, will be normally accessed
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 Allow from all AllowOverride all
However, I use domain name redirection rules, such
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 is as follows:
HTML code
#redmineredmine.aaa.com.cn /usr/local/redmine/redmine-1.0/public#aaawww.aaa.com /var/www/aaa
The following error occurs:
Application error
Rails application failed to start properly
------ Solution --------------------
Is it necessary to configure to support AllowOverride?