remove fastcgi rewrite

This commit is contained in:
Renan Bernordi 2026-03-04 10:58:37 -03:00
parent 055fbce0b2
commit 72ade84b3f

View file

@ -30,20 +30,6 @@ server {
try_files $uri $uri/ /index.php?$args;
}
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;
# Hide header that reveals PHP version
fastcgi_hide_header X-Powered-By;
}
# Block access to hidden files and directories
location ~ /\. {
deny all;