Hi All,
We have 2 sets of sling mapping available in our project.
1 under http folder and other under https folder. Refer to below screenshot:
Both contains same set of configuration.
But when we resolve any relative path in jcrresolver it always points to http variant of the URL.
This is resulting in having CTA links from our components pointing to http URLs.
I have also tried enforce https property of "Apache Felix Jetty Based Http Service" configuration but with no success.
I want to set default as https. How can I achieve this?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @atulkumar7,
You need to set up SSL over HTTP for this. Please check our official documentation [0], [1] to enable SSL in AEM.
After this is done, also put a redirect to route all traffic over HTTPS. Since the SSL settings are done through Granite SSL config com.adobe.granite.jetty.ssl.internal.GraniteSslConnectorFactory. So, the only way to stop the HTTP traffic is to set up redirect as per below and route all http traffic to https.
The following example redirects traffic to localhost:4502 to https://localhost:5433. To configure the redirect, create a sling:mapping node. Use a node name that matches requested URL. Add a sling:redirect property to specify the URL for redirection.
Open CRXDE Lite in your web browser (http://localhost:4502/crx/de).
Click the /etc/map/http folder and click Create > Create Node:
Create the following property for this node:
Click Save All.
Alternatively, you can specify the text for matching the requested URL as a sling:match property (See Mappings for Resource Resolution in the Apache Sling documentation).
Thanks!!
Hi @atulkumar7,
You need to set up SSL over HTTP for this. Please check our official documentation [0], [1] to enable SSL in AEM.
After this is done, also put a redirect to route all traffic over HTTPS. Since the SSL settings are done through Granite SSL config com.adobe.granite.jetty.ssl.internal.GraniteSslConnectorFactory. So, the only way to stop the HTTP traffic is to set up redirect as per below and route all http traffic to https.
The following example redirects traffic to localhost:4502 to https://localhost:5433. To configure the redirect, create a sling:mapping node. Use a node name that matches requested URL. Add a sling:redirect property to specify the URL for redirection.
Open CRXDE Lite in your web browser (http://localhost:4502/crx/de).
Click the /etc/map/http folder and click Create > Create Node:
Create the following property for this node:
Click Save All.
Alternatively, you can specify the text for matching the requested URL as a sling:match property (See Mappings for Resource Resolution in the Apache Sling documentation).
Thanks!!
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies