I'm trying to force nginx to process through php-fpm following urls:
any url ending with
- .php
- /sitemap.xml
- /api/api.js
I'm trying the following regex, but it does not work:
location ^~ ^((.*\.php)|/sitemap.xml)+$ {
I'm trying to force nginx to process through php-fpm following urls:
any url ending with
I'm trying the following regex, but it does not work:
location ^~ ^((.*\.php)|/sitemap.xml)+$ {
收起
Try ...
location ~ (\.php|sitemap\.xml|api/api\.js)$ {
...
}
报告相同问题?