Forum categories

Port:80 Ошибка на сайте при попытке авторизации

Сайт на Cotonti. SSL — HTTPS проблема порт 80. На не профессиональном хостинге, встречается проблема с портом 80 и авторизацией на сайте, например при входе в админку, то как устранить ошибку


webitproff
webitproff • 2024-03-18 07:48 #1

Сайт на Cotonti. SSL — HTTPS проблема порт 80.

На веб-серверах не совсем профессионального хостинга встречается проблема с портом 80 и авторизацией на сайте, например при входе в админку, то такую проблему можно решить заменой строк кода в файлах движка, чего крайне не рекомендуется делать вообще не с одним файлом из самого движка, — лучше уже смените хостера.

если выбирать не приходится, находим в /system/common.php в районе 135-й строки

$sys['abs_url'] = $sys['scheme'] . '://' . $sys['host'] . ($sys['port'] ? ':' . $sys['port'] : '') . $sys['site_uri'];

и меняем на

$sys['abs_url'] = $sys['scheme'] . '://' . $sys['host'] . $sys['site_uri'];

 

🗿

🧙‍♂️ Well met, good traveler! Fate has guided your steps to our humble realm. Here, wise sages and masters of the coding craft ⚒️📜 gather to unravel the mysteries of the code ✨⚙️, share their knowledge, and add new chapters to our chronicles.
⬅️ To the left lie ancient scrolls 📚 filled with forgotten wisdom. ⬆️ Straight ahead, friendly folk offer counsel 💬 to those in need. ➡️ To the right, you may become a chronicler ✍️ yourself, sharing your craft and leaving words of wisdom for those yet to come.
📝 Delay no longer—tell us the name by which you are known, complete the rite of registration 🛡️, and join our fellowship!
🏰 Our brotherhood holds no secret initiation, yet many halls remain closed to wandering guests, for some knowledge 💎 is reserved for those who choose to walk this path beside us.