wiki:configuring_tomcat_apache_jk_virtual_host
Differences
This shows you the differences between two versions of the page.
wiki:configuring_tomcat_apache_jk_virtual_host [2008/11/20 15:03] – created mirnshi | wiki:configuring_tomcat_apache_jk_virtual_host [2008/11/20 15:04] (current) – mirnshi | ||
---|---|---|---|
Line 27: | Line 27: | ||
RewriteEngine on | RewriteEngine on | ||
RewriteCond %{HTTP_HOST} [^.]+\.freecode\.com\.cn$ | RewriteCond %{HTTP_HOST} [^.]+\.freecode\.com\.cn$ | ||
+ | # not rewrite www.freecode.com.cn, | ||
+ | # abc.freecode.com.cn is same as www.freecode.com.cn/ | ||
RewriteCond %{HTTP_HOST} !^www\.freecode\.com\.cn$ | RewriteCond %{HTTP_HOST} !^www\.freecode\.com\.cn$ | ||
RewriteRule ^(.+) %{HTTP_HOST}$1 [C] | RewriteRule ^(.+) %{HTTP_HOST}$1 [C] |
wiki/configuring_tomcat_apache_jk_virtual_host.1227193402.txt.gz · Last modified: 2008/11/20 15:03 by mirnshi