DirectAdmin i włączony SSL dla domeny - TOO_MANY_REDIRECTS, pętla przekierowań po https |
DirectAdmin i włączony SSL dla domeny - TOO_MANY_REDIRECTS, pętla przekierowań po https |
9.05.2018, 10:48:09
Post
#1
|
|
Grupa: Zarejestrowani Postów: 14 Pomógł: 0 Dołączył: 27.07.2009 Ostrzeżenie: (10%) |
Witajcie,
Zmagam się od wczoraj z następującym problemem. Korzystam z DirectAdmin'a na jednym z VPS, na innych jest czysty Debian, zdecydowanie bardziej preferuję nginx'a. Certyfikaty wildcard SSL zakupione, DA prawidłowo je rozpoznał i pokazał datę ważności. Po włączeniu obsługi SSL dla jednej z domen, na którym stoi sklep internetowy mam błąd ERR_TOO_MANY_REDIRECTS. Umieściłem w pliku .htaccess zalecane przez help DA przekierowania:
Konfigurację vhostów wrzuciłem tutaj: https://pastebin.com/Jv9EZa3X Sklep został zainstalowany w katalogu /public_html/application/public i tam też jest plik .htaccess, który wygląda następująco:
Dzisiaj spróbowałem jeszcze jednej rzeczy. Przeniosłem wszystkie pliki sklepu wraz z katalogami z public_html do private_html. Zmieniłem w DA
na
W lokalizacji /public_html/application/public stworzyłem .htaccess z zawartością: RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Po odświeżeniu domeny sklepu pojawiła się zielona kłódka, niestety są błędy:
Zrobiłem też link symboliczny, ale nie pomogło: ln -s /private_html/application/public -> /public_html/application/public Sprawdziłem wszystkie pliki w katalogu config i nie mogę znaleźć dlaczego skrypt chce wczytywać z public_html. Macie jakieś pomysły a może źle kombinuję? Przypuszczam, że gdzieś trzeba odświeżyć wpisy, w bazie danych nic nie widzę. Sklep www jest na silniku i-sklep.pl (i-systems.pl). Gdyby to była Presta lub coraz bardziej popularny thirtybees to sprawa jest prosta. Dodam jeszcze, że subdomena z zainstalowaną Livezillą do obsługi chatu działa po https prawidłowo. PS. Znalazłem plik ssl_template.php, ale to chyba nie to...
Ten post edytował adikdvb 9.05.2018, 10:58:48 |
|
|
9.05.2018, 12:10:00
Post
#2
|
|
Grupa: Zarejestrowani Postów: 8 068 Pomógł: 1414 Dołączył: 26.10.2005 Ostrzeżenie: (0%) |
Pokaż Autoloader.php, nie ma tam gdzieś żadnego pliku config albo coś?
|
|
|
9.05.2018, 12:19:57
Post
#3
|
|
Grupa: Zarejestrowani Postów: 14 Pomógł: 0 Dołączył: 27.07.2009 Ostrzeżenie: (10%) |
W katalogu application/public jest plik autoload.php:
Wrzucam też plik app_config.php, może tutaj trzeba zmienić?
Ten post edytował adikdvb 9.05.2018, 12:25:28 |
|
|
9.05.2018, 22:41:03
Post
#4
|
|
Grupa: Zarejestrowani Postów: 531 Pomógł: 55 Dołączył: 3.01.2016 Skąd: Łowicz Ostrzeżenie: (0%) |
-------------------- Szukam zleceń Symfony, Laravel, Back-End, Front-End, PHP, MySQL ...
|
|
|
10.05.2018, 20:28:08
Post
#5
|
|
Grupa: Zarejestrowani Postów: 14 Pomógł: 0 Dołączył: 27.07.2009 Ostrzeżenie: (10%) |
Wreszcie działa, brakowało pliku ssl.php z nazwami dozwolonych domen oraz ssl_actions_cache.php z nazwami klas, gdzie ma być włączony SSL.
Ten post edytował adikdvb 11.05.2018, 09:24:58 |
|
|
Wersja Lo-Fi | Aktualny czas: 22.09.2024 - 04:43 |