Welcome! Log In Create A New Profile

Advanced

Needs to redirect URL from Nginx container to PHP

Posted by nithinp0204 
Needs to redirect URL from Nginx container to PHP
January 03, 2023 07:56AM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 108
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready