mapping domain configuration returning authentication failed error | Community
Skip to main content
New Participant
October 16, 2015
Solved

mapping domain configuration returning authentication failed error

  • October 16, 2015
  • 2 replies
  • 872 views
I am getting Authentication Failed
when I add /etc/map.publish/http mapping It is redirecting to GET /content/geometrixx/toolbar/account/login.html?resource=%2Fcontent%2Fgeometrixx%2Fservices%2Fbanking.html&$$login$$=%24%24login%24%24 as soon as I hit the configured domain I have the following setting 00 { 01     jcr: primaryType: "sling:OrderedFolder", 02     geometrixx_com: { 03         sling:internalRedirect: ["/content/geometrixx/en.html"], 04         jcr:primaryType: "sling:Mapping", 05         sling:match: "geometrixx.com/$" 06     }, 07     geometrixx.com: { 08         sling:internalRedirect: ["/content/geometrixx/en"], 09         jcr:primaryType: "sling:Mapping", 10         redirect: { 11             sling:internalRedirect: ["/content/geometrixx/en/$1","/$1"], 12             jcr:primaryType: "sling:Mapping", 13             sling:match: "(.+)$" 14         } 15     }, 16     ...

 

I have the following in my virtualhost

<VirtualHost *:80>
    ServerAdmin webmaster@geometrixx.attgame.com
    DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/docs/cache"
    ServerName geometrixx.attgame.com
    ErrorLog "logs/geometrixx.attgame.com-error.log"
    CustomLog "logs/geometrixx.attgame.com-access.log" common
     RewriteEngine On
     #RewriteRule ^/(.*\.html)$ /content/geometrixx/en/$1 [PT]
     RewriteRule ^/$ /content/geometrixx/en.html [PT,L]
     RewriteCond %{REQUEST_URI} !^/apps/(.*) [NC]
     RewriteCond %{REQUEST_URI} !^/etc(.*) [NC]
     RewriteCond %{REQUEST_URI} !^/libs(.*) [NC]
     RewriteCond %{REQUEST_URI} !^/content(.*) [NC]
     RewriteCond %{REQUEST_URI} !^/system(.*) [NC]
     RewriteCond %{REQUEST_URI} !^/dam(.*) [NC]
     RewriteRule ^/(.*) /content/geometrixx/$1 [PT]
     RewriteRule ^/(.*)\?(.*) /content/geometrixx/en/$1 [PT,L]
     
     <Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/docs/cache">
         <IfModule disp_apache2.c>
         SetHandler dispatcher-handler
         ModMimeUsePathInfo On
        </IfModule>
        Order allow,deny
    Allow from all

    </Directory>
</VirtualHost>

 

I am using the following configuration files

https://docs.google.com/file/d/0B-dtT5RyOEjcTDVaR1ZGU3JxT2M/edit?usp=sharing

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Scott_Brodersen

The AEM docs also has information about using Dispatcher with multiple domains. It includes an example of a sling redirect.

http://dev.day.com/docs/en/cq/current/deploying/dispatcher/disp_domains.html

scott

2 replies

Yogesh_Upadhyay
New Participant
October 16, 2015

Above redirect mean that resource you are trying to access is returning 403. Are you trying to set multiple domain for which you need sling mapping above ?

Also see if http://www.wemblog.com/2013/03/how-to-manage-multi-site-using.html helps.

Yogesh

Scott_Brodersen
Scott_BrodersenAccepted solution
New Participant
October 16, 2015

The AEM docs also has information about using Dispatcher with multiple domains. It includes an example of a sling redirect.

http://dev.day.com/docs/en/cq/current/deploying/dispatcher/disp_domains.html

scott