日期:2014-05-17 浏览次数:20492 次
redmine <VirtualHost *:80> ServerName redmine.aaa.com.cn ServerAdmin webmaster@aaa.com.cn DocumentRoot /usr/local/redmine/redmine-1.0/public <Directory "/usr/local/redmine/redmine-1.0/public/"> Options Indexes ExecCGI FollowSymLinks Order allow,deny Allow from all AllowOverride all </Directory> </VirtualHost>
RewriteCond %{HTTP_HOST} !(redmine.aaa.com.cn) [NC] RewriteCond %{HTTP_HOST} !(www.aaa.com.cn) [NC] RewriteMap lowercase int:tolower RewriteMap vhost txt:/usr/local/apache2/conf/vhost.map RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$ RewriteCond ${vhost:%1} ^(/.*)$ RewriteRule ^/(.*)$ %1/$1
#redmine redmine.aaa.com.cn /usr/local/redmine/redmine-1.0/public #aaa www.aaa.com /var/www/aaa