mirror of
https://github.com/manualdousuario/marreta.git
synced 2025-04-07 14:19:08 +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'],
|
'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',
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue