Apache with PHP-FPM - Manipulate Request-URI

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Apache with PHP-FPM - Manipulate Request-URI

Postby petiz » 13. March 2020 12:44


im looking for a way to remove a string from the REQUEST_URI in the Vhost-Configuration when the URI matches a specific pattern, for example:

Code: Select all
<LocationMatch "/en*">
   SetEnv Request_URI "New Request-Uri without /en"

<FilesMatch \.php$>
   SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/"

This code does not work (of course).
I just want to explain what i need:

My goal is, that when the URI matches an "/en" at the beginning of the URI, the new REQUEST_URI which PHP-FPM uses is without the "/en" at the Beginning of the Request-Uri.

Thanks for your help in advance :)
Posts: 1
Joined: 13. March 2020 11:26
XAMPP version: 3
Operating System: LInux Mint

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 9 guests