Apache does not parse Dongdong-redmine in Vhost. how can this problem be solved?

Source: Internet
Author: User
Tags redmine
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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.