0
votes
0answers
6 views

Setting up a geoserver docker with nginx-proxy

I have set up nginx-proxy and geoserver using the following commands: sudo docker run -d -p 80:80 --name=nginx -v /var/run/docker.sock:/tmp/docker.sock jwilder/nginx-proxy sudo docker run -e ...
0
votes
0answers
10 views

nginx reverse proxy to apache WebDAV server returns 0-byte files after uploading

Setup: client <-> nginx(:443 SSL) <-> apache(:80 WebDAV) Client uploads file to webdav server. Upload succeeds but file appears to be 0 bytes in size. When SSHing in to apache server the file ...
0
votes
1answer
19 views

Nginx to split web traffic to a blog hosted on my domain

At the moment, I am using an Nginx frontend to cache static content for my DotNetNuke based website hosted at the hypotetical address www.mydomain.com, along with some other tasks. In this era of ...
0
votes
0answers
14 views

How to properly configure nginx proxy pass when the endpoint is in a root context?

I'm trying to figure out how to configure a reverse proxy in nginx when the endpoint is in a root context: http://frontend.com/mylink proxy forwards to http://10.0.0.2:8000/ Unfortunately I can't ...
1
vote
1answer
88 views

/etc/init.d/nginx reload not working

My earlier problem revealed that reloading the config of my Debian GNU/Linux 6.0 nginx reverse proxy does not work, while restarting, or reloading directly through the binary does work. I have looked ...
0
votes
1answer
40 views

Nginx reverse proxy for Proxmox PVE Datacenter console

I am running Proxmox VE Datacenter console on the web behind an SSL protect NGINX proxy. Everything works great as long as I keep the Proxmox VE Datacenter console of the root (i.e.: ...
1
vote
0answers
42 views

nginx doesn't check server_name and port on websocket proxying

I have three server blocks (virtual hosts) for http and one for websocket in the nginx config (nginx 1.6.0, ubuntu 14.04). server { listen 80; listen [::]:80; server_name ...
1
vote
0answers
30 views

Getting a chunked request through nginx

First some background: We have an embedded device that uploads a lot of small events to a web server. Chunked encoding is used to post this information. Every event is send as a seperate chunk, so the ...
0
votes
1answer
101 views

nginx proxy_set_header x-forwarded-proto seemingly not working

Since i am a beginner in nginx proxying i have a question. The gist of it: Where does an nginx proxy set defaults for php's $_SERVER["HTTP_X_FORWARDED_HOST"], $_SERVER["HTTP_X_FORWARDED_SERVER"] and ...
0
votes
1answer
33 views

reverse proxying with NGINX to two back-end servers

I am trying to learn how to configure the Nginx proxy. All requests from external (www.external.com) should go to internal server 10.10.10.16:2080, except for www.external.com/nagios requests, which ...
0
votes
1answer
24 views

Reverse Proxy to filter out js files from multiple hosts in nginx

I have a website http://someplace.acme.com that I want my users to access via http://myplace.mycorp.com - pretty standard reverse proxy setup. The special requirement: any js file - either identified ...
0
votes
1answer
103 views

regex to match s3 urls in nginx location directive & proxy to amazon s3

In nginx location directive, how do I match s3 urls. for example, the wrong url is: http://example.com/https://s3.amazonaws.com/mybucket/logo.jpg?1404251306 from Logs, I can see nginx can that it ...
0
votes
1answer
72 views

Chrome ignores Set-Cookie directive from nginx reverse proxy

I want to expose v1.2 of my API (and it's documentation) to users in China. The parent site mysite.mycompany.com is blocked for them, but 1.2.3.4 isn't, so I'm building a reverse proxy at that address ...
1
vote
2answers
108 views

Session lost in tomcat uing nginx as proxy

I have several applications in a tomcar server. I am using nginx for proxy so i can achieve acceding the application from a subdomain tomat:8080/app1 > app1.mydomain.com tomat:8080/app2 > ...
0
votes
0answers
35 views

How to write my logic in PHP for an nginx reverse-proxy?

I want to know how can I implement a reverse-proxy using Nginx for protecting (Token Authentication) some servers. One of the obstacles I'm struggling with is how can I establish a relationship ...
0
votes
1answer
44 views

Make an error page folder serve a 403 error to external requests

I'm fiddling about with a server, and I've made one of the subdomains a proxy for a service that isn't always up. The server block looks like: server { server_name servlet.example.org; ...
-1
votes
1answer
19 views

Nginx ignores my second server directive

I installed nginx via apt-get install nginx on ubuntu 14.04. As such, the default setup includes configs from the directory /etc/nginx/conf.d/ include /etc/nginx/conf.d/*.conf; In my conf.d folder ...
1
vote
2answers
133 views

Nginx does not serve static files over HTTPS

I am trying to set up Nginx in front of Apache as a reverse proxy and to serve static files. I 301 http to https, and provide the directives in https section to serve a static folder via an alias. ...
0
votes
0answers
38 views

Nginx proxy_pass produces wrong links

I have a web-app (let say COOL_APP) running at http://localhost:7000/ and I would like to "mount" it to an nginx proxy server running at https://example.com. Both, the nginx server and COOL_APP are on ...
0
votes
1answer
125 views

IE 11 not using SPDY with NGINX as reverse proxy to PHP IIS

I have a SPDY enabled NGINX front end server which is acting as a proxy to a couple of IIS backend servers. SPDY works awesome when using either Chrome, Opera Next or Firefox but when I load my sites ...
0
votes
1answer
72 views

Yet another 502 error with NginX

I'm trying to put a server@home in place with some basic services. All services run into a dedicated VM. Each VM is hosted on vSphere 5.5. So far I have : Debian wheezy with nginx used as a reverse ...
1
vote
0answers
26 views

Closing proxy to service socket when client is lost

We are using nginx, right now 1.6 to reverse proxy our services to the client. We are also using Server-Sent Events, a layer on top of HTTP that keeps the socket open. Here is a piece of required ...
2
votes
1answer
32 views

Varnish config to fallback to another port

I am playing around the different config setups. Currently I have Varnish-cache in port 80, Apache2 in port 70 and Nginx in port 90 in the same machine. The Varnish is configured in such way that it ...
1
vote
0answers
58 views

nginx proxy won't retry if backend is unavailable

I have an application that sits behind an nginx reverse proxy. Nothing fancy, just a simple server { listen 54321; proxy_connect_timeout 5000ms; proxy_read_timeout 5000ms; location / { ...
0
votes
1answer
102 views

Nginx reverse proxy with same config working in 2 situations and not in 1 (Vestacp)

I have few vps machines with private networking. I'm using nginx in all of them to proxy pass pass requests into fourth machine (10.129.xxx.xxx) which is only listens private connections. I just ...
0
votes
1answer
111 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
31 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
71 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
543 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
78 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
50 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
187 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
104 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
137 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
68 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
16 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
89 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
39 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
36 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
471 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
354 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
1k 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
104 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
443 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
2answers
659 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
1answer
167 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
125 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
3answers
595 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
297 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
1k 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 ...