Nginx exclude directory from rule

I try to exclude 2 directories from my cache rule in nginx. So I got this cache rule, that works great. location ~* .(js|jpg|jpeg|gif|png|css|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|woff|woff2|svg)$ { etag on; if_modified_since exact; add_header Pragma “public”; add_header Cache-Control “max-age=31536000, public”; } The problem with this rule is, that its set the header for every jpg and png file and…

Details

Can I use AlUpdate instead of lUpdate for ipmi update on supermicro servers?

I have several different SuperMicro servers and I want to create an internal repository with firmwares and create a package with updating utility. In the ipmi firmware archives that I downloaded from supermicro web site, they include update utility for linux. For older motherboards (for example, X9DRW-7TPF) it is called lUpdate, but for more modern…

Details

How to convert json Request to an array in symfony?

I am trying to convert the JSON Request $request to an array. I have output something like this: ^ Symfony\Component\HttpFoundation\Request {#45 +attributes: Symfony\Component\HttpFoundation\ParameterBag {#74 #parameters: array:3 [ “_route” => “app_movie_create” “_controller” => “App\Controller\MovieController::create” “_route_params” => [] ] } +request: Symfony\Component\HttpFoundation\ParameterBag {#96 #parameters: [] } +query: Symfony\Component\HttpFoundation\ParameterBag {#69 #parameters: array:1 [ “title” => “Homecoming” ] }…

Details