Relative Content

Tag Archive for nginx

Nginx route traffic based on domain

I’m brand new to nginx. After quite a bit of searching and trial and error, I was able to get the following working. It is doing what I want, but it is not the setup that I want.

Nginx route traffic based on domain

I’m brand new to nginx. After quite a bit of searching and trial and error, I was able to get the following working. It is doing what I want, but it is not the setup that I want.

Nginx route traffic based on domain

I’m brand new to nginx. After quite a bit of searching and trial and error, I was able to get the following working. It is doing what I want, but it is not the setup that I want.

Why are changes visible on my server’s IP (http://:5000) but not on my domain?

I’ve deployed a React app on my server and am using Nginx to serve the static files. The frontend is being served using http-server on port 5000, and Nginx is configured to proxy requests to that port. I can see the latest updates when I access the app using the server’s IP (http://:5000), but the changes are not reflected when I access the app via the domain (https://).

nginx add headers when returning 400 codes

I’m developing an ember.js app with a laravel backend. I’m trying to return http error codes with php if something goes awry. I’ve noticed that when issue a PUT request and return a 400 status code, my CORS headers get ignored by my conf file which breaks my ember frontend. I have no idea why the PUT/400 code combo makes nginx ignore my conf. Any help would be much appreciated.

NGINX in Docker shows wrong IP in $remote_addr

On a Synology-NAS I got NGINX in Docker to forward requests to services.
The services are running in Docker too.
Yesterday, I wanted to make use of fail2ban and found wrong IPs in the watched service-logs.