-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Serge,

Serge Fonville wrote:
> What I would like to know is: how do I setup tomcat to serve a different
> host on ssl and normal on the same socket.

Do you mean the same port? You can't have HTTP and HTTPS on the same
port: no product can do that. What you might be really asking for is
HTTP on one port with HTTPS on another port, with redirects set up so
you can easily go from HTTP -> HTTPS.

> In apache this is easy, just define a new virtual host, set the documentroot
> and voila, it just works.

Maybe you could post a sample Apache httpd config and we can get a
better idea of what you're trying to do.

> It seems to me it should be possible by combining listener, connector and
> host in some way, but I can not find out how I should do that.

I think you really just want two connectors:

<Connector port="80" redirectPort="443" ... /> (this is the http one)
<Connector port="443" />                       (this is the https one)

See the default server.xml for examples of all the attributes for these
elements, or the full documentation at
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjrsFAACgkQ9CaO5/Lv0PBejQCeMBpizfHbDnCga3QqxUj4Jwsz
JDsAoL8OCw8Zv9qsQ7MoAla5Tl+9gEV7
=IDSk
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to