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 dispatcher config.

Avatar

Avatar
Boost 1
Level 1
aditya524
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
aditya524
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
aditya524
Level 1

12-02-2019

hi can some one explain how this works..

in the  httpd.conf file from the Apache web server where Dispatcher is configured

Add the details as PROXY-NAME PROXY-URL at the end of the file.

For example:
ProxyPass /maps/search http://servername.test.org:8380/sitese
ProxyPassReverse /maps/search http://servername.test.org:8380/sitese

So whenever there is a call to /maps/search the respective url is called in java script directly for example

var url = /maps/search ;

Replies

Avatar

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Establish
Give back 300
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Establish
Give back 300
Give Back 50
Give Back 5
Give Back 3
View profile
Gaurav-Behl
MVP

12-02-2019

Here is one of the simplistic explanation - Reverse Proxy Guide - Apache HTTP Server Version 2.4

Your js code will execute the request on browser which traverses through several layers and goes to your apache server. Apache would use mod_proxy configs to fetch the response of /maps/search from target/backend servers and return it back to the browser.

ProxyPass will fetch '/maps/search' from http://servername.test.org:8380/sitese

ProxyPassReverse  would modify the 'Location' header for the same request to ensure that the request came from apache/proxy server

Avatar

Avatar
Boost 1
Level 1
aditya524
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
aditya524
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
aditya524
Level 1

12-02-2019

thanks for the reply gaurav now i got it

Avatar

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Establish
Give back 300
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Establish
Give back 300
Give Back 50
Give Back 5
Give Back 3
View profile
Gaurav-Behl
MVP

12-02-2019

Another example is Dispatcher which is a reverse proxy and performs the same tasks.