0
votes
0answers
17 views

How can I configure what to cache in nginx?

I have a REST API for which I'm using nginx as a reverse proxy. I want to cache certain calls to the API which use absolute time references in the request but I want to not cache calls which use ...
0
votes
1answer
24 views

Nginx proxy_cache_purge alternative - get file out of cache

I seems that the proxy_cache_purge directive is supported only in the commercial nginx version. Is there an alternative way I could get a file/path/key out of the cache? Below my sample proxy_pass ...
1
vote
2answers
41 views

using trailing slashes in nginx configuration

location /product { proxy_pass http://10.0.0.25:8080; } if I use my first location description for product folder, I should use http://mysdomain.com/product/ and I can not use ...
0
votes
0answers
25 views

Redirections to ajenti port using nginx aren't working [duplicate]

I recently installed Ajenti with the Ajenti V plugin suite and got it configured in a way that the https://ajenti.domain.com:8000/ link works. So what I was trying to do is to redirect ...
0
votes
0answers
29 views

Forward to same proxy_pass for any request_uri in nginx

I would like that any requests made in a particular location are proxied to the same destination, regardless of the request_uri location /here { proxy_pass "http://localhost/"; } GET /here ...
0
votes
0answers
46 views

Empty $upstream_http_location variable if response was cached

I would like to cache the response of an redirect. (Cache the request to some site which returns a redirect and cache the second request which returns the actual content.) So far my config looks like ...
0
votes
0answers
48 views

Inject SSL client certificate in Nginx proxy

I have 2 Nginx instances, one is listening on 80 and has a proxy_pass https://second_nginx; The second instance is configured to listen on 443 with a self signed certificate, but also have the SSL ...
1
vote
0answers
15 views

Changing HTML-TITLE for web application with NGINX [duplicate]

There are some web applications which are running on my server. Most of them use their own small server, which are bound to localhost. So for access them, I am using NGINX which runs as a proxy. Now, ...
0
votes
1answer
66 views

Load balancing in Nginx with redirect rather than proxy

I want to use Nginx in a bit of an unconventional way. I want to load balance between a few servers, but rather than proxy content for those servers I want to redirect to them. That is, if a ...
2
votes
1answer
71 views

nginx: understanding the purpose of auth_http (IMAP proxy)

I would like to send IMAP client requests to an IMAP back-end via an nginx proxy. According to the the mail_auth_http module, a directive auth_http has to be used in order to authenticate the clients. ...
0
votes
0answers
79 views

How can I fix “Open Proxy” in nginx

Recently I got an abuse report from aws for "Open Proxy". Following this url http://www.wikihow.com/Enter-Proxy-Settings-in-Firefox, I can see that my proxy is open. I am using nginx with php-fpm. ...
0
votes
1answer
85 views

Nginx proxy_pass config

Nginx proxy_pass config I'm setting up an Angular app on one domain that needs to access an API on another. This seems to be working fine. In my services.js I have a service.factory that contains: ...
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 ...
0
votes
1answer
125 views

Setting up DNS on reverse proxy

I have a backend that used to be my front end. Now my front end is an nginx proxy server. It just serves as an http and an IMAP/SMTP proxy. The backend services apache,mysql,dovecot/postfix. Since I ...
1
vote
0answers
78 views

nginx redirects requests from apache proxy to real server address

Description: [server 1] <-|-> [server 2] [Apache] <-|-> [nginx <--> gunicorn <--> django] Apache is running on a server 1 which silently redirects just one subdomain to ...
0
votes
2answers
107 views

NGINX is not forwarding a header value when using proxy_pass

I have the following setup and configured to send all /api requests to a different server: location /api { proxy_pass https://myapp.herokuapp.com; rewrite ...
1
vote
2answers
356 views

Nginx Redirect via Proxy, Rewrite and Preserve URL

In Nginx we have been trying to redirect a URL as follows: http://example.com/some/path -> http://192.168.1.24 where the user still sees the original URL in their browser. Once the user is ...
0
votes
1answer
280 views

How to make git push work with nginx (basic auth) behind nginx reverse proxy (HTTPS)?

I like to have a git server on a computer (backend) without direct internet access. There should be basic authentication. The access should be available by means of a reverse proxy (frontend) on ...
1
vote
3answers
721 views

Hosting multiple Nodejs applications on a single port

I'm trying to run multiple nodejs applications (using the express framework) all served on the same external port (80) but each under a subdirectory. E.g. I want... NodeJsApplication1 to be ...
0
votes
1answer
171 views

How to make an existing caching Nginx proxy use another proxy to bypass a firewall?

My question is about using Nginx as a proxy behind another proxy. (Somewhat confusing.) I want to set up Nginx so it acts as a caching proxy server to an npm mirror. Here is the link: ...
0
votes
0answers
73 views

nginx rewrite - proxy if file not exists

I have a local directory (uploads) and an S3 bucket setup. when the user is uploading an image the file is stored on the local directory: /uploads/member_id/image_name and after 30 minutes the system ...
0
votes
2answers
174 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 ...
0
votes
0answers
97 views

Configure nginx proxy_pass

I am trying to use a proxy to be able to call the url https://:8082/test and "redirect" to https://:8081. I tried with the "location /" it is working well but when I put a specific location like ...
1
vote
1answer
183 views

Lightweight reverse http proxy with websocket support

does there exist a lightweight (when I tried apache it ate several hundred megs of memory) reverse http proxy which supports websockets? I was so far using pound which does not support websockets but ...
0
votes
1answer
151 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 ...
0
votes
1answer
124 views

Nginx, GET and POST solution for “The plain HTTP request was sent to HTTPS port”

I'm trying to create a SSL proxy for a web management console running on localhost and having no SSL support. Here is my config: server { listen 111.222.1.1:8443 ssl; ...
1
vote
1answer
99 views

nginx 301'ing limit_req rate limited requests instead of error page

I have a bulk search form on apache servers behind nginx. I'd like to protect that location so that the second request in a 10 minute period gets 301'd to a "Would you like to use our API" page ...
1
vote
1answer
216 views

Use nginx reverse proxy for redirection

I have a.b domain (for example) and want to serve some github pages (username.github.io/project) in a.b/c. It means that I also want to keep my browser url to a.b/c and showing contents of ...
0
votes
1answer
170 views

Why Nginx reverse proxy shows http location?

I need help with my nginx configuration. In this config I've got /svn location, that comes to apache http. Apache is password protected (Basic Auth) When accessing https://my.server.com/svn it shows ...
0
votes
1answer
99 views

How to preserve request headers while redirecting using nginx X-Accel-Redirect

My scenario: A sends request to B with some custom headers. Nginx proxy the request to B, where B does some logic and sets X-Accel-Redirect response header pointing to C. Then Nginx redirects request ...
1
vote
1answer
231 views

NGINX SSL termination slow

I am using NGINX as a reverse web proxy to an upstream IIS webserver. I am proxy_pass'ing to an https binding on the IIS server so I understand SSL is being encrypted/decrypted twice- but it shouldn't ...
2
votes
1answer
57 views

Why can't nginx have more than 75 seconds proxy connect wait?

According to this doc here, nginx proxy_connect_timeout cannot have more than 75seconds delay. I know its terrible to have an app with that delay, but I am being curious why this exact value?
1
vote
1answer
55 views

nginx proxy to a proxy

I feel like I must be missing something obvious... but here goes. Question Is it possible to configure an Nginx proxy such that it does not modify the HTTP request URI? How? Background I have an ...
2
votes
0answers
131 views

Nginx not honoring must-revalidate

I want to use nginx as a caching reverse proxy. I also have a special requirement, which I thought could be accomplished with nginx. I am using Amazon s3 as origin server and I use signed urls to ...
0
votes
1answer
139 views

Nginx byte-serving http requests

I know it is possible to use Nginx to spread requests over multiple web servers thus doing load balancing. This solution requires back-end servers having high bandwidth and is effective when dealing ...
0
votes
1answer
106 views

Configuring nginx server to handle requests from multiple domains

Use Case:- I am working on a web application which allows to create HTML templates and publish them on amazon S3.Now to publish the websites I use nginx as a proxy server. What the proxy server does ...
2
votes
2answers
882 views

Why does sub_filter seem to not work when used in conjunction with proxy_pass?

Given the following configuration of nginx: server { listen 80; server_name apilocal; sub_filter "apiupstream/api" "apilocal"; sub_filter_once off; location /people/ { ...
1
vote
1answer
58 views

Nginx proxy upstream cached?

Attempting to resolve an issue that's been annoying me for a bit. I've distilled the symptoms into a set of reproducible steps: I have two sites, siteA, and siteB. They are both Node.js applications ...
0
votes
1answer
183 views

Load balancing and failover for streaming solutions

I have a content distribution system which most of the time delivers VOD and audio. However, recently we have also moved into the live-streaming business. This however has raised a few issues ...
0
votes
0answers
177 views

nginx proxy_pass setting hostname

Here is my server block from nginx.conf, I'm trying to rewrite my requests, which happens fine but my upstream hostname is not being set correctly, it always resolves to the actual IP address, but my ...
0
votes
2answers
280 views

Nginx 404's all static content in reverse proxy setup

Whats strange is that this exact configuration used to work fine, but now all static files will 404 on direct link i.e domain.com/test.html domain.com/test/test.html domain.com/ and ...
0
votes
2answers
153 views

nginx serving alternate location on 404

I'm trying to set up an nginx config as follows: When receiving a request like /tile/SteveCountryVic/1/2/3.png: Attempt to pass it through to http://localhost:5005/1/2/3.png If that 404s, pass it to ...
0
votes
1answer
170 views

nginx rewrite modify parameter

I'm trying to create a JSON/JSONP proxy for an external API. Here's my config so far: server { listen 80; server_name api.example.com; location /api/ { ...
0
votes
0answers
196 views

NGINX Forward Proxy

I am trying to build a forward proxy with nginx as described in this article: http://kovyrin.net/2010/07/24/nginx-fu-x-accel-redirect-remote/ Part of my nginx configuration is: location ~* ...
3
votes
2answers
312 views

Why put a reverse proxy in front of a WSGI server?

A typical configuration for deploying a WSGI application includes a WSGI server (such as uWSGI or Gunicorn) behind a general-purpose web server (like nginx) that acts as a reverse proxy. One major ...
1
vote
0answers
220 views

Getting nginx proxy to work properly with gunicorn/flask

I got this Flask app that I'm running with gunicorn on 127.0.0.1:5002 on this shared server. I got a nginx instance for myself that I can add custom configs to. The structure of the nginx directory is ...
2
votes
1answer
492 views

Redirect a subpath to a external host with Nginx

I need to create a quite simple map in Nginx redirecting a subpath to another server that is located in the same subnet. Nginx server: 192.168.0.2 Tomcat server: 192.168.0.3:8443 I tried to put ...
0
votes
1answer
283 views

Is it still best practice to run Tomcat behind Apache HTTPD?

Is it still considered best practice to run Apache Tomcat behind an HTTP proxy like Apache HTTPD or Nginx on a Linux server? A decade ago I was told it was necessary as Tomcat 3 was slow at serving ...
0
votes
0answers
53 views

NginX Non-Image Content Type

So I'm using a upstream, and basically retrieving images upon request. So sometimes, a user requests a non-image type and it returns as an invalid image. However, I cannot get nginx to rewrite the ...
0
votes
1answer
42 views

Using one nginx config file for all websites

i have a server where is a control panel installed, with about 100 webpages/domains. It doesnt support nginx, so i want to install nginx as reverse proxy. But how can i configure, that uses a central ...