nginx - clear cache on http PUT or POST

I am testing nginx as a reverse proxy cache with REST resources (Spring MVC + ETag). Every GET is cached ok. Is it possible to clear the nginx cache for a specific resource whenever it gets...

How to properly handle a gzipped page when using curl?

I wrote a bash script that gets output from a website using curl and does a bunch of string manipulation on the html output. The problem is when I run it against a site that is returning its...

Why isn't varnish taking into account the malloc limit?

I have varnish running with -s malloc,25G, but the process keeps growing until it consumes all the server memory and it crashes, restarting the cache. Any idea what I can check to see what's...

Can I use fontawesome icons without the bootstrap css?

I have downloaded the fontawesome icons into a folder and the CSS into another folder. I would like to try them out now but I am currently getting: "Error 503 Backend is unhealthy, Backend is...

How to check if Varnish cache is working correctly?

I'm using Varnish Cache on a Wordpress website that runs on Nginx. It's configured the way mentioned in this blog. It's working, but I'm not sure if it's actually serving content from the...

Install rst2man failed for varnish agent [fix]

I'm trying install varnish agent on ubuntu server using virtual box. There is a message in the middle installation process that say "you need rst2man installed to make dist". When I tried install...

Getting line items in Drupal Commerce after checkout

I am writing some code to access line item information after checkout, specifically in hook_commerce_checkout_complete(). When I run the following code in Devel (/devel/php) it works great,...

Strange "pattern not match" error on fluentd

Can someone tell if its normal that fluentd raise this error in td-agent.log file? 2015-07-31 13:15:19 +0000 [warn]: pattern not match: "- - - [31/Jul/2015:13:15:19 +0000] GET...

Debugging 504 Gateway Timeout and its actual cause and solution

We are running following stack on our web server Varnish + Nginx + FastCGI (php-fpm) on RHEL 6.6 Its a dynamic website with different result sets everytime and has around 2 million url's indexed...

Elastic Beanstalk not loading assets for Ruby on Rails

I have a ruby on rails application that works locally in production locally but will not work when I upload it to EB, It breaks everything. When it is local it looks like this And here is my eb...

Varnish on Ubuntu 16 cannot read -f file custom default.vcl

I just installed a fresh install of Ubuntu 16.04 and I can't get Varnish to work with a custom config file, like I could with Ubuntu 14.04. I have read that changes to /etc/default/varnish have no...

npm update does not do anything

When I execute this code in my application folder where the package.json is located: npm update or npm update --save-dev it does not do anything. But when I do npm outdated is shows many outdated...

HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "www.reddit.com": No address associated with hostname

hello im trying to caching the GET request that im doing from reddit service. I tested with another api and works but i can't find the reason why i can't have control of the cache on this one. I...

Curl request incomplete on one server but not another

I'm running curl -L -v http://www.homeaway.com/icalendar/594a74016bdb4733bb9645bce1b0e056.ics on an Ubuntu 14.04 server with curl version 7.35.0. One server returns the ical data, one does not....

Varnish FetchError overflow

I am Getting a lot of varnish 503 error un uncached pages , all these error have one thing in common , checking varnish logs it stats "FetchError overflow". Also error is not consistent ,...

Is this a varnish hit?

I am having an issue with Varnish installed with Magento 2, I have followed this tutorial...

How to fix this magento 2 apptha marketplace issue?

1 exception(s): Exception #0 (Exception): Notice: Undefined offset: 1 in /var/www/html/magento2/app/code/Apptha/Marketplace/view/frontend/templates/product/manage.phtml on line 191 Exception #0...

How do i log errors while writing custom varnish module?

I am learning varnish and about extending the varnish vmod with inline c code. And I am starting it with writing my own custom varnish module. I want to log errors and failure from my custom...

Apache: cURL: ssl3_get_record:wrong version number for apache2 ssl

I have a server with 2 Magento sites running simultaneously. Site 1 works fine under SSL, while site 2 returns an error whenever I visit it. I tried to test the website using cURL: curl -v...

Symfony 4 login form : authenticating successfully, but authentication immediately lost after redirect

I built a login form following this form login setup doc. This is working fine on localhost but not on the production server. On both localhost and prod, authentication begins successfully Guard...

send multiline form with ansible uri module

I'm trying to upload a multi-line file to a appdynamics controller, using the ansible uri module. Any advice? As you'll notice in the snippets, I'm brand new to Ansible... It works fine with...

Same request, different response between Postman and Axios (node)

I'm sending a post request with Postman, and I am able to login. Using the same header and data, I get a different response with axios in node. I compared the request using Fiddler: data...

Orders do not exist in Magento 2 but customer payments successfully captured with assigned order numbers

Platform M2.3.4 Date: 29-Apr-2020 Situation: There was a configuration error in Redis & Varnish settings that caused checkout issues making the checkout time much longer than expected for users...

Magento 2 tinymce missing from pub/static

I'm getting a TinyMCE error on our admin site after upgrading from 2.2x to 2.3.5. Here are the errors I am seeing: static/version1599523842/adminhtml/Magento/backend/en_US/tinymce.js...

Varnish MISS on some URL's, but HITS on other

We are using Magento 2 with Varnish cache We only get Varnish Cache HIT on very few /catalogsearch/result/ pages, and we really can not figure out why we don't get cache HIT on all...

Nginx proxy - proxy_set_header - custom header from site.conf (For Varnish Cache)

Is it possible to send a custom header in your website and then forward it using proxy_set_header to Varnish? Info I have moved folder locations a little bit - everything are included correctly...

Varnish 301 redirecting loop Wordpress website

Every few hours Varnish caching 301 redirection loop to domain of site itself, its happen only to one of my wordpress sites. The problem began from the wordpress plugin JF3_Maint_Redirect, by...

Varnish 6 LTS /w CentOS 8 not respecting memory limits?

I hope I find you allright. So, I had Varnish 6.x LTS on Centos 7 on a server with 64Gb of RAM, practically working perfectly as configured, and I updgraded my setup to a server with 128Gb of RAM...

Varnish not keeping cache

My varnish cache will only keep items cached for a few minutes. I have changed varnish configurations to keep items cached for a week. Here is my default.vcl: # VCL version 5.0 is not supported so...

Nginx Php-fpm 7.3 Can't read PHP files from a particular folder

We have a Magento 2 website. For some reason our Nginx/PHP-FPM is unable to read files from MAGEROOT/pub/ folder other than index.php. We are getting the following error in Nginx Log "Unable to...