Mantis - Resin
Viewing Issue Advanced Details
1350 minor always 09-18-06 09:10 04-05-07 09:20
ferg  
ferg  
normal  
closed  
fixed  
none    
none 3.1.1  
0001350: i18n host name with apache
(rep by Jacky)

I have a vhost like this that doesn?t seem to work, is it bcos of the domain name?
In case you?re wondering, I?m dealing with Chinese Domain Name.
 
<VirtualHost *:80>
  RewriteEngine on
  RewriteCond %{SERVER_PORT} ^80$
  RewriteCond %{HTTP_HOST} ^xn--eqrt2guv0afw3b\.hk$
  RewriteRule ^/(.*) http://www.xn--eqrt2guv0afw3b.hk/$1 [^] [L,R]
  DocumentRoot /www/apps
  ServerName xn--eqrt2guv0afw3b.hk
  ServerAlias www.xn--eqrt2guv0afw3b.hk
  DirectoryIndex default.jsp
  ResinConfigServer 192.168.1.101 6802
  ResinConfigServer 192.168.1.102 6802
  CauchoStatus yes
 
  # do not remove, otherwise apache will serve the jsp source code once resin is down
  AddHandler caucho-request .jsp
</VirtualHost>
 

Notes
(0001813)
ferg   
04-05-07 09:20   
server/05c0