Hi,

I'm running Apache 1.3 with mod_ssl/Tomcat 4.1/JK2 and I'd like to get SSL
access to some of my webapps. This is my workers2.properties:
-----------------------------------------
[shm]
file=/usr/local/httpd/logs/shm.file
size=1048576
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[uri:/foo/*]
worker=ajp13:localhost:8009

[uri:/bar/*]
worker=ajp13:localhost:8009
------------------------------------------

and this is my server.xml connector config:
------------------------------------------
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" ...
port="8009" protocolHandlerClassName="org.apache.jk.server.JKCoyoteHandler"
scheme="http" secure="false">
  <Factory className="org.apache.catalina.net.DefaultServerSocketFactory"/>
</Connector>
------------------------------------------

I'd like 'bar' to be accesible by https & 'foo' by http.
However, with the above config, when I browse to 'https://localhost/bar/' I
get the error message:

"
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
Hint: https://localhost:443/
"

When I change my connector in server.xml to "scheme='https'" then SSL access
works ok, but if I try to connect at http://localhost/foo/, I'm getting
automatically redirected to 'https'...

I've tried to set up two connectors (one with scheme="http" on port 8009 and
one with scheme="https" on port 8019), but I don't know how to configure jk2
to map /foo/ to 8009 and /bar/ to 8019. Can anybody help?

Thanks
Alex



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to