Hide port number 4502 in aem atuhor URL | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
giuseppebaglio
giuseppebaglioAccepted solution
Level 10
February 14, 2025

You can try to configure the dispatcher as a reverse proxy. 

3 replies

chaudharynick
Level 4
February 14, 2025

Hi @monish_gavali_23 

 

Please try using Apache Reverse Proxy for this.

 

<VirtualHost *:80>

    ServerName abcd.aem.dev.net

    ProxyPass / http://localhost:4502/

    ProxyPassReverse / http://localhost:4502/

</VirtualHost>

 

 

or If you’re using Azure Application Gateway or Azure Load Balancer, you can:

• Set up HTTP/HTTPS listener on port 80/443.

• Forward traffic to AEM’s port 4502.

Translate
arunpatidar
New Participant
February 14, 2025

Hi @monish_gavali_23 

If you are using apache then you can use something like below

 

 

<VirtualHost *:80> ServerName abcd.aem.dev.net ProxyPreserveHost On ProxyPass / http://localhost:4502/ ProxyPassReverse / http://localhost:4502/ ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>

 

Translate
Arun Patidar
giuseppebaglio
giuseppebaglioAccepted solution
Level 10
February 14, 2025

You can try to configure the dispatcher as a reverse proxy. 

Translate