• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Site available on http but only partially on https

Status
Not open for further replies.

Sempiterna

Chevereto Member
Hi,

For over a year i've only ran my installation of chevereto on http only, but now I would also like to make it available on https. The problem is that while the site is viewable on http, it is only partially viewable on https. This is caused by the site (trying to) load the css, icons, logo, etc from http instead of https as if it is hardcoded somewhere.

I tried to look it up in the config and database, but there seems to be no hardcoded "http" anywhere.

Version: 3.8.12
Url: https://blobz.com
Webserver: nginx
 
Chevereto auto detects HTTPS by analyzing the $_SERVER array, if the HTTPS is not configured properly the system will use HTTP.

PHP:
define('G_HTTP_PROTOCOL', ((!empty($_SERVER['HTTPS']) and strtolower($_SERVER['HTTPS']) == 'on' ) or $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') ? 'https' : 'http');

If the system is using HTTP is because HTTPS is not enabled properly in that server. HTTPS needs a cert and some configuration, you can't just change HTTP to HTTPS via rewrite and expect to work as a real HTTPS.

This is not Chevereto related, ask your hosting company about it.

Cheers,
Rodolfo.
 
Last edited:
Status
Not open for further replies.
Back
Top