correção para urls que terminam com extensão .php

This commit is contained in:
Renan Bernordi 2025-02-08 00:56:06 -03:00
parent 8b3aae2985
commit b7921a2a97
2 changed files with 9 additions and 0 deletions

View file

@ -64,6 +64,9 @@ return [
'classElementRemove' => ['leaderboard__container'], 'classElementRemove' => ['leaderboard__container'],
'fetchStrategies' => 'fetchFromSelenium', 'fetchStrategies' => 'fetchFromSelenium',
], ],
'lepoint.fr' => [
'classElementRemove' => ['paywall'],
],
'fortune.com' => [ 'fortune.com' => [
'classElementRemove' => ['latest-popular-module','own','drawer-menu'], 'classElementRemove' => ['latest-popular-module','own','drawer-menu'],
'fetchStrategies' => 'fetchFromSelenium', 'fetchStrategies' => 'fetchFromSelenium',

View file

@ -31,6 +31,12 @@ server {
} }
location ~ \.php$ { location ~ \.php$ {
if ($uri ~ ^/p/) {
rewrite ^/p/(.*)$ /index.php?url=$1 last;
}
if ($uri ~ ^/api/) {
rewrite ^/api/(.*)$ /index.php?url=$1 last;
}
include snippets/fastcgi-php.conf; include snippets/fastcgi-php.conf;
fastcgi_pass 127.0.0.1:9000; fastcgi_pass 127.0.0.1:9000;