I've created Nginx conf by redirecting ".php" request to a PHP container and it is working properly. Every ".php" request is redirected to the PHP container.
location ~ .php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass php-container:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors off;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
}
Now, I've to redirect a URL that does not have to .php extension to the PHP container. For example, example.com/reminder needs to redirect to PHP container. Is there any way to configure this?
Please share your suggestion.