Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have been searching this for hours with no luck. I have a web server that uses https on Apache2. I also have installed tomcat7 on the same server to run some Java webapp on it. I need to keep my https port 443 on Apache but forward the requests to the Java webapp to tomcat. I tried to use mod_jk to redirect the requests to tomcat but I failed. Most tutorials talk about redirecting plain http requests not https. I also could not let tomcat use https on 8443. I'm following the steps here but facing errors.

The question: Can I redirect https traffic to tomcat without installing https on tomcat? Is there a good tutorial you can recommend to me?

share|improve this question
add comment

migrated from stackoverflow.com Oct 15 '12 at 8:32

This question came from our site for professional and enthusiast programmers.

1 Answer

The question: Can I redirect https traffic to tomcat without installing https on tomcat?

Yes. just install an AJP connector in Tomcat and use mod_proxy and mod_proxy_ajp in Apache. Or an HTTP connector with mod_proxy_http.

Is there a good tutorial you can recommend to me?

See the documentation for the modules I mentioned.

I'm astonished you weren't able to find anything on this topic, but looking in the wrong place (such as here) won't help. Question belongs on serverfault.com.

share|improve this answer
    
Thanks for the answer. Of course I have found lots of tutorials but I was confused, none worked for me. –  hsnm Oct 14 '12 at 20:22
    
@hsnm With a vague statement like 'no luck' it's impossible to tell what you meant, but the Apache documentation was sufficient for me. –  EJP Oct 14 '12 at 21:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.