Tocmai am creat un subdomeniu numit virtual din cPanel și eroarea sa returnată 500. Când verific error_log, văd eroarea de mai jos:
AH00124: Solicitarea a depășit limita de 10 redirecționări interne din cauza
eroare probabilă de configurare. Utilizați „LimitInternalRecursion” pentru a crește
limita dacă este necesar. Utilizați „LogLevel debug” pentru a obține un backtrace.,
referitor: http://myhostname.com/index.html
aici este jurnalul complet:
[Luni, 09 mai 06:21:16.819771 2022] [core:error] [pid 16737:tid 47256050861824] [client 182.2.38.229:64126] AH00124: Solicitarea a depășit limita probabilă de configurare a redirecționării 10. Utilizați „LimitInternalRecursion” pentru a crește limita dacă este necesar. Utilizați „LogLevel debug” pentru a obține un backtrace., referitor: http://virtual.myhostname.com/index.html
[Luni, 09 mai 06:21:16.819775 2022] [core:debug] [pid 16737:tid 47256050861824] core.c(3931): [client 182.2.38.229:64126] /AH/public/path>12:0r0126 public/path/public/path/public/path/public/path/public/path/public/path/public/path/public/path/public/path/favicon.ico, referitor: http://virtual.myhostname. com/index.html
[Luni 09 mai 06:21:16.819778 2022] [core:debug] [pid 16737:tid 47256050861824] core.c(3938): [client 182.2.38.229:64126] /AH/redirect = 2:-r>00012 path/public/path/public/path/public/path/public/path/public/path/public/path/public/path/public/path/favicon.ico, referitor: http://virtual.myhostname.com/ index.html
[Luni, 09 mai 06:21:16.819781 2022] [core:debug] [pid 16737:tid 47256050861824] core.c(3938): [client 182.2.38.229:64126] /2:r>0000126/2:-r>000public path/public/path/public/path/public/path/public/path/public/path/public/path/public/path/favicon.ico, referitor: http://virtual.myhostname.com/index.html
[Luni, 09 mai 06:21:16.819784 2022] [core:debug] [pid 16737:tid 47256050861824] core.c(3938): [client 182.2.38.229:64126] /2:r>0000050861826] 2:-r>000012:-public path/public/path/public/path/public/path/public/path/public/path/public/path/favicon.ico, referitor: http://virtual.myhostname.com/index.html
[Luni, 09 mai 06:21:16.819787 2022] [core:debug] [pid 16737:tid 47256050861824] core.c(3938): [client 182.2.38.229:64126] /2:r>00001264126] 2:-r>000012 path/public/path/public/path/public/path/public/path/public/path/favicon.ico, referitor: http://virtual.myhostname.com/index.html
[Luni, 09 mai 06:21:16.819790 2022] [core:debug] [pid 16737:tid 47256050861824] core.c(3938): [client 182.2.38.229:64126] /AH/redirect = 2:-r>00012 path/public/path/public/path/public/path/public/path/favicon.ico, referitor: http://virtual.myhostname.com/index.html
[Luni, 09 mai 06:21:16.819793 2022] [core:debug] [pid 16737:tid 47256050861824] core.c(3938): [client 182.2.38.229:64126] /AH/redirect = 2:-r>00012 path/public/path/public/path/public/path/favicon.ico, referitor: http://virtual.myhostname.com/index.html
[Luni 09 mai 06:21:16.819796 2022] [core:debug] [pid 16737:tid 47256050861824] core.c(3938): [client 182.2.38.229:64126] /AH/redirect = de la 2:r>0000012 path/public/path/public/path/favicon.ico, referitor: http://virtual.myhostname.com/index.html
[Luni, 09 mai 06:21:16.819799 2022] [core:debug] [pid 16737:tid 47256050861824] core.c(3938): [client 182.2.38.229:64126] /AH/redirect = 2:r>00012 path/public/path/favicon.ico, referitor: http://virtual.myhostname.com/index.html
[Luni 09 mai 06:21:16.819802 2022] [core:debug] [pid 16737:tid 47256050861824] core.c(3938): [client 182.2.38.229:64126] /AH/redirect = 2:-r>00012 cale/favicon.ico, referitor: http://virtual.myhostname.com/index.html
[Luni 09 mai 06:21:16.819811 2022] [core:debug] [pid 16737:tid 47256050861824] core.c(3938): [client 182.2.38.229:64126] /AHr>redirect = 2:-convi. ico, referitor: http://virtual.myhostname.com/index.html
Calea virtualhost ar trebui să fie activată /home/user/public_html/path
, dar de ce din jurnal este redirecționat /public/cale
? Nu am .htaccess pe acea cale, chiar dacă adaug .htaccess nu are niciun efect.
aici este virtualhost generat de WHM/cPanel:
<VirtualHost myip:80>
ServerName virtual.myhostname.com
ServerAlias www.virtual.myhostname.com
DocumentRoot /home/user/public_html/path
UseCanonicalName Off
## User user # Needed for Cpanel::ApacheConf
<IfModule userdir_module>
<IfModule !mpm_itk.c>
<IfModule !ruid2_module>
<IfModule !mod_passenger.c>
UserDir disabled
UserDir enabled user
</IfModule>
</IfModule>
</IfModule>
</IfModule>
<IfModule mod_include.c>
<Directory "/home/user/public_html/path">
SSILegacyExprParser On
</Directory>
</IfModule>
<Proxymatch ^https?://127\.0\.0\.1:(2082|2083|2077|2078|2079|2080|2086|2087|2095|2096)/>
<IfModule security2_module>
SecRuleEngine Off
</IfModule>
<IfModule security3_module>
modsecurity_rules 'SecRuleEngine Off'
</IfModule>
</Proxymatch>
<IfModule mod_suphp.c>
suPHP_UserGroup user user
</IfModule>
<IfModule suexec_module>
<IfModule !mod_ruid2.c>
SuexecUserGroup user user
</IfModule>
</IfModule>
<IfModule ruid2_module>
RMode config
RUidGid user user
</IfModule>
<IfModule mpm_itk.c>
AssignUserID user user
</IfModule>
<IfModule mod_passenger.c>
PassengerUser user
PassengerGroup user
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ /home/user/public_html/path/cgi-bin/
</IfModule>
</IfModule>
</VirtualHost>
Celălalt subdomeniu utilizează aceeași configurație generată de gazdă virtuală ca mai sus, dar funcționează bine. Care este motivul acestei probleme?