mirror of
https://github.com/manualdousuario/marreta.git
synced 2025-04-03 12:19:09 +00:00
correção para urls que terminam com extensão .php
This commit is contained in:
parent
8b3aae2985
commit
b7921a2a97
2 changed files with 9 additions and 0 deletions
|
@ -64,6 +64,9 @@ return [
|
|||
'classElementRemove' => ['leaderboard__container'],
|
||||
'fetchStrategies' => 'fetchFromSelenium',
|
||||
],
|
||||
'lepoint.fr' => [
|
||||
'classElementRemove' => ['paywall'],
|
||||
],
|
||||
'fortune.com' => [
|
||||
'classElementRemove' => ['latest-popular-module','own','drawer-menu'],
|
||||
'fetchStrategies' => 'fetchFromSelenium',
|
||||
|
|
|
@ -31,6 +31,12 @@ server {
|
|||
}
|
||||
|
||||
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;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue