Configure servoy/tomcat to forward to IIS

I have servoy installed on a Win2k3 server also running IIS.
Servoy is on 8080 and 8443 and IIS is on 80 and 443 so they play nicely:)
Both solutions work fine except that 808/8443 is sometimes hard to get through firewalls.
So I want to route all inbound web traffic though my firewall to the servoy tomcat (8080/8443) and then use host headers in the tomecat config to either:
a) Process with servoy
b) Forward to IIS (on 80/443)

I have seen a pile of posts in various forums saying tomcat can do this forwarding using the config. Problem is I cant get the syntax to work. (BTW IIS definatively CANT forward properly so I cant do it the other way round). This is what I have tried to add to server.xml

<VirtualHost 192.168.0.20:8080>
Servername iis.server.com
ProxyPass / http://iis.server.com/
ProxyPassReverse / http://iis.server.com/

to my way of thinking that should cause tomcat to forward anything it receives with the iis.server.com host header onto my iis box…but it doesnt work. Any ideas? I am restricting myself to getting http to work first before I mess with SSL.

Part of the problem may be that I also have the standard info to confif servoy in the file:


- - - - -

and the ports conflict? Whats the relationship between “connect port” and “virtualhost”? Can they both be on the same port (8080) or do they exclude each other?

Thanks
Al

Hi Al,

I wouldn’t put IIS in front of Tomcat, but the other way around, usually the “static” web server as a frontal server redirecting requests to the application server, which is the standard way of doing it (it works really nicely with Apache, on Windows too BTW): so using JK ISAPI redirector is definitively the way to go!

But beware that you cannot set 2 servers on the same port, so IIS would answer on port 80/443, forwarding to the workers mounted on Tomcat using port 8080/8443 for example.

See the JK - HowTo for IIS there for more info/setup.

I have never tried it, though but it should work, I just don’t know how well this will play with the http tunelling of Servoy (that you will need to setup anyway otherwise you will also need the port 1099 to be open for your solutions to access the database)…

This is definitely worth a try, but maybe Servoy engineers will have better advices about the setup…

Hope this helps,