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 am running a application on JBoss4.0.3(using Tomcat AJP on ports 8009 and 8443) and I just setup a Apache HTTPS server that is listening on both port 443 and port 80. Everything works fine via port 80: Apache seems to process JSP pages handled by Tomcat via the AJP connection. On the other hand, if I access my server on the HTTPS (443) protocol, the Apache will only serve its own static content and does not know about the JSP application. It is as-if AJP doesn't work when Apache is serving via port 443.

Can anyone offer any advice on this?

Here are my SSL options in the httpd-ssl.conf file:

SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire +StdEnvVars

Also, after enabling mod_proxy and mod_proxy_ajp, putting this in my httpd-ssl.conf will causes my server not to be able to start:

<VirtualHost _default_:443>
.......
<Location>
    ProxyPass ajp://localhost:8009/
</Location>
.......
share|improve this question

1 Answer 1

up vote 0 down vote accepted

AJP isn't an encrypted protocol; there's no reason to use more than just the 8009 listener. (your +ExportCertData will feed tomcat the certificate info when it's an SSL session)

We need to see your full to be able to tell you why it's not working, not just the SSLOptions; anything useful in apache's error.log (probably under /var/log/apache2) would be good as well. As to the snippet that causes the server not to start, try this:

<Location />
    ProxyPass ajp://localhost:8009/
    ProxyPassReverse ajp://localhost:8009/
</Location>
share|improve this answer
    
Great, that worked but , strangely, it killed my "RedirectMatch" rules that I configured to redirect some URLs to a proper URI . How do I get my Redirects to work again? Maybe I need to switch to a mod_rewrite rule or something? –  djangofan Apr 27 '11 at 19:57
    
Works only without the "/" in your ProxyPass directive. Edit it and fix it and ill give the points. –  djangofan Apr 27 '11 at 20:29
    
Yes, my mistake; when inside a <Location> block the first argument is implied. –  Shane Madden Apr 27 '11 at 21:05

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.