Awesome, this approach totally work, thank you very much: worker_processes auto; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_byby sanflores - Nginx Mailing List - English
First of all, thanks for your help. Here is my configuration: cat nginx.conf ----------------------------------------------------------------------------------------------------- worker_processes auto; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { default_type application/octet-stream; loby sanflores - Nginx Mailing List - English
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 ....by sanflores - Nginx Mailing List - English
I have an Angular app and need to use puppeteer for SSR. In order to make it work I need to send the request with the body but I can't figure how to make these things work together. if ($limit_bots = 1){ proxy_pass http://localhost:3000/puppeteer/download/html/; proxy_method GET; proxy_set_header content-type "application/json&quoby sanflores - Nginx Mailing List - English
I'm using tomcat as a backend (using websocket), and is hostead on AWS behind a balancer. After a some time (acording to timeouts) I'm starting to get the error that the upstream sent no valid HTTP/1.0, but what is strange, is that I'm only using HTTP/1.1, this is my configuration: ------------ # This file was overwritten during deployment by .ebextensions/customs.config userby sanflores - Nginx Mailing List - English