Relative Content

Tag Archive for nginxnginx-reverse-proxynginx-config

nginx proxy pass to nodejs running on same server at port 3000

I have a requirement where i proxy pass the request coming on my server ip to nodejs server which is running on the same server at port 3000 so that when i access my application using browser i don’t have to give ip:port on the browser but instead i just hit on the browser ip and then nginx proxy pass the request to nodejs which is running on port 3000

nginx `try_files` do not return the right file

worker_processes auto; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; # Map to determine the preferred image format map $http_accept $image_suffix { default “”; “~*image/avif” “.avif”; “~*image/webp” “.webp”; } server { listen 80; location /public/images/ { root /usr/share/nginx/html; # Extract the base name without extension set $base_uri $uri; if ($uri ~* ^(.+).(jpeg|jpg|png)$) […]