1
vote
1answer
28 views

Nginx not caching data

I have a REST API behind an nginx proxy. Proxying works fine, however I am unable to cache any responses. Any help would be much appreciated: Nginx config: worker_processes 10; error_log ...
0
votes
0answers
33 views

what does it mean to host C++ fastcgi application in nginx

I'm new to web services, and I am making a web proxy in c++ using the fastcgi protocol. I don't quite understand how to "host" web services in a web server, so if someone could lead me to an ...
0
votes
1answer
30 views

Nginx Not Passing Rewrites To PHP-FPM

I have the following rewrite rules for nginx. The rules seem to not function correctly, for example the rule for games is supposed to rewrite http://thegamesdb.net/game/2/ to ...
0
votes
2answers
114 views

Https url appended with port 80 using CloudFlare, Nginx, and Thin

I have a Nginx setup for my Thin server running a Ruby on Rails project. Nginx is currently the endpoint for my SSL. I recently had some issues with attacks on my webserver, so I decided to add ...
-2
votes
0answers
25 views

nginx subs_filter questions

I want to use nginx as a reverse proxy. But I want to add my google adsense code into the website. So I try to use subs_filter to replace some code in the website. From <li class="ads-ad" ...
0
votes
1answer
73 views

NGINX Proxy Pass to NodeJS App: Returning 502 error

I'm trying to setup NGINX as the frontend of my NodeJS app, which is live on 127.0.0.1:3000, but i can't resolve this 502 error. NGINX is locally reachable at http://55.55.55.5/ or http://dev.example ...
0
votes
1answer
43 views

Apache dying when new domain is added/removed

Each time I add new domain inside my server's control panel the Apache server and nginx as frontend proxy should restart - nginx as reload, apache as graceful. However it throws nginx error page, ...
0
votes
2answers
40 views

Web proxying with 3rd party authentication

I have a typical website where users have to pay to sign up and access some premium content. This content are internal propietary web servers from different vendors (think of it like graphical ...
0
votes
1answer
34 views

nginx move proxy app from subdomain to folder

I want to move a ruby app from: app.domain.com To: domain.com/app Currently: server_name app.domain.com location / { proxy_pass http://localhost:9001; proxy_set_header ...
0
votes
0answers
33 views

How to make sure that Nginx does not cache 4xx and 5xx errors?

We are using a caching Nginx Proxy as a local npm mirror. Sometimes it can get in an inconsistent state where accessing certain URLs always returns 400. I assume that Nginx is configured to cache ...
2
votes
1answer
207 views

Best Practice for Mapping Domain Names to Docker Container

What is considered "best practices" for serving a a docker container from a specific domain name? For example: Container1 runs App A on port 8080, and accessed via AwesomeAppA.com Container2 runs ...
1
vote
3answers
301 views

Nginx proxy to back-end with SSL client certificate authentication

I have two servers, both have nginx. Server A is listening to 443 and is configured to authenticate with a Client SSL certificate. Server B has an internal process that needs to communicate to Server ...
0
votes
0answers
172 views

RTMP Proxy Server

I have an application which uses both HTTP (content data) and RTMP (video streams) for communications. An nginx server is configured for load balancing and proxying incoming client requests. It works ...
-1
votes
1answer
35 views

What is the difference between proxy_cache_ and fastcgi_cache?

I was searching for a simple Nginx microcache solution and I end up seeing two ways to have microcache. Some tutorials use proxy_cache, while others fastcgi_cache. What are the differences, pros and ...
0
votes
0answers
164 views

nginx: Redirect all requests to a proxy, but not these three specific URLs

nginx can be tricky sometimes: I want to redirect all incoming requests for www.sub.domain.com/* to www.other.domain.com/* use a proxy so users still see the original www.sub.domain.com when ...
0
votes
0answers
50 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
2answers
75 views

How to redirect outdated browsers with NGinx map?

We have an NginX balancing proxy in front of our web application. Unfortunately there is not enough development resources to support outdated browsers, yet :( We want to redirect members of our web ...
0
votes
1answer
210 views

tomcat7 + nginx ssl causes redirect loop

We have the following set-up: several subdomains lead to the same server, which is running nginx as a proxy to each of them. All subdomains are currently used for testing features in development, so ...
0
votes
0answers
23 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
159 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
122 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
138 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
107 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
77 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 ...
0
votes
0answers
26 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
160 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
617 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
122 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
234 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
133 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
245 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
187 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
795 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 ...
2
votes
2answers
5k 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
713 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
4answers
2k 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 ...
1
vote
1answer
303 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
130 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
472 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
163 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
398 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 ...
1
vote
1answer
365 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
421 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
162 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
1k 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
393 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
179 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
391 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
89 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?
2
votes
1answer
109 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 ...