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>

 

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 mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to