Emoticon not working after enabling https
Asked by krishna vaitla:

*Emoticons not working it is pointing to http instead of https*

*When i add emoticon and save it in logs it is redirecting to "http" while my base URL is https://xxxxxx:8443*

*http://xxxxxxx:8443/emoticons/star_red.svg*

CURRENT OUR CONFLUENCE VESRION :6.14.1

*I don't understand what did i missed please check below if my configuration is correct below.*

*vim server.xml:*

1. *Connector port="8443" maxHttpHeaderSize="8192"*   
   *SSLEnabled="true"*   
   *maxThreads="150" minSpareThreads="48"*   
   *clientAuth="false"*   
   *scheme="https"*   
   *secure="true"*   
   *keystorePass="changeit"*   
   *keystoreFile="/test/server.pkcs12"*   
   *keystoreType="PKCS12"*   
   *protocol="org.apache.coyote.http11.Http11Nio2Protocol"*   
   *enableLookups="false" sslProtocol="TLSv1.2"*   
   *sslEnabledProtocols="TLSv1.2" disableUploadTimeout="true"*   

> **vim /etc/httpd/conf.d/server.xml**
>
> RewriteEngine On  
> RewriteCond %{HTTPS} !=on  
> RewriteRule \^/?(.\*) https://%{SERVER_NAME}/$1 \[R,L\]
>
> \<VirtualHost \*:443\>  
> ProxyPreserveHost On  
> ProxyRequests Off  
> ServerName confluence.com  
> ServerAlias confluence.com  
> SSLEngine On  
> SSLCertificateFile /app/scm.pem  
> SSLCertificateKeyFile /app/scm.key  
> Redirect Permanent / https://xxxxxxx:8443/  
> Redirect Permanent /synchrony https://xxxxxx:8443/synchrony  
> \</VirtualHost\>


Answers:
author: Jonas Andersson
body: Same issue here with 6.15.2.. When i look at the markup of the page, all emoticons are using a http-url as opposed to https that i see everywhere else..

In my case i also noted a reversed proxy issue where "<http://our.confluence.installation/s/en_US/8100/4410012ac87e845516b70bc69b6f7a893eabaa5a/_/images/icons/emoticons/warning.svg>" was rewritten to "<http://our.confluence.installation>**s**/en_US/....." (so basically stripping the 3rd / which makes the site not resolve at all..)

No matter if this rewrite issue is caused by our reverse proxy or not, the url should not be http either way. Yes, my server.xml and server url in the UI is all right, it works absolutely perfect in all other urls, uris..

Really hoping this will not mean i will have to spend another weekend to upgrade confluence as we should not be paying arms and legs to get to beta-test your software.


author: Ronny Weil
body: Same problem without HTTPS in Confluence Version 6.15.3.

No Emoticons.

comments: author: Normann P_ Nielsen _Netic_
body: I have upgraded from 6.15.1 to 6.15.3 - no Emoticon icons.

They are in the filesystem:

root@atlassian01:/pack/confluence/confluence# find . -name lightbulb.svg  
./images/icons/emoticons/lightbulb.svg  
root@atlassian01:/pack/confluence/confluence# find . -name check.svg  
./images/icons/emoticons/check.svg  
root@atlassian01:/pack/confluence/confluence#

And its not http/https:

![Screenshot 2019-05-02 at 07.43.14.png](https://community.atlassian.com/t5/image/serverpage/image-id/53263i3D89C426431066F6/image-size/large?v=v2&px=999 "Screenshot 2019-05-02 at 07.43.14.png")


author: Diego
body: Hello there Krishna! Thanks for reaching out.

It looks like that you are using Apache as a mean to implement SSL in your environment. If that is the case, there are a few things missing. You might want to check our documentation on this:

**[Securing your Atlassian applications with Apache using SSL](https://confluence.atlassian.com/kb/securing-your-atlassian-applications-with-apache-using-ssl-838284349.html)**

Check all the mandatory fields in your server.xml from Confluence and Apache. They still need to have some settings added.

Let us know if the documentation helps you out!

comments: author: krishna vaitla
body: [@Diego](/t5/user/viewprofilepage/user-id/1188952) : Thanks i will verify that and get back to you.


author: Diego
body: Thanks Krishna!

Let us know about your findings.


Tags: confluence-server