Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM stage site with htaccess incure redirecting url issue

Avatar

Avatar
Validate 1
Level 1
HuodongYuan
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
HuodongYuan
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
HuodongYuan
Level 1

05-09-2020

For the sake of security, our security team put our AEM 6.1 stage site under htaccess authentication protection.
htaccess01a.png
But, after entered the correct credentials the stage site is redirecting to url like this "http://stage.sample.com/content/geometrixx/en/toolbar/account/login.html?resource=%2Fcontent%2Fufs%2...", and given below error.
htaccess02a.png

This redirected url looks like related to AEM. How can I avoid the url redirecting and get htaccess the authentication pass? Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
Albin_Issac
MVP

Likes

106 likes

Total Posts

119 posts

Correct Reply

33 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Validate 1
MVP
Albin_Issac
MVP

Likes

106 likes

Total Posts

119 posts

Correct Reply

33 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Albin_Issac
MVP

05-09-2020

Try un-setting the basic authentication before sending the request to AEM 

Enable some configuration like below in virtual-host

<Location />
## unsets authorization header when sending request to AEM
RequestHeader unset Authorization
Deny from all
AuthUserFile /etc/httpd/conf.d/htaccess/uat_dispatcher.htaccess
AuthName "Authentication Required"
AuthType Basic
Satisfy Any
require valid-user
</Location>

Regards

Albin I

www.albinsblog.com

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

232 likes

Total Posts

294 posts

Correct Reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

232 likes

Total Posts

294 posts

Correct Reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile
Shashi_Mulugu
MVP

05-09-2020

@HuodongYuan thank you for posting in Communities. Based on your post, you are trying to implement htaccess authentication in stage publisher.. so what is the redirect url you have configured in htacess? Is it the same URL user hit or some standard URL? Also are you able to hit same page via Publisher ip or domain?