<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Running Nuxeo (in http) behind Apache in https: missing config variable? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/running-nuxeo-in-http-behind-apache-in-https-missing-config/m-p/315706#M2707</link>
    <description>&lt;P&gt;Gah apparently my googling skills were weak&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2013 17:36:10 GMT</pubDate>
    <dc:creator>AlexAtIkanow_</dc:creator>
    <dc:date>2013-11-26T17:36:10Z</dc:date>
    <item>
      <title>Running Nuxeo (in http) behind Apache in https: missing config variable?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/running-nuxeo-in-http-behind-apache-in-https-missing-config/m-p/315704#M2705</link>
      <description>&lt;P&gt;We have been running for a while with no problems with Nuxeo/http running behind an Apache httpd reverse proxy also running http. We are currently moving the Apache instance to use https instead.&lt;/P&gt;
&lt;P&gt;I followed the instructions in various places, eg here: &lt;A href="http://doc.nuxeo.com/display/public/ADMINDOC/HTTP+and+HTTPS+Reverse-Proxy+Configuration" target="test_blank"&gt;http://doc.nuxeo.com/display/public/ADMINDOC/HTTP+and+HTTPS+Reverse-Proxy+Configuration&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(except with "casemanager" substituted for "nuxeo" as the root of the URL. Also the proxy was set up on a non-standard port, 8090)&lt;/P&gt;
&lt;P&gt;And added nuxeo-virtual-host when moving to https.&lt;/P&gt;
&lt;P&gt;When trying to access &lt;CODE&gt;&lt;A href="https://REVERSE_PROXY:8090/casemanager/" target="test_blank"&gt;https://REVERSE_PROXY:8090/casemanager/&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;I would get redirected to&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;A href="http://REVERSE_PROXY:8090/casemanager/nxstartup.faces" target="test_blank"&gt;http://REVERSE_PROXY:8090/casemanager/nxstartup.faces&lt;/A&gt;&lt;/CODE&gt; (ie http not https)&lt;/P&gt;
&lt;P&gt;This happened regardless of whether nuxeo-virtual-host was set&lt;/P&gt;
&lt;P&gt;Looking at the tcpdump logs confirmed the headers were all set sensibly, but the redirect was wrong&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;Get /casemanager/&lt;/CODE&gt;&lt;BR /&gt; /&amp;gt;
&lt;CODE&gt;Host: REVERSE_PROXY:8090&lt;/CODE&gt;&lt;BR /&gt; /&amp;gt;
&lt;CODE&gt;X-Forwarded-Host REVERSE_PROXY:8090&lt;/CODE&gt;&lt;BR /&gt; /&amp;gt;
&lt;CODE&gt;X-Forwarded-Proto: https&lt;/CODE&gt;&lt;BR /&gt; /&amp;gt;
&lt;CODE&gt;nuxeo-virtual-host: &lt;A href="https://REVERSE_PROXY:8090/" target="test_blank"&gt;https://REVERSE_PROXY:8090/&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;was&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;HTTP/1.1 302 Moved Temporarily&lt;/CODE&gt;&lt;BR /&gt; /&amp;gt;
&lt;CODE&gt;Server: Apache-Coyote/1.1&lt;/CODE&gt;&lt;BR /&gt; /&amp;gt;
&lt;CODE&gt;Location: &lt;A href="http://REVERSE_PROXY:8090/casemanager/nxstartup.faces" target="test_blank"&gt;http://REVERSE_PROXY:8090/casemanager/nxstartup.faces&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;I fixed it by adding the following directive to Apache for /casemanager/ URLs:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;Header edit Location &lt;A href="http://(.*/casemanager.*)" target="test_blank"&gt;http://(.*/casemanager.*)&lt;/A&gt; &lt;A href="https://$1" target="test_blank"&gt;https://$1&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;This all seems to work (I didn't remove the nuxeo-virtual-app to see if that was still necessary)&lt;/P&gt;
&lt;P&gt;But was curious if I could have messed something up (given the above request headers seem correct) - plus to post my solution in case it helps anyone else.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 17:28:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/running-nuxeo-in-http-behind-apache-in-https-missing-config/m-p/315704#M2705</guid>
      <dc:creator>AlexAtIkanow_</dc:creator>
      <dc:date>2013-11-26T17:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Running Nuxeo (in http) behind Apache in https: missing config variable?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/running-nuxeo-in-http-behind-apache-in-https-missing-config/m-p/315705#M2706</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;if you're running Nuxeo 5.6, maybe you felt on this bug &lt;A href="https://jira.nuxeo.com/browse/NXP-12515"&gt;NXP-12515&lt;/A&gt; or this one &lt;A href="https://jira.nuxeo.com/browse/NXP-10891"&gt;NXP-10891&lt;/A&gt;.
Upgrading to Nuxeo 5.8 should fix your problem.&lt;/P&gt;
&lt;P&gt;Kind regards,
Thierry&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 17:32:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/running-nuxeo-in-http-behind-apache-in-https-missing-config/m-p/315705#M2706</guid>
      <dc:creator>Thierry_Martins</dc:creator>
      <dc:date>2013-11-26T17:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Running Nuxeo (in http) behind Apache in https: missing config variable?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/running-nuxeo-in-http-behind-apache-in-https-missing-config/m-p/315706#M2707</link>
      <description>&lt;P&gt;Gah apparently my googling skills were weak&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 17:36:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/running-nuxeo-in-http-behind-apache-in-https-missing-config/m-p/315706#M2707</guid>
      <dc:creator>AlexAtIkanow_</dc:creator>
      <dc:date>2013-11-26T17:36:10Z</dc:date>
    </item>
  </channel>
</rss>

