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

Parents Reply
  • Dear AdityaU (adityau0001)

    Thank you for your reply.

    When I hardcode   https://xxx.com/suite/ in the url, the site could be run properly and users could be logged In, so it could be concluded that the certificates and SERVER_AND_PORT property are correctly set.

     

    Indeed, for the custom.properties file, i merely changed the conf.suite.SCHEME value from http to https  and the conf.suite.SERVER_AND_PORT value was remained as xxx.com

Children