|
|
Subject: Multiple Certificates in Resin - msg#00169
List: text.xml.resin.user
Hi...
I am having a problem in here.
I have a apache webserver with multiple
certificates in it. Everything works fine, I configure 2 IPs address in one nis
and configure two ip based virtual hosts. My certificates run fine in this
configuration.
I am trying to put resin only server, taking down
apache. I configure 3 HTTP sessions in resin like this:
====================================================
#note the IPs is fake
<http host='192.168.1.1'
port='443'>
<ssl>openssl</ssl>
<certificate-file>certificate1.crt</certificate-file>
<certificate-key-file>certificate1.key</certificate-key-file>
<key-store-password>key
for certificate1</key-store-password>
</http>
<http host='192.168.1.2'
port='443'>
<ssl>openssl</ssl>
<certificate-file>certificate2.crt</certificate-file>
<certificate-key-file>certificate2.key</certificate-key-file>
<key-store-password>key
for certificate2</key-store-password>
</http>
<http host='192.168.1.1' port='80'/>
====================================================
so, the strange thing is that the in port 80 configuration, my netstat
shows:
====================================================
tcp
0 0
192.168.5.4:80
0.0.0.0:*
LISTEN
====================================================
and in port 443:
====================================================
tcp
0 0
0.0.0.0:443
0.0.0.0:*
LISTEN
====================================================
the ssl doesn't work because it already bind first http section to all
ips(0.0.0.0) in port 443!
Any hint is welcome!
tks...
________________________________
Wagner Sartori
Junior
wagner@xxxxxxxxxxxxxxx
Com.
(11)3849-5798
Cel.
(11)8133-6585
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: Can <load-on-startup> take a parameter?
Rob Lockstone <lockstone@xxxxxxx> writes:
> The above was from over 3 years ago. The online caucho docs don't say
> that load-on-startup can take a parameter. Can it? Or was that removed
> somewhere in the intervening three years since the above was posted?
it can. it's documented in the servlet spec.
--
joe
Next Message by Date:
click to view message preview
JNDI global and application resources
Hi, I've been
debugging a problem I've been having with Resin 2.1.10 and JNDI javamail
Sessions.
I had this in my
resin.conf as a sibling to my web-app entries:
<resource-ref
res-ref-name='mail/Mailer'
res-type='javax.mail.Session'>
<init-param
mail.transport.protocol='smtp'/>
<init-param
mail.host='exchange'/>
<init-param
mail.user='mperham'/>
<init-param
mail.password='foo'/>
<init-param
mail.debug='true'/>
</resource-ref>
My understanding is
that this defines a global resource which all applications can
see.
I also had this in
my web.xml for my application:
<resource-ref>
<res-ref-name>mail/WebifyMail</res-ref-name>
<res-type>javax.mail.Session</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Again, my
understanding is that this defines a resource requirement which must be mapped
onto the JNDI resources that an app server provides. However, resin does
not seem to provide a facility for mapping resources a la jboss-web.xml or
weblogic.xml. With the above example, I want to map my application's
requirement for "WebifyMail" onto the concrete resource
"Mailer".
If I have them both
use the same name, two resources are created: one globally which is configured
correctly and the other in my application's context which is unconfigured.
It is this unconfigured resource which is given to me when my application
asks for "java:comp/env/mail/WebifyMail"!
It appears that the
only way to get this to work correctly is define a global resource with the
proper name expected by my application and remove the resource-ref from the
web.xml. Am I missing something or is this an accurate assessment?
Does this work correctly in 3.0 and will it be fixed in
2.1.x?
mike
Previous Message by Thread:
click to view message preview
Can <load-on-startup> take a parameter?
From the Caucho Archives <spooky>In The Year 2000</spooky> Apologies to
Conan O'Brien:
> Kesha Sibilev typed the following on 12:35 02/05/00 -0400
> >According to the Servlet specification "load-on-startup" element
has an
> >optional content that must be a positive integer indicating the
order in
> >which the servlet should be loaded. I believe that Resin
implements this
> >functionality.
>
> However, the copy of the Servlet 2.2 spec I have doesn't mention
> any parameters for load-on-startup, and I can't find anything in the
Resin
> documentation or source that looks like it would do this. Can anyone
> give me specifics? What is the parameter to load-on-startup called?
It's just the value of load-on-startup, e.g.
<servlet servlet-name='foo' servlet-class='com.caucho.BarServlet'>
<load-on-startup>15</load-on-startup>
</servlet>
In the spec, I'm pretty sure it's buried in the DTD section.
-- Scott
The above was from over 3 years ago. The online caucho docs don't say
that load-on-startup can take a parameter. Can it? Or was that removed
somewhere in the intervening three years since the above was posted?
Rob
Next Message by Thread:
click to view message preview
JNDI global and application resources
Hi, I've been
debugging a problem I've been having with Resin 2.1.10 and JNDI javamail
Sessions.
I had this in my
resin.conf as a sibling to my web-app entries:
<resource-ref
res-ref-name='mail/Mailer'
res-type='javax.mail.Session'>
<init-param
mail.transport.protocol='smtp'/>
<init-param
mail.host='exchange'/>
<init-param
mail.user='mperham'/>
<init-param
mail.password='foo'/>
<init-param
mail.debug='true'/>
</resource-ref>
My understanding is
that this defines a global resource which all applications can
see.
I also had this in
my web.xml for my application:
<resource-ref>
<res-ref-name>mail/WebifyMail</res-ref-name>
<res-type>javax.mail.Session</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Again, my
understanding is that this defines a resource requirement which must be mapped
onto the JNDI resources that an app server provides. However, resin does
not seem to provide a facility for mapping resources a la jboss-web.xml or
weblogic.xml. With the above example, I want to map my application's
requirement for "WebifyMail" onto the concrete resource
"Mailer".
If I have them both
use the same name, two resources are created: one globally which is configured
correctly and the other in my application's context which is unconfigured.
It is this unconfigured resource which is given to me when my application
asks for "java:comp/env/mail/WebifyMail"!
It appears that the
only way to get this to work correctly is define a global resource with the
proper name expected by my application and remove the resource-ref from the
web.xml. Am I missing something or is this an accurate assessment?
Does this work correctly in 3.0 and will it be fixed in
2.1.x?
mike
|
|