Redirect HTTP to HTTPS by Apache 2.4

Hi guys,

 

I am setting up a redirect for HTTP to HTTPs by Apache 2.4 for my Appian v18.1 site installed in Ubuntu 16.04

 

I followed the Appian Guide and included the lines below in my Apache httpd.conf file.

https://docs.appian.com/suite/help/18.1/Configuring_Apache_Web_Server_with_JBoss.html

<VirtualHost *:80>
ServerAlias *
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
</VirtualHost>


But the site failed to redirect to https when i hardcode http://xxx.com/suite/ in the url. Do you have any clues?

Thanks in advance.

 

  Discussion posts and replies are publicly visible