diff --git a/default.conf b/default.conf index 330b58f..f043cfb 100644 --- a/default.conf +++ b/default.conf @@ -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;