After our recent in place upgrade of AEM 6.1 to 6.2, the shortened(without content) https URL's stopped working with 404 error but the same URL's are working with http.
Based on our analysis, it looks to be the system is not honoring the /etc/map.publish/https mapping after upgrade.
Current AEM version: AEM 6.2+SP1+CFP 7
It appears that the AEM Server is not able to recognize that the originating request was SSL and hence mapping it incorrectly leading to HTTP 404.
To further qualify and resolve this issue, please verify that
1) In your Apache HTTPD configuration, set a new header using following information
At the bottom of the httpd.conf: RequestHeader set X-Forwarded-Port "-1"
2) Then in your Dispatcher configuration, please allow the header in /clientheaders section to be passed onto AEM. If the clientheaders section is set to allow all, then nothing needs to be done but if not, you can add the following to the list of headers
In the dispatcher.any/clientheaders.any: "X-Forwarded-Port"
If the Issue still persists after verifying the above, please log a support ticket.