skip to Main Content

Nginx overwrites desired port when using proxy_pass on a subdirectory to direct request to node server

I have the following nginx config: server { listen 80; listen 443 ssl; ssl on; ssl_certificate /home/tom/local.tjrhodes.com.pem; ssl_certificate_key /home/tom/local.tjrhodes.com-key.pem; root /home/tom/Nextcloud/local.tjrhodes.com/webroot/; error_log /home/tom/Nextcloud/local.tjrhodes.com/logs/error.log; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name local.tjrhodes.com;…

VIEW QUESTION

Proxy_pass with Nginx and docker

I have a simple task with nginx, but I cannot work it out: I have a domain example.com, which points to a local server 192.168.1.150, which runs nginx in docker. But I have another container, "myapp" running on port 8080,…

VIEW QUESTION

Nginx proxy pass not resolving

I'm new to Nginx and I'm trying to define locations to match certain patterns. I'm not sure if this is the correct approach, but this what I figured out so far. Requirements Location Proxy Pass /api/cars/carID?queryString https://myapi/api/cars/carID?queryString /api/cars/carID/model?queryString https://myapi/api/cars/carID/model?queryString /api/cars/carID/anythingElse?queryString…

VIEW QUESTION
Back To Top
Search