Hello,
Centos 7, Apache (mod_php) was upgraded from 2.4.49 to 2.4.54 after that error log start filling with error reports:
--
[Thu Jun 16 23:25:09.039564 2022] [core:alert] [pid 15282] [client 74.125.151.103:0] /home/agro/domains/agro.tld/private_html/.htaccess: RewriteCond: cannot compile regular expression '/\\index\\.php.*'
[Thu Jun 16 23:25:10.164514 2022] [core:alert] [pid 17878] [client 74.125.151.107:0] /home/agro/domains/agro.tld/private_html/.htaccess: RewriteCond: cannot compile regular expression '/\\index\\.php.*'
--
with htaccess like this:
--
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Options -Indexes
RewriteCond %{REQUEST_URI} /ims.*
RewriteCond %{REQUEST_URI} !/_files.*
RewriteCond %{REQUEST_URI} !/favicon\.ico.*
RewriteCond %{REQUEST_URI} !/\index\.php.*
RewriteCond %{REQUEST_URI} !/\ims\.php.*
RewriteRule ^.* /ims.php [L]
RewriteCond %{REQUEST_URI} !/ims.*
RewriteCond %{REQUEST_URI} !/_files.*
RewriteCond %{REQUEST_URI} !/favicon\.ico.*
RewriteCond %{REQUEST_URI} !/\index\.php.*
RewriteCond %{REQUEST_URI} !/\ims\.php.*
RewriteCond %{REQUEST_URI} !/robots\.txt.*
RewriteCond %{REQUEST_URI} !/sitemap\.xml.*
RewriteCond %{REQUEST_URI} !/receiver\.html.*
RewriteCond %{REQUEST_URI} !/sitemap_1\.xml.*
RewriteCond %{REQUEST_URI} !/sitemap_2\.xml.*
RewriteCond %{REQUEST_URI} !/sitemap_imex\.xml.*
RewriteCond %{REQUEST_URI} !/uploads.*
RewriteRule ^.* /index.php [L]
--
Nothing changed in webserver configs afer updgare. So I must create custom_versions.txt and recompile/downgrade Apache to 2.4.51 - all works fine now!
--
Can anybody say what's wrong in new Apache version so it don't want to work with asterisks "*"?
Thanks!
Centos 7, Apache (mod_php) was upgraded from 2.4.49 to 2.4.54 after that error log start filling with error reports:
--
[Thu Jun 16 23:25:09.039564 2022] [core:alert] [pid 15282] [client 74.125.151.103:0] /home/agro/domains/agro.tld/private_html/.htaccess: RewriteCond: cannot compile regular expression '/\\index\\.php.*'
[Thu Jun 16 23:25:10.164514 2022] [core:alert] [pid 17878] [client 74.125.151.107:0] /home/agro/domains/agro.tld/private_html/.htaccess: RewriteCond: cannot compile regular expression '/\\index\\.php.*'
--
with htaccess like this:
--
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Options -Indexes
RewriteCond %{REQUEST_URI} /ims.*
RewriteCond %{REQUEST_URI} !/_files.*
RewriteCond %{REQUEST_URI} !/favicon\.ico.*
RewriteCond %{REQUEST_URI} !/\index\.php.*
RewriteCond %{REQUEST_URI} !/\ims\.php.*
RewriteRule ^.* /ims.php [L]
RewriteCond %{REQUEST_URI} !/ims.*
RewriteCond %{REQUEST_URI} !/_files.*
RewriteCond %{REQUEST_URI} !/favicon\.ico.*
RewriteCond %{REQUEST_URI} !/\index\.php.*
RewriteCond %{REQUEST_URI} !/\ims\.php.*
RewriteCond %{REQUEST_URI} !/robots\.txt.*
RewriteCond %{REQUEST_URI} !/sitemap\.xml.*
RewriteCond %{REQUEST_URI} !/receiver\.html.*
RewriteCond %{REQUEST_URI} !/sitemap_1\.xml.*
RewriteCond %{REQUEST_URI} !/sitemap_2\.xml.*
RewriteCond %{REQUEST_URI} !/sitemap_imex\.xml.*
RewriteCond %{REQUEST_URI} !/uploads.*
RewriteRule ^.* /index.php [L]
--
Nothing changed in webserver configs afer updgare. So I must create custom_versions.txt and recompile/downgrade Apache to 2.4.51 - all works fine now!
--
Can anybody say what's wrong in new Apache version so it don't want to work with asterisks "*"?
Thanks!
Last edited: