I have this location block within my website.conf:
location ~ ^/([^/?&:'"]+)$ {
try_files $uri @root_path;
}
This part of the file hinders the execution of php files, it always serves them as download.
- How can I exclude *.php files from this regex expression?
- What does that regex even mean?
- Is it even good style to just exclude *.php files in this case?
If somebody could elaborate I would be very grateful.
Some more context: I'm trying out jitsi-meet and I would like to add some php-based functionality to the website.
locationblocks are evaluated in order. You need to make sure that thelocation ~ \.php$block (or similar) is placed above this new block.