zipusyan commited on
Commit
cac40e7
·
verified ·
1 Parent(s): eb81dd7

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +6 -1
nginx.conf CHANGED
@@ -8,13 +8,18 @@ server {
8
  error_log /dev/stderr;
9
 
10
  location / {
11
- try_files $uri $uri/ /index.php$is_args$args;
 
 
 
12
  }
13
 
14
  location ~ \.php$ {
 
15
  fastcgi_pass unix:/run/php/php8.2-fpm.sock;
16
  fastcgi_index index.php;
17
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 
18
  include fastcgi_params;
19
  }
20
 
 
8
  error_log /dev/stderr;
9
 
10
  location / {
11
+ index index.php index.html;
12
+ if (!-e $request_filename) {
13
+ rewrite ^/(.*)$ /index.php/$1 last;
14
+ }
15
  }
16
 
17
  location ~ \.php$ {
18
+ fastcgi_split_path_info ^(.+\.php)(/.+)$;
19
  fastcgi_pass unix:/run/php/php8.2-fpm.sock;
20
  fastcgi_index index.php;
21
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
22
+ fastcgi_param PATH_INFO $fastcgi_path_info;
23
  include fastcgi_params;
24
  }
25