<?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: Dispatcher redirecting requests from https:// to http:// and then again to https:// in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-redirecting-requests-from-https-to-http-and-then/m-p/540396#M134215</link>
    <description>&lt;P&gt;Check how&amp;nbsp;the origin domain CDN is used to connect to Apache? Is it with http or https?&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2022 03:34:37 GMT</pubDate>
    <dc:creator>Mohit_KBansal</dc:creator>
    <dc:date>2022-08-11T03:34:37Z</dc:date>
    <item>
      <title>Dispatcher redirecting requests from https:// to http:// and then again to https://</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-redirecting-requests-from-https-to-http-and-then/m-p/540309#M134200</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the below set of dispatcher configuration in place -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. VHost File -&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Rewrite Rule -&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;# Add .html extension when extension is missing from request&lt;BR /&gt;RewriteCond %{REQUEST_FILENAME} !-d&lt;BR /&gt;RewriteRule ^([^.]*[^./])$ $1.html [R=301,L]&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On testing this rule its working fine as seen below -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rohangargTA_0-1660144415547.png" style="width: 999px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/46353i4F1D4D9875F6749F/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="rohangargTA_0-1660144415547.png" alt="rohangargTA_0-1660144415547.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when running it on my development cloud server, the logs are generated as follows -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://brandA.com/content/brandA/us/en/home" target="_blank"&gt;https://brandA.com/content/brandA/us/en/home&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://brandA.com/content/brandA/us/en/home.html" target="_blank"&gt;http://brandA.com/content/brandA/us/en/home.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://brandA.com/content/brandA/us/en/home.html" target="_blank"&gt;https://brandA.com/content/brandA/us/en/home.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see there is a https:// to http:// redirection happening with 301 status in the network XHR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please suggest what might be causing this scheme change ?&lt;/P&gt;
&lt;P&gt;&lt;LI-USER uid="6786635"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&amp;nbsp;&lt;LI-USER uid="4835834"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&amp;nbsp;&lt;LI-USER uid="1439549"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Rohan Garg&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 15:19:19 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-redirecting-requests-from-https-to-http-and-then/m-p/540309#M134200</guid>
      <dc:creator>Rohan_Garg</dc:creator>
      <dc:date>2022-08-10T15:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dispatcher redirecting requests from https:// to http:// and then again to https://</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-redirecting-requests-from-https-to-http-and-then/m-p/540322#M134202</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17518226"&gt;&lt;/LI-USER&gt;&amp;nbsp;Please check if your SSL certificate is breaking before apache, and if the request coming to apache is with HTTP protocol.&lt;/P&gt;
&lt;P&gt;In this case, you need to implement your 301 rules with HTTPS protocol&lt;/P&gt;
&lt;PRE&gt;RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^.]*[^./])$ https://%{SERVER_NAME}/$1.html [R=301,L]&lt;/PRE&gt;
&lt;P&gt;* Check if&amp;nbsp;SERVER_NAME name return the correct hostname, otherwise check other variables [1]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://httpd.apache.org/docs/current/expr.html" target="_blank"&gt;https://httpd.apache.org/docs/current/expr.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 16:29:47 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-redirecting-requests-from-https-to-http-and-then/m-p/540322#M134202</guid>
      <dc:creator>Mohit_KBansal</dc:creator>
      <dc:date>2022-08-10T16:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dispatcher redirecting requests from https:// to http:// and then again to https://</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-redirecting-requests-from-https-to-http-and-then/m-p/540342#M134207</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17518938"&gt;&lt;/LI-USER&gt;&amp;nbsp;- The SSL Certificates are already installed in publish and dispatcher as confirmed by the Domain Settings tab.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rohangargTA_0-1660155794803.png" style="width: 999px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/46357iA226F6106A61F803/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="rohangargTA_0-1660155794803.png" alt="rohangargTA_0-1660155794803.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Ideally if the request from browser is hit in https:// and the dispatcher has SSL certificate installed, doesn't it ensure that the request is passed in https:// format to dispatcher all the way as SSL is attached to the environment which has Publish Service (AEM &amp;amp; Dispatcher)&lt;BR /&gt;The only thing coming in between is Cloud CDN.&lt;BR /&gt;&lt;BR /&gt;How can we check where the SSL certificate is breaking ?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 18:27:56 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-redirecting-requests-from-https-to-http-and-then/m-p/540342#M134207</guid>
      <dc:creator>Rohan_Garg</dc:creator>
      <dc:date>2022-08-10T18:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dispatcher redirecting requests from https:// to http:// and then again to https://</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-redirecting-requests-from-https-to-http-and-then/m-p/540396#M134215</link>
      <description>&lt;P&gt;Check how&amp;nbsp;the origin domain CDN is used to connect to Apache? Is it with http or https?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 03:34:37 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-redirecting-requests-from-https-to-http-and-then/m-p/540396#M134215</guid>
      <dc:creator>Mohit_KBansal</dc:creator>
      <dc:date>2022-08-11T03:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dispatcher redirecting requests from https:// to http:// and then again to https://</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-redirecting-requests-from-https-to-http-and-then/m-p/540401#M134220</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17518226"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Please keep in mind, always check this kind of situation by following below steps:&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;BR /&gt;- bypass the CDN and check the domain url, where it's landing.&lt;BR /&gt;- Check the logs.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Now, as per the description from your end, the domain is listening dispatcher in port 80, means it's http. Then it's resolving internally to https and delivering the final url to https. That's why your XHR tab showing you the redirection to http in middle.&lt;BR /&gt;&lt;BR /&gt;To get rid of in between redirection, add the url&amp;nbsp;https://&amp;lt;your_domain_url&amp;gt;&amp;nbsp;into your server name or server alias in virtual host. Your problem should be solved.&lt;BR /&gt;&lt;BR /&gt;If still it's coming provide the output of :-&lt;BR /&gt;&lt;BR /&gt;- result of page after bypassing CDN, i,e from dispatcher.&lt;BR /&gt;- your virtual host initial entries (virtual host with&amp;nbsp; server name and alias).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 04:45:24 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-redirecting-requests-from-https-to-http-and-then/m-p/540401#M134220</guid>
      <dc:creator>tb1687196</dc:creator>
      <dc:date>2022-08-11T04:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dispatcher redirecting requests from https:// to http:// and then again to https://</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-redirecting-requests-from-https-to-http-and-then/m-p/540620#M134249</link>
      <description>&lt;P&gt;&lt;LI-USER uid="1687196"&gt;&lt;/LI-USER&gt;&amp;nbsp;- Thanks for your response. I will check with updating the ServerName and ServerAlias to https://&lt;/P&gt;
&lt;P&gt;Meanwhile one query, if the domain is listening to dispatcher at port 80 is the issue, then shouldn't we upgrade the vhost configuration to both 443 and 80 ports ?&lt;/P&gt;
&lt;P&gt;This will ensure that http:// request is handled at 80 and https:// at 443&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 05:27:45 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-redirecting-requests-from-https-to-http-and-then/m-p/540620#M134249</guid>
      <dc:creator>Rohan_Garg</dc:creator>
      <dc:date>2022-08-12T05:27:45Z</dc:date>
    </item>
  </channel>
</rss>

