This would be great, but I don't know how to server the context from nginx with a rewrite, what would work is: if ($is_NOT_a_bot) { rewrite in order to save the content in /usr/share/nginx/html } proxy_pass .... Posted at Nginx Forum: https://forum.nginx.org/read.php?2,290773,290820#msg-290820