<?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: Adding apache basic auth for a path in content hierarchy(one subdomain) in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-apache-basic-auth-for-a-path-in-content-hierarchy-one/m-p/442242#M126309</link>
    <description>&lt;P&gt;&lt;LI-USER uid="3629565"&gt;&lt;/LI-USER&gt;&amp;nbsp;Please follow the below steps to handle the authentication in &lt;STRONG&gt;&lt;U&gt;domain level&lt;/U&gt;&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1.Create a file&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;dispatcher.htaccess&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;in dispatcher.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.Create the users to access the password protected domain:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;htpasswd -c /etc/httpd/conf.d/dispatcher.htaccess &amp;lt;user&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Enter the password (twice)&lt;BR /&gt;&lt;SPAN&gt;3.Add the following configurations to your virtual host to handle the authentication:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Location /&amp;gt;&lt;BR /&gt;## unsets authorization header when sending request to AEM&lt;BR /&gt;RequestHeader unset Authorization&lt;BR /&gt;Deny from all&lt;BR /&gt;#Allow from (Set IP to allow access without password)&lt;BR /&gt;AuthUserFile /&lt;SPAN&gt;etc/httpd/conf.d/dispatcher.htaccess&lt;/SPAN&gt;&lt;BR /&gt;AuthName "Authentication Required"&lt;BR /&gt;AuthType Basic&lt;BR /&gt;Satisfy Any&lt;BR /&gt;require valid-user&lt;BR /&gt;&amp;lt;/Location&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;4.Check the syntax -&amp;gt; httpd -t&lt;/P&gt;&lt;P&gt;5.Restart the dispatcher.&lt;/P&gt;&lt;P&gt;6. Access the domain whether you are getting the authentication pop-up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can configure the below configuration in your dispatcher.conf file to handle &lt;STRONG&gt;&lt;U&gt;particular content path&lt;/U&gt;&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# unsets authorization header when sending request to AEM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RequestHeader unset Authorization&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SetEnvIf Request_URI&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;^/content/xyz*&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;auth=1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AuthType Basic&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AuthUserFile&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;/etc/httpd/conf.d/dispatcher.htaccess&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;# first, allow everybody&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Order Allow,Deny&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Satisfy any&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Allow from all&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Require valid-user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# then, deny only if required&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deny from env=auth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 13:24:10 GMT</pubDate>
    <dc:creator>Raja-kp</dc:creator>
    <dc:date>2022-02-25T13:24:10Z</dc:date>
    <item>
      <title>Adding apache basic auth for a path in content hierarchy(one subdomain)</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-apache-basic-auth-for-a-path-in-content-hierarchy-one/m-p/442051#M126260</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;how could we add basic authentication in apache for a particular subdomain- there by requiring requests to a content path allowed with authentication credentials?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance for your help or direction.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 07:39:43 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-apache-basic-auth-for-a-path-in-content-hierarchy-one/m-p/442051#M126260</guid>
      <dc:creator>asn11</dc:creator>
      <dc:date>2022-02-24T07:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding apache basic auth for a path in content hierarchy(one subdomain)</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-apache-basic-auth-for-a-path-in-content-hierarchy-one/m-p/442056#M126262</link>
      <description>&lt;P&gt;&lt;LI-USER uid="3629565"&gt;&lt;/LI-USER&gt;&amp;nbsp;Please refer below article URL:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.albinsblog.com/2015/06/enabling-basic-authentication-for-adobecq5-adobeaem.html#.Yhc9L5NBxhE" target="_blank"&gt;https://www.albinsblog.com/2015/06/enabling-basic-authentication-for-adobecq5-adobeaem.html#.Yhc9L5NBxhE&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 08:10:07 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-apache-basic-auth-for-a-path-in-content-hierarchy-one/m-p/442056#M126262</guid>
      <dc:creator>Bhuwan_B</dc:creator>
      <dc:date>2022-02-24T08:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding apache basic auth for a path in content hierarchy(one subdomain)</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-apache-basic-auth-for-a-path-in-content-hierarchy-one/m-p/442064#M126263</link>
      <description>&lt;P&gt;Hey Kent,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are looking for a particular subdomain you can set auth requirement in the specific vhost as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 09:17:43 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-apache-basic-auth-for-a-path-in-content-hierarchy-one/m-p/442064#M126263</guid>
      <dc:creator>Peter_Puzanovs</dc:creator>
      <dc:date>2022-02-24T09:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding apache basic auth for a path in content hierarchy(one subdomain)</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-apache-basic-auth-for-a-path-in-content-hierarchy-one/m-p/442242#M126309</link>
      <description>&lt;P&gt;&lt;LI-USER uid="3629565"&gt;&lt;/LI-USER&gt;&amp;nbsp;Please follow the below steps to handle the authentication in &lt;STRONG&gt;&lt;U&gt;domain level&lt;/U&gt;&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1.Create a file&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;dispatcher.htaccess&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;in dispatcher.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.Create the users to access the password protected domain:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;htpasswd -c /etc/httpd/conf.d/dispatcher.htaccess &amp;lt;user&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Enter the password (twice)&lt;BR /&gt;&lt;SPAN&gt;3.Add the following configurations to your virtual host to handle the authentication:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Location /&amp;gt;&lt;BR /&gt;## unsets authorization header when sending request to AEM&lt;BR /&gt;RequestHeader unset Authorization&lt;BR /&gt;Deny from all&lt;BR /&gt;#Allow from (Set IP to allow access without password)&lt;BR /&gt;AuthUserFile /&lt;SPAN&gt;etc/httpd/conf.d/dispatcher.htaccess&lt;/SPAN&gt;&lt;BR /&gt;AuthName "Authentication Required"&lt;BR /&gt;AuthType Basic&lt;BR /&gt;Satisfy Any&lt;BR /&gt;require valid-user&lt;BR /&gt;&amp;lt;/Location&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;4.Check the syntax -&amp;gt; httpd -t&lt;/P&gt;&lt;P&gt;5.Restart the dispatcher.&lt;/P&gt;&lt;P&gt;6. Access the domain whether you are getting the authentication pop-up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can configure the below configuration in your dispatcher.conf file to handle &lt;STRONG&gt;&lt;U&gt;particular content path&lt;/U&gt;&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# unsets authorization header when sending request to AEM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RequestHeader unset Authorization&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SetEnvIf Request_URI&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;^/content/xyz*&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;auth=1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AuthType Basic&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AuthUserFile&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;/etc/httpd/conf.d/dispatcher.htaccess&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;# first, allow everybody&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Order Allow,Deny&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Satisfy any&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Allow from all&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Require valid-user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# then, deny only if required&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deny from env=auth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:24:10 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-apache-basic-auth-for-a-path-in-content-hierarchy-one/m-p/442242#M126309</guid>
      <dc:creator>Raja-kp</dc:creator>
      <dc:date>2022-02-25T13:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding apache basic auth for a path in content hierarchy(one subdomain)</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-apache-basic-auth-for-a-path-in-content-hierarchy-one/m-p/442262#M126318</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17444577"&gt;&lt;/LI-USER&gt;&amp;nbsp;thanks for the answer. a followup question, how can I create user interactively as you mentioned with&amp;nbsp;&lt;SPAN&gt;htpasswd command in case of aem as cloud where we cant access dispatcher server and configuration is done via code deployment?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 14:28:20 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-apache-basic-auth-for-a-path-in-content-hierarchy-one/m-p/442262#M126318</guid>
      <dc:creator>asn11</dc:creator>
      <dc:date>2022-02-25T14:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding apache basic auth for a path in content hierarchy(one subdomain)</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-apache-basic-auth-for-a-path-in-content-hierarchy-one/m-p/442266#M126320</link>
      <description>&lt;P&gt;You can create the .htaccess file in your local. Add the username into the file and the file looks like :&lt;/P&gt;&lt;P&gt;username:password (password in encrypted format).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 14:41:12 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-apache-basic-auth-for-a-path-in-content-hierarchy-one/m-p/442266#M126320</guid>
      <dc:creator>Raja-kp</dc:creator>
      <dc:date>2022-02-25T14:41:12Z</dc:date>
    </item>
  </channel>
</rss>

