时间:2021-07-01 10:21:17 帮助过:17人阅读
redmineServerName 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
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