Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

https doesn't show

Ricardo Ricardo   ( User )

Commented 1 week ago

Hi,
After installing Akaunting, I have noticed that the connection isn't secure(doesn't show as https) and I have installed an SSL in my server.
There is nay way where we can change from HTTP to https ?

Alexander Bela   ( User )

Commented 1 week ago

Hello Ricardo, for a standard setup you should check if in the ".env" file in your install directory there is the correct value for "APP_URL": it should be something like "https://...".
I had the same issue as in the setup assistant I accidentially used http instead of https and for that the .env-file was generated accordingly.

Kind regards, Sascha

Ricardo Ricardo   ( User )

Commented 1 week ago

Hi Alexander,

Thank you for the reply, in the .env file the APP_URL have https.

There is any other way we can check or force to use https all the time?

Alexander Bela   ( User )

Commented 5 days ago

Hello Ricardo,
In my case the redirection worked after a few hours (perhaps try to clean the cache or restart the http server or something).
You can additionally set the https enforcement in the .htaccess file in document root:
see https://akaunting.com/forum/discussion/installation-update/force-https
For me (running Akauting as a subdomain) the following entry worked:
...

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

...
Kind regards, Alex

Ricardo Ricardo   ( User )

Commented 5 days ago

Thank you Alexandra,
Going to try, using the .htaccess i believe will solve this.

Please login or register to leave a response.

Showing 1 to 5 of 5 discussions