Questions tagged [nginx-reverse-proxy]

0

votes
0

answer
3

Views

Redirect loop while logged in to jaspersoft

I have installed jasperserver on tomcat 8 on Windows. I want to let user access this via NGinx as reverse proxy. I have installed nginx and created a serverfile for jaspersoft. Everything looks fine when I access the URL of jaspersoft. But as soon as I am logged in I am being redirected from 'https:...
Sander Horst
1

votes
0

answer
382

Views

nginx docker-compose issues mongo with node angular 5 on Windows

I have the following issue, when trying to create a user on the mongo container I am getting the below error. when not using docker and not using the mongo container, but the mongo installed on my harddisk, the user is created with no issues. I have very limited experience/knowledge with nginx and...
oudekaas
1

votes
2

answer
176

Views

Run two nodejs instances through nginx

I am able to get One Node instances instead of two. I don't know why my Second Node is not running First Would like to tell that what I am done. Download Nginx on c drive. Folder contains conf-> Under this Folder have config file i.e nginx.conf Now I Want To run two node instances through nginx. Wha...
Abhay
1

votes
0

answer
345

Views

nginx reverse proxy params docker

when doing a post to let url = '/api/registerCoin' it works. nginx forwards this to server:3000, which is good! When I try the post to /api/updatePost with params nginx doesn't seem to point to the server. I am getting: /api/findPostData Failed to load resource: the server responded with a status...
oudekaas
1

votes
0

answer
14

Views

nginx.conf file load-balacing issue like user load

This is my nginx.conf default file but what i do when face more user load on nginx. what configuration add & edit in file?? how to face load-balcing issue? in ubuntu?nginxpleazz help to soul this issue user www-data; worker_processes auto; pid /run/nginx.pid; events { worker_connections 4096; use ep...
divyang.linux
1

votes
1

answer
258

Views

NGINX, wait for proxy if not available

I have a NGINX set up with reverse_proxy and caching (only caching multiple requests for very short time). The backend nginx calls is running locally (reverse proxy address is localhost:8092). The backend sometimes needs to restart which takes it offline for a duration of ~2-3 seconds. Currently, n...
dx034
1

votes
1

answer
286

Views

AWS Elastic Beanstalk: Nginx reverse proxy is not getting deployed on JAVA env (glassfish)

I tried to follow this doc ( https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/java-se-nginx.html ) but couldn't build the custom nginx conf. I am able to deploy an application and environment and it works. After testing a working environment I wanted to modify some nginx configurations and I f...
Mayank
1

votes
1

answer
102

Views

Adding more upstream servers not working

My initial configuration of upstream block named 'production' had the following configuration upstream production { server 11.22.33.44 fail_timeout=0 weight=1; server 4.5.6.7 fail_timeout=0 weight=1; server 1.2.3.4 fail_timeout=0 weight=1; } Now I added 3 more servers and it changed to upstream prod...
Sana
1

votes
1

answer
513

Views

Nginx try_files not working for default index.html

I am using $geoip_country_code module of nginx to redirect user based on IP. My config code is as given below- server { listen 80; gzip on; server_name example.com; root html/example; location / { index index.html; try_files /$geoip_country_code/index.html /index.html; } location ~* \.(gif|jpg|jpeg|...
async_soul
1

votes
0

answer
90

Views

how to write dynamic route in nginx location proxy config

for example I want anyone hits localhost/api to be redirected to a proxy of 127.0.0.1/api and whatever after it, for example, if I got localhost/api/getMyName then the config redirect it to 127.0.0.1/api/getMyName. or if someone hits localhost/api/getSomeone/1, it will proxy to 127.0.0.1/api/getSom...
Ezeewei
1

votes
0

answer
39

Views

nginx ignores one of every two request

I'm using nginx 1.12.2 (downloaded from official site) on windows 8.1 as a reverse proxy server. I got a problem that one of every two request is ignored. nginx config: server { listen 80; server_name my_fake_domain.com; access_log C:/nginxlogs/access.txt; location / { proxy_pass http://lo...
John Smith
1

votes
0

answer
123

Views

NGINX proxy config issues

I have a web app currently running on port 8000 and recently got an SSL certificate. I've installed nginx and attempted to have all port 80 and 443 traffic redirected to port 8000 on the local system. Here is where I am at: Browsing to the server on port 8000 still works and renders with no issue Br...
Cool_beans
1

votes
0

answer
201

Views

502 Bad Gateway with Nginx Proxy On

trying to setup a Discourse inside Plesk with Docker Image, and everything works when I use ip to connect to the installation, but when using the hostname on my testsystem, I get a 502 Bad Gateway after enabling Nginx to proxy. Here is the error log I get: 2018/04/01 20:44:48 [error] 10591#0: *1 con...
Daniel
1

votes
1

answer
36

Views

Docker mapping ports and expose to specific hosts

I'm running Docker locally. I'm testing some functions from Jenkins and GitLab, so I ran: For Jenkins: docker run -d \ --add-host='gitlab.example.com:172.16.2.92' \ -p 8080:8080 -p 50000:50000 \ --name jenkins \ --restart always \ -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts For GitLab: doc...
Alan Aranda
1

votes
0

answer
664

Views

How do i configure MQTT in nginx

I need to configure MQTT in nginx , I have tried with following code I have added one .conf file in /usr/local/etc/nginx/mqtt.conf and mqtt.conf contains:- log_format mqtt '$remote_addr [$time_local] $protocol $status $bytes_received ' '$bytes_sent $upstream_addr'; upstream hive_mq { server 127.0...
Rock Admin
1

votes
0

answer
234

Views

Reverse proxy from NGINX to Keycloak with 2FA

I have a problem with NGINX. In addition, I will provide you with a configuration file and a picture of the architecture schema ( https://ibb.co/niZCRx ). I want to access Keycloak via nginx and log in to it. I use it as an Identity Management where I have a login with a username and password and a...
Joncheski
1

votes
0

answer
218

Views

Nginx proxy use path(subpath) as url

My demand is as follows: If I request an URL like this http://example.com/10-10-43-3 the server gets the resource from http://10.10.43.3 and response to me. 10-10-43-3 can be arbitrary URL that replace '.' with '-'. How can I achieve it through nginx? Something like location and proxy_pass?
xfdywy
1

votes
1

answer
70

Views

Which way of scaling nodejs app is better?

I need to scale across different servers as well. Will that be possible with only pm2 since it is only forking childprocesses from the main process, that too sharing the same port. Is using a reverse proxy like Nginx, is the way forward for horizontal scaling?
Sourav
1

votes
0

answer
151

Views

nginx wildcard subdomains to different roots

i want to support all level subdomains to 'domain.com' for my configuration. That's possible with: server_name '~^(?.+)\.domain\.com$'; My root looks like this: set $subDirectory subdomains/$sub/; set $root /var/www/domain.com/$subDirectory/www/; root $root; Example: 'abc.domain.com' will be /var/ww...
pet21221
1

votes
1

answer
25

Views

NGINX resolving a non configured domain, why?

I have one server running on: http://localhost:8080 I'm configuring a sample NGINX server. I copied from internet the following configuration: # user nobody; worker_processes 1; error_log logs/error.log; error_log logs/error.log notice; error_log logs/error.log info; events { worker_connectio...
davidesp
1

votes
1

answer
24

Views

what I need to do when change from ipv4 to ipv6

I have web server apache , nginx that running on centos , I want to change it to ipv6 . I found the below url . https://unix.stackexchange.com/quest...-on-centos-6-2 I just would like to confirm all thing that I need to do is just add/update the below to network config file ? no need to install any...
patrickchan
1

votes
1

answer
339

Views

nginx: [emerg] host not found in upstream “server abcd” when configuring nginx as reverse proxy for docker based microservices

We have a group of dockerised microservices that are already running on a VM with private internal IP. I configured a dockerised nginx to setup a reverse proxy in front of these microservices but I get nginx: [emerg] host not found in upstream 'ms1' error. Below is the nginx.conf file #user nobody;...
Santosh
1

votes
1

answer
74

Views

change the host header after the backend server responds

I have a proxy setup to receive a client request for www.example.com from external.example.com (www.example.com is a tab on external.example.com) . the proxy recieves the request and sends to www.example2.com to the backend server with multiple websites with host headers. now when www.example2.com r...
Jay Pat
1

votes
1

answer
238

Views

NGINX reverse proxy WebSockets with JWT auth no Access-Control-Allow-Origin header

My goal is to use NGINX proxy server to terminate a wss connection from the frontend and establish a ws connection to my backend. I also need to authenticate the client using JWT tokens which I am successfully issuing and passing via Cookie to the NGINX proxy. I am using the nginx-jwt package (http...
Riley Marzka
1

votes
1

answer
1.4k

Views

403 Forbidden while proxy pass using Nginx

I have a website for which I am using nginx as webserver. The wordpress blog of that website is installed on another server. What I want to achieve is that whenever user enter [www.thewebhoncho.com/blog/][1] the request should go to the blog server. So, in order to achieve that I have proxy passed...
Akhil Sharma
1

votes
0

answer
88

Views

How to forward web-socket request to microservice using nginx

I wanted to forward the web-socket request to microservice using nginx. I am hitting https://some-host/download-zip-service/downloadFile By this, the calls are landing on download-zip-service and downloadFile API get the call. in downloadFile I am using the socket to forward the request to microserv...
Anand Deshmukh
1

votes
0

answer
38

Views

rewrite displayed url without actual redirect

I'm trying to change displayed urls to keep all sub domain urls relative to the main domain, example maindomain.com/some_page would be served from sub.maindomain.com/some_page but to keep the displayed url in browser to maindomain.com/some_page. Considering that the main domain and the sub are hoste...
Ruming
1

votes
1

answer
21

Views

Nginx URL Rewrite Processing

I have a nginx container serving static assets and if it receives a request for https://mysite:8090/static/2.1.1/test/mystyle.css (where 2.1.1 could be any semantic version) Nginx should serve the static assets under /usr/share/nginx/html/test/mystyle.css I tried the following config but it did not...
kai
1

votes
0

answer
2k

Views

Error during WebSocket handshake: Unexpected response code: 301

I have already looked into the answer to RoR 5.0.0 ActionCable wss WebSocket handshake: Unexpected response code: 301 but it was not applicable to my case. I use an nginx-proxy as a front for several web-servers running in docker-containers. I use the nginx-config-template from https://github.com/j...
Tobias Gassmann
1

votes
1

answer
284

Views

Nginx Ingress Selective Reverse Proxy Location Rewrite

I have an Nginx Ingress that I'm trying to use to replace my HTTPD reverse proxy. One of my servers behind the proxy returns a redirect containing this url https://proxy/endpoint. Originally with my HTTPD reverse proxy, I was able to modify outgoing http/https traffic headers (specifically location...
annihil8ted
1

votes
0

answer
23

Views

How to get NGINX to accept http://npomf/ as a proxy_pass?

I am trying to setup Npomf on my vps and i run into this error when doing the setup instructions. I get an error at line 61 of my config (hastebin). I cannot seem to resolve this proxy_pass issue, yet everything else works fine. Also, i am using NGINX 1.14.0.
RailRunner16
1

votes
0

answer
364

Views

Running Apache NiFi behind Nginx

I am trying to use nginx as reverse proxy to connect to nifi. I'm using the below flow: local machine -> http -> NGINX -> https -> Secure NiFi Below are my nifi.properties configuration: nifi.web.https.host=localhost nifi.web.https.port=8443 nifi.web.https.network.interface.default= nifi.web.jett...
Madiha
1

votes
1

answer
217

Views

configure nginx to make a background request

I am building an application where I need to do some analytics on the api-data combination usage. Below is my nginx configuration - location /r/ { rewrite /r/(.*)$ http://localhost:3000/sample/route1/$1 redirect; post_action /aftersampleroute1/$1; } location /aftersampleroute1/ { rewrite /aftersamp...
John Doe
1

votes
0

answer
164

Views

docker-letsencrypt-nginx-proxy-companion stat: can't stat “…” No such file or directory

I'm a new user of docker and probably I messed up something easy. I'm containerizing a CodeIgniter app for what I used phpdocker.io. The generated docker-compose is the one that I'm using. The plan for this containerization is that when another dev touches the code he has nothing to do more than a s...
javierojeda
1

votes
1

answer
24

Views

How to set the proxy_pass to get the desired address?

I have been struggling with setting up Nginx for our use case. When I set up Nginx with the following config: location /dep-core { proxy_pass http://node-server:7070/; } and call the server with following endpoint: /dep-core/api/login the call is redirected to //api/login with two leading //s. and...
Yasir Mir
1

votes
1

answer
80

Views

Nginx configuration errors

I am having some problems to configure a nginx reverse proxy with some url. My configuration is: events { worker_connections 768; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; access_log /dev/stdout combined; error_log /dev/stdo...
Claudio Saavedra
1

votes
1

answer
235

Views

Nginx reverse proxy Serving Node.js app static file

I have a Laravel application in which one route /onlineAds will take me to another application (an SPA one) built with Vue.Js as front and Node.js as Back. So I'm trying to use Nginx as a reverse proxy in order to serve my SpaApp's static files but without any success. My conf is as follow: /...
1

votes
1

answer
97

Views

Dynamic Nginx proxy with Docker

I'm stucking with configuring a Nginx instance embedded in a Docker container which should implement a dynamic reverse proxy for not-enabled CORS web sites. I was expecting it was an easy task, but it doesn't work under some conditions. This is a working location block: location ~* ^/proxy/(.*) { p...
FrankBr
1

votes
0

answer
46

Views

Priority Queue Configuration in Nginx

I am running a rails app with unicorn server. I use nginx as the reverse proxy. I have configured a heartbeat api, which provides the heartbeat status to the load balancer. The problem that I am facing is this - some of the apis have high latency(more than 2 secs), while the loadbalancer client tim...
BKSingh
1

votes
1

answer
140

Views

Nginx change request header value conditionally

How to change request header value conditionally depending on another header value in nginx reverse proxy?
chupee120

View additional questions