This configuration works: if ($uri ~ "/(apple|banana|orange)/") { set $nocache 1; } However this does not work: map $uri $nocache { default 0; ~^/(apple|banana|orange)/ 1; } I prefer using map for performance reasons, furthermore "if is evil". Would you point me to the right direction to improve the map statement?by nginxx - How to...
The configuration below only caches "css.php?parameter=x ..." requests. Requests like domain.com/blog/234 are not cached at all. It would be so nice of you to help me out, I tried for days solving this small issue. http { ... fastcgi_cache_path /tmp/php levels=1:2 keys_zone=php:10m inactive=1d; fastcgi_cache_key "$scheme$request_method$host$request_uri"; fastcgi_caby nginxx - How to...
Is this too specific? Or could someone help me where to look and learn about it? Thanks!!!by nginxx - How to...
I like to install magento shop software on my nginx server in a subdirectory. Magento suggests this for installing it in /, but I want to install magento in /shop/. I need to do all these things for /shop/ and not for root as I already have a forum on root. have no clue what to do with things like location ~ .php$ . I think location ~ /shop/.php$ won't do it at all, right? Thanks for your help !by nginxx - How to...
![]() |
![]() |
![]() |
![]() |
|