User Taxick reported that images on the login page of their Discourse forum at wpdebat.dk were not displaying, though the image URLs worked when opened directly. Arkshine suggested enabling Force HTTPS to resolve mixed content issues, but this broke site functionality for Taxick, forcing them to revert the setting. Further troubleshooting revealed the issue stemmed from inconsistent hostname configuration — using www.wpdebat.dk in DISCOURSE_HOSTNAME while the site also served wpdebat.dk. Taxick resolved the problem by removing www. from the settings, restoring image display. Arkshine advised choosing either www or non-www consistently, updating app.yml, and setting up a redirect in Virtualmin for SEO and analytics consistency. The root cause was misconfigured domain redirects and mixed content due to hostname mismatch.
From what I see, wpdebat.dk works on my side. You have a valid SSL certificate for root and www. You still have mixed content; as the guide says, you need force https to fix that.
Is it wanted to use www.wpdebat.dk instead of wpdebat.dk in DISCOURSE_HOSTNAME?
I don’t know if it can cause an issue, but I would use wpdebat.dk and tell Virtualmin to redirect www → non-www (or the inverse if you prefer to keep www).
[ציטוט=“Arkshine, פוסט:7, נושא:361288”]
במקום wpdebat.dk ב-DISCOURSE_HOSTNAME?
אני לא יודע אם זה עלול לגרום לבעיה, אבל הייתי משתמש ב-wpdebat.dk ומספר ל-Virtualmin ל…
[/ציטוט]
מאחר שאתה משתמש ב-www בהגדרות Discourse, זה עלול לגרום לבעיות.
אני עדיין מעודד אותך לבחור בין www או non-www, להתאים את app.yml, ולבצע הפניה ב-Virtuamin. זה ייתן לך יתרונות SEO (עקביות ב-URL, מניעת כפילות תוכן, ניתוח תחת דומיין אחד, וכו’).