Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Disclaimer, I am no expert on Grails.</p> <p>But from what you have described, the configuration could be as follows:</p> <p>SSL is offloaded to apache httpd. Hence only the ajp connector needs to be configured in Tomcat, or perhaps with an additional http connector for testing purpose only. Configuring enable SSL for apache httpd by following <a href="http://httpd.apache.org/docs/2.0/ssl/ssl_howto.html" rel="nofollow">http://httpd.apache.org/docs/2.0/ssl/ssl_howto.html</a> and</p> <pre><code>&lt;VirtualHost _default_:80&gt; RedirectPermanent /secure/path https://www.example.com/secure/path ProxyPass / ajp://localhost:8009/ ProxyPassreverse / ajp://localhost:8009/ &lt;/VirtualHost&gt; &lt;VirtualHost _default_:443&gt; # SSL config ... ProxyPass / ajp://localhost:8009/ ProxyPassreverse / ajp://localhost:8009/ &lt;/VirtualHost&gt; </code></pre> <p>should work.</p> <p>Another benefit is that you may see performance improvement when SSL is offloaded to apache httpd. </p> <p>In addition, why not force SSL for everything:</p> <pre><code>&lt;VirtualHost _default_:80&gt; RedirectPermanent / https://www.example.com/ &lt;/VirtualHost&gt; &lt;VirtualHost _default_:443&gt; # SSL config ... ProxyPass / ajp://localhost:8009/ ProxyPassreverse / ajp://localhost:8009/ &lt;/VirtualHost&gt; </code></pre> <p>As to why you have infinite loop, it might be related to Spring Security's sendRedirect. If you can post your full apache VirtualHost and tomcat ajp connector configuration, it may give us more clue.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload