location /worklist/ {
try_files $uri $uri/ /worklist/index.php$is_args$args;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index worklist/index.php;
}
#
# from php you can use and index.php getting path as $_SERVER["REQUEST_URI"]
#
you can use:
/worklist/test
and nginx will call /worklist/index.php with $_SERVER["REQUEST_URI"] which value is: "/worklist/test"
/worklist/test
and nginx will call /worklist/index.php with $_SERVER["REQUEST_URI"] which value is: "/worklist/test"
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.