Expand my Community achievements bar.

SOLVED

mapping domain configuration returning authentication failed error

Avatar

Level 9
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

1 Accepted Solution

Avatar

Correct answer by
Level 8

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

View solution in original post

2 Replies

Avatar

Level 5

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

Avatar

Correct answer by
Level 8

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