Dear Scott,
I tried this:
host id=香港域名.hk
root-directory=/www/myapp
web-app
id=/ document-directory=/www/myapp
servlet-mapping url-pattern=/servlet/*
servlet-name=invoker/
/web-app
/host
Error:
java.io.CharConversionException:
conf/resin.conf:321: illegal utf8 encoding 0xcf
at com.caucho.xml.readers.Utf8Reader.error(Utf8Reader.java:161)
at com.caucho.xml.readers.Utf8Reader.readSecond(Utf8Reader.java:102)
at com.caucho.xml.readers.Utf8Reader.read(Utf8Reader.java:91)
at com.caucho.xml.readers.MacroReader.read(MacroReader.java:171)
at com.caucho.xml.XmlParser.parseValue(XmlParser.java:1232)
at com.caucho.xml.XmlParser.parseAttributes(XmlParser.java:731)
at com.caucho.xml.XmlParser.parseElement(XmlParser.java:605)
at com.caucho.xml.XmlParser.parseNode(XmlParser.java:366)
at com.caucho.xml.XmlParser.parseInt(XmlParser.java:241)
at com.caucho.xml.AbstractParser.parse(AbstractParser.java:633)
at com.caucho.relaxng.VerifierFilter.parse(VerifierFilter.java:83)
at com.caucho.config.Config.parseDocument(Config.java:375)
at com.caucho.config.Config.parseDocument(Config.java:328)
at com.caucho.config.Config.configure(Config.java:167)
at com.caucho.server.resin.Resin.init(Resin.java)
at com.caucho.server.resin.Resin.main(Resin.java:623)
And this:
host id=#39321;#28207;#22495;#21517; root-directory=/www/myapp
web-app
id=/ document-directory=/www/myapp
servlet-mapping url-pattern=/servlet/*
servlet-name=invoker/
/web-app
/host
No error for this one, but the resin
server kept restarting itself.
I’m not sure if I am missing something
here.
Please advice.
Thank you.
Warm Regards,
Jacky Wong
From: Scott Ferguson
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 20,
2006 12:08 AM
To: Jacky
Cc: Resin-Interest
Subject: Re: [Resin-interest]
Special virtual hosts
On Sep 18, 2006, at 11:47 PM, Jacky wrote:
Dear Scott,
You said that it was not tested with Apache, but I have tried with
just resin alone yet it still doesn’t work.
It will get the contents from {RESIN_PATH}/webapps/ROOT/. Below is
my sample vhost.
host id=xn--eqrt2guv0afw3b.hk
root-directory=/www/myapp
web-app id=/
document-directory=/www/myapp
servlet-mapping
url-pattern=/servlet/* servlet-name=invoker/
/web-app
/host
Can you try changing the id value to the utf-8 encoding of the host
name?
Resin automatically converts the xn-- code to a unicode string and
matches that string against the host name. It's not currently
possible for the host to have an xn-- name.
-- Scott
I browse to http://xn--eqrt2guv0afw3b.hk:8080
and it shows me resin default page.
Please share your knowledge with me if you have the solution.
PS: I added xn--eqrt2guv0afw3b.hk to point to our resin server in
local environment using windows host file.
Thank you.
Warm Regards,
Jacky Wong
From: Scott Ferguson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 19, 2006
12:07 AM
To: Jacky
Cc: Resin-Interest
Subject: Re: [Resin-interest]
Special virtual hosts
On Sep 13, 2006,
at 5:01 AM, Jacky wrote:
Dear all,
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.
I've added this as
a bug report. http://bugs.caucho.com/view.php?id=1350
Resin's support
for the i18n names (the xn--) has been tested on Resin itself, but we haven't
checked with Apache, so there might be some kind of mismatch.
-- Scott
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
Please reply
if you need further info.
Thank you.
Warm Regards,
Jacky Wong
___
resin-interest
mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest