0
votes
0answers
4 views

Howto rewrite URLs with two nginx as reverse proxies to gunicorn/Django

I have a Django application, deployed with gunicorn on port 8000, on a VM with a backend nginx, port 80, on the same VM. The nginx config is: location / { proxy_http_version 1.1; ...
1
vote
0answers
13 views

Turn on/off proxy pass in nginx if a particular header is set

For testing purposes (in particular I'm developing a performance analyzer for a website that currently runs in production) I need to have some endpoints (es: /performance) that should be processed by ...
0
votes
1answer
17 views

Use hostname for set_real_ip_from in Nginx

How to use hostname and not directly IP for set_real_ip_from in Nginx? I have a reverse proxy which can change IP as it is restated (it is a Docker container), but I do not want to trust other IPs ...
1
vote
0answers
37 views

upstream timed out (110: Connection timed out) while connecting to upstream

I have my backend in France and one of my frontend servers is in Japan. This issue doesn't happen with any other of my frontends, only this Japan server, which already has about 2s latency from most ...
0
votes
1answer
20 views

Nginx reverse proxy - requests still return port 80

I'm trying to use nginx as a proxy server for two weblogic servers. The ports on the weblogic are 23823 and 23824 and i want them both to be accessible from port 8888 and distinguished by context ...
1
vote
1answer
29 views

Lots of users, reverse proxys and problems with both

I have a somewhat unique situation that is making managing my vpns a bit of a pain, so I am trying to make it easier on me and my users, hope somenone can give me some ideas and/or alternatives. The ...
0
votes
1answer
44 views

nginx reverse proxy with basic_auth - 404 Not found

I have an nginx server block to proxy_pass content from three servers: gitlab, Rshiny and static content from another nginx server block. All this works fine, until I try to add password protection to ...
-1
votes
1answer
50 views

Nginx Reverse Proxy Segfault on High Traffic

Recently my load balancer with Nginx rev proxy showing the following error messages on /var/log/dmesg: [6278902.558300] nginx[15683]: segfault at ffffffffffffffff ip 0000000000457b99 sp ...
2
votes
2answers
43 views

Nginx Reverse Proxy Will Not Load HTTPS Sites

Today has been the first time I've used Nginx. I got it set up as a dedicated reverse proxy by following a few guides. This is what I'm trying to recreate - ...
0
votes
2answers
39 views

nginx as reverse proxy on front of Apache - protection and security

I'm just concerned whether to install Nginx WS alone or nginx as reverse proxy on front of Apache based on security and protection. If I had to choose nginx as reverse proxy on front of Apache, would ...
0
votes
0answers
15 views

nginx $upstream_cookie_… variables

nginx 1.7.1 introduced Feature: the "$upstream_cookie_..." variables. see http://nginx.org/en/CHANGES What does it do and how do you use it? Can that be used for Session Affinity when proxying to ...
0
votes
1answer
43 views

nginx reverse proxy all requests to two upstream servers?

I need to adjust a nginx reverse proxy which used to front a single server to send all requests it receives to two different upstream servers. I was thinking I could do it with the configuration ...
0
votes
1answer
21 views

ngnix proxy https request to subfolders

We have several external facing web applications behind nginx like so: https://app1.mycompany.com --> server1:8080/app1 https://app2.mycompany.com --> server2:8080/app2 ...
0
votes
0answers
19 views

reverse proxy nginx websockets with sub_filter

I have simple reverse nginx proxy location /websocket/ { proxy_pass ​http://backend_host; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection ...
1
vote
2answers
94 views

Nginx reverse proxy to another nginx server serving static files

I have an Nginx server hosting a web app which works fine when directly accessed. Its config is below server { listen 8000 default_server; listen [::]:8000 default_server ...
0
votes
1answer
55 views

How to configure nginx so it works with Express?

I'm trying to configure nginx so it proxy_pass requests to my node apps. Question on StackOverflow got many upvotes: http://stackoverflow.com/questions/5009324/node-js-nginx-and-now and I'm using ...
0
votes
1answer
286 views

Unable to configure Nginx as a reverse proxy for elasticsearch on another server

I'm trying to use Kibana on a server A to access elasticsearch on a server B. elasticsearch is protected with a basic auth authentication on server B. Kibana is also protected with basic ...
0
votes
1answer
48 views

nginx proxy folder to url

I have some sites I want to redirect with nginx: domain.com:1180 -> test.domain.com (static site) domain.com:1280 -> test.domain.com/promo (meteor.js website) On domain.com I have an nginx ...
0
votes
0answers
81 views

Reverse proxy 502 bad gateway

I have setup a subdomain to proxy my plesk panel, but when saving pages I am getting 502 Bad Gateway error instead of a completion message. I am running CentOS 6. Here is my vhost.conf configuration ...
2
votes
1answer
118 views

How to invalidate nginx reverse proxy cache in front of other nginx servers?

I'm running a Proxmox server on a single IP address, that will dispatch HTTP requests to containers depending on the requested host. I am using nginx on the Proxmox side to listen to HTTP requests ...
3
votes
0answers
65 views

Nginx + unicorn + spdy + performance testing

I have a ruby on rails website that is hosted on unicorn webserver behind a nginx reverse proxy. I want to evaluate if using spdy will enhance my performance under this setup. Specifically, I need ...
0
votes
0answers
67 views

Nginx SSL Proxy for FIsheye

I've scoured the internet, and stumbled across Fisheye + Nginx Reverse Proxy many times, but it doesn't seem to be answering my question. I have Atlassian's FIsheye up and running. Right now, Fisheye ...
1
vote
2answers
95 views

Make nginx to pass hostname of the upstream when reverseproxying

I run several docker containers with hostnames: web1.local web2.local web3.local Routing to these done based on hostname by nginx. I have a proxy in front of this setup (on different machine ...
2
votes
2answers
93 views

nginx add header conditional on an upstream_http_ variable

I have a reverse proxy on nginx which proxies quite a few sites. I have recently enabled HTTP Strict Transport Security for all SSL-enabled websites. I now have one site that doesn't want to have this ...
1
vote
1answer
196 views

Nginx as a proxy for tomcat with subdirectory

I want to set up a Nginx Proxy for the Tomcat server with my domain name such as example.com/demo/sample example.com/demo/manager example.com/demo/other_apps ... Here is my Nginx server block ...
0
votes
0answers
29 views

nginx upstream host setting with memcache

I want to setup a nginx setup with memcache enabled for pages as pointed out in page https://www.igvita.com/2008/02/11/nginx-and-memcached-a-400-boost/. First I tried nginx web server (with php-fpm ...
1
vote
0answers
97 views

nginx as ssl reverse proxy for wildfly

I am trying to setup nginx to be reverse proxy for wildfly 8.0.0.Final. Part of my configuration file for HTTPS redirect: location /console { include conf.d/proxy.conf; proxy_pass ...
0
votes
1answer
70 views

What is wrong with my Nginx reverse proxy configuration?

I'm trying to set up an nginx server to serve a node.js application at myurl.com, while at the same time serve some php-content from myurl.com/phpapp/ I had the php application working with proxy ...
0
votes
2answers
95 views

D-I-Y VPS Hosting for multiple domains (3) on a single static IP [closed]

and thanks for your input. What I want to do: I want to host some applications Web and email, for example, for myself and two clients on one static IP Address, primarily to learn, and possibly to ...
0
votes
0answers
56 views

How can I set up nginx reverse proxy for any subdomains?

I installed nginx at my Ubuntu VPS for listening any petition at port 80 and doing reverse proxy to different server technologies. This is my configuration file like: server { listen 80; ...
1
vote
1answer
81 views

Nginx redirecting instead of proxy passing

I'm changing Apache to Nginx at my laboratory and we have lots of projets under subdomains, so I user an approach where every subdirectory has its server running at a high port (8000 and above), and ...
0
votes
1answer
170 views

nginx https -> http redirection using wildcard error

I've already search the whole web for an answer, unfortunately there isn't. I hope there is a genius out here. Context: My nginx acts as a reverse proxy serving multiple domains Problem: the problem ...
0
votes
0answers
64 views

Nginx reverse proxy repackaging chunked responses

I am running nginx/1.1.19: # nginx -V nginx version: nginx/1.1.19 TLS SNI support enabled configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf ...
0
votes
0answers
62 views

Nginx Reverse proxy on a internal apache reverse server

please check this diagram: http://i.stack.imgur.com/puy74.jpg (i dont have enought reputation to show it directly) The Setup: 1) Nginx server are used to map to internal server where the apache is ...
0
votes
0answers
46 views

subs_filter_types when upstream server doesn't have “Content-Type”?

I'm using nginx_substitutions_filter for reversing-proxy. It works perfect, however I have tiny problem. This is what I have in configuration: subs_filter 'cats' 'dogs'; ...
0
votes
0answers
48 views

force upstream smtp outbound through proxy

Upon inspection of emails sent outbound to external domains, the backend is revealed as being the true sender, rather than the proxy itself. When sending within the domain, from local user to another, ...
1
vote
1answer
114 views

NginX reverse proxy with iRedMail Apache2

On an empty VPS hosting, I managed to run the base iRedMail installation with Apache2 and LDAP and my roundcubemail was accessible at: https://www.mydomain.com/mail then I installed NginX, shutdown ...
0
votes
1answer
81 views

Setting up Nginx — redirecting requests to a auth server and getting redirected back to serve the request

Any incoming request on (x.x.x.x.x)--> redirect to x.x.x.x.auth.domain.edu -- > that authenticates a user and redirects back to x.x.x.x server. (With a cookie set, In my case it is EZproxy server ...
1
vote
1answer
212 views

nginx infinite 302 Found redirect loop

I am using nginx to map multiple domains to google app engine. in this specific case i map multiple domains to the same tenant. there is a configuration in my code that knows which domain is the main ...
0
votes
2answers
311 views

nginx reverse proxy or squid forward proxy (transparent)?

I have to implement a proxy server in front of a running production server to route and secure the production-server. On the production server multiple node.js applications listening on different ...
1
vote
1answer
1k views

An upstream response is buffered to a temporary file

I have a rather large and slow (complex data, complex frontend) web application build in RoR and served by Puma with nginx as reverse proxy. Looking at the nginx error log I see quite a few entries ...
-1
votes
1answer
271 views

Bind nginx on the same port for tcp and http [closed]

I have compiled nginx with the tcp_proxy_module by following this guide : http://stackoverflow.com/questions/12102110/nginx-to-reverse-proxy-websockets-and-enable-ssl-wss What I want to do is to be ...
0
votes
1answer
810 views

Configure Nginx as reverse proxy with upstream SSL

I try to configure an Nginx server as a reverse proxy so the https requests it receives from clients are forwarded to the upstream server via https as well. Here's the configuration that I use: http ...
0
votes
0answers
86 views

nginx proxy to Apache/PHP is slow

My setup: nginx is listening on port 80 and working as a reverse proxy (plus directly sending static files) Apache 2 is listening on port 8080 PHP is running in Apache 2 All running on one server ...
0
votes
0answers
17 views

Is there any benefit using an `upstream` group on a simple nginx reverse proxy?

What are the pros and cons using an upstream group in proxy_pass directive if there is only one upstream server? Is there any difference for instance in speed or "correctness"? For example: server { ...
0
votes
2answers
176 views

Nginx proxy cache 301 redirects but ignore querystring

We have a lot of ad-based traffic that pass various query string params on the URL, but these do not affect the content/output of the pages. I currently have the following nginx proxy cache ...
1
vote
1answer
65 views

Nginx reverse proxy server not serving cached homepage correctly

I've been configuring a new server for a web development client recently, and run into an interesting problem. The site is fairly high-traffic, but the CMS is fairly heavy and inefficient at ...
-1
votes
1answer
90 views

Reverse proxy without URL Rewriting

I have been asked to setup a reverse proxy but one of the requirements is that no URL Rewriting be performed. I'm trying to wrap my head around this since to me it seems that without rewriting the ...
0
votes
1answer
105 views

How to proxy a server based on domain name of request using nginx?

There is a situation where firstly all current requests should work as they currently working for certain domain name. For example www.hello.com A dynamic dns is going to point to the same static ip ...
0
votes
1answer
152 views

Use nginx as caching proxy with no conditional get from client

I would like Nginx to be set up as a reverse proxy with caching in front of another web server (origin server). I understand how to do this much. But what if I don't want to depend on the web browser ...