Forcing to Use SSL port in AEM Author 6.3

Statement : How to Force the website to use the SSL port

Pre-requisite : 


  • AEM up and runnig on http port (Ex: 4502)
  • AEM up and running on https port(Ex: 5443), SSL setup is done.

Solution :

Option: Force to use entire website to Https

  • Go to /etc/map folder of type sling:folder
  • Now under /etc/map create http node of type sling:folder. 
  • Create a node under etc/map/http
    • node Name – localhost.4502 
    • Node Type– sling:mapping. 
  • Add below properties to this localhost.4502  node: 
    • Property Name: sling:redirect  Type : String   Value : https://localhost:5443 
  • Click Save ALL , That's It now all your website pages will be automatically open with https domain . 

Option 2: Force to use few pages or specific page of website to SSL 

  • Go to /etc/map folder of type sling:folder
  • Now under /etc/map create http node of type sling:folder. 
  • Create a node under etc/map/http
    • node Name – localhost.4502 
    • Node Type– sling:mapping. 


  • Add below properties to this localhost.4502  node: 
    • Property Name: sling:redirect  Type : String   Value : https://localhost:5443 
    • Name: sling:match  Type : String   Value : aem/start.html 

Or
    • Name: sling:match  Type : String   Value : content/geometrixx-outdoor/en/men/(.*).html 
  • Click Save ALL , That's It now only pages path mentioned in the sling match will be  served through https domain . 

No comments:

Post a Comment