mirror of
https://github.com/manualdousuario/marreta.git
synced 2026-10-19 15:33:32 +00:00
remove fastcgi rewrite
This commit is contained in:
parent
055fbce0b2
commit
72ade84b3f
1 changed files with 0 additions and 14 deletions
14
default.conf
14
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue