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
1answer
32 views

Whitelist nginx proxy_pass $args

I have nginx configured to proxy requests : server { listen 80; server_name proxy.mydomain.com; location /proxy { resolver 8.8.8.8; proxy_pass $args/; } } So ...
0
votes
1answer
60 views

Optional URL segments in NGINX

I need to proxy pass multiple segments further to another server, there can be up two 5 segments. What nginx needs to match example.com/somehash example.com/somehash/segment1 ...
0
votes
1answer
128 views

nginx proxy_pass receive content/status headers when http 4xx

Was having some trouble as chronicled here - http://stackoverflow.com/questions/22570550/play-2-2-1-simpleresult-4xx-response-body-possible-via-cors-xhr But I didn't focus on nginx since the 200 OK ...
0
votes
1answer
54 views

ngnix to apache configure proxy settings

I've to migrate from ngnix web server to apache web server. The ngnix configured as proxy server for 80 and 443 ngnix confuiguration as following : server { listen 443; server_name ...
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 ...
0
votes
1answer
204 views

Nginx. Using redirects with regular expressions

I'm a newbie to nginx. I have the nginx before Apache and I'm having problems. I seem to need 2 rules in the config: Rule 1) if we have url "/my_path" we don't touch it but user goes to ...
0
votes
1answer
155 views

nginx proxy_pass with a backend requesting client certificates

We're proxying a backend that we don't control & the backend is requesting a client certificate when connecting on https. When we request these pages through the proxy the connection times out ...
0
votes
0answers
210 views

nginx proxypass squid

I'm trying to run squid server behind nginx. my sample configuration : location ~* ^/get/(.*) { proxy_pass http://ip:3128; proxy_set_header Host evenstatichostnamefortest.com; ...
1
vote
2answers
831 views

How to remove the path with an nginx proxy_pass

I have a running web-application at http://example.com/, and want to "mount" another application, on a separate server on `http://example.com/en. Upstream servers and proxy_pass seem to work, but for ...
1
vote
2answers
448 views

nginx unwanted location redirect with trailing slash

I have a location location /pass/ { proxy_pass http://localhost:12345/; } So it is supposed to proxify urls http://example.com/pass/whatever to http://localhost:12345/whatever The thing I ...
1
vote
1answer
769 views

NGINX: can I use a mapping of upstream servers with proxy_pass directive?

I have an NGINX server that acts as reverse proxy to a bunch of backend IIS servers. I would like to pass each incoming HTTPS request to a certain backend (upstream) server, depending on the URI ...
0
votes
0answers
185 views

Subsonic not working behind nginx due to ;jsessionid= being add to every single URL

I started using nginx as a front-end in order to standardize my services access via sub-domains. It works well for pydio and webmail (RainLoop, very good), but Subsonic doesn’t log in. There is no ...
0
votes
0answers
87 views

Serve WordPress site from separate servers using nginx proxy_pass

I'm trying to setup two separate servers. The first one should answer all the requests from www.example.org. The second one, should display a WordPress blog and answer only when the user goes to ...
1
vote
1answer
452 views

Right way to configure Nginx filtering with ProxyPass

I am using Nginx to proxy pass to my wsgi app served with Circus. I want to allow the traffic to that app for some urls of the app only for some IP address. For now it look like this: server { ...
0
votes
0answers
31 views

strange behaviour: phpmyadmin nginx host with proxy pass

server { listen 80; server_name phpmyadmin; location / { root /var/www; index index.php index.html index.htm; } location ~ \.php { proxy_pass ...
2
votes
1answer
109 views

Setting up custom error pages for nginx with https and virtual hosts

We have an nginx (OpenResty 1.4.2.7) instance acting as a load balancer. It has two server directives, one to serve one specific site (let's call it www.our-special-host.com) and one wildcard for ...
0
votes
1answer
97 views

Proxypass from apache to nginx

How do i convert below proxypass rules from apache to nginx ProxyPass /symptoms-search http://medgle.com/symptoms-search ProxyPassReverse /symptoms-search http://medgle.com/symptoms-search ...
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 ~* ...
0
votes
0answers
116 views

Nginx as Reverse Proxy + URL Rewrite + Caching

Im a newbie to nginx and i have few queries in setting up nginx as a reverse proxy with url rewritting and Caching. I have setup my Nginx to act as a reverse proxy. When the user types ...
0
votes
1answer
83 views

Can Nginx proxy to an Nginx virtual host?

I've upstream in my http block: upstream backend.example.com { server 127.0.0.1:443; } And within the frontend's server block: location ~* ^/special { proxy_pass ...
0
votes
1answer
43 views

nginx rewrite in proxy_pass

I need proxing to different backend but whith same url, so rewriting thould be like this URL: http://myservrer.com/server/monitoring1?(parameters) REWRITE TO: ...
1
vote
0answers
237 views

nginx proxy_pass to different backends based on location / passing rewrited url

What the quickest and cleanest solution if you want to proxy URL request to two different backends via proxypass based on location. location /app1/ { alias /var/www/ruby/public; ...
0
votes
1answer
404 views

nginx proxy_pass POST 404 errors

I have nginx proxying to an app server, with the following configuration: location /app/ { # send to app server without the /app qualifier rewrite /app/(.*)$ /$1 break; ...
1
vote
1answer
396 views

Fisheye + Nginx Reverse Proxy

I'm trying to run Fisheye behind a proxy. So far, I've managed to get Jira and Stash to work behind the proxy, but not Fisheye. Here's my config file in Nginx: server { listen 80; server_name ...
0
votes
1answer
342 views

Nginx Reverse Proxy as folders

I'm trying to configure Nginx to proxy stuff on a subdomain: dev.int.com I want dev.int.com to be proxied to IP:8080, and dev.int.com/stash to be proxied to IP:7990 Here's my current config file ...
0
votes
1answer
936 views

Nginx - assigning non-root location to proxy_pass

What I like to do is to proxy requests from http://example.com/proxy/foo to http://localhost:8060/foo This config proxies http://example.com/proxy/foo to http://localhost:8060/proxy/foo server { ...
0
votes
1answer
651 views

How to prevent nginx from reverse proxy specific subdirectories

On Apache you can ProxyPass everything except one or more subdirectories (with "!"). ProxyPass /subdir ! ProxyPass / http://localhost:9999/ What is the Nginx equivalent ? My first guess is ...
1
vote
3answers
2k views

Nginx proxy domain to another domain with no change URL

My question is in the subj. I have a one domain, that's nginx's config of it: server { listen 80; server_name connect3.domain.ru www.connect3.domain.ru; access_log ...
0
votes
1answer
615 views

Proxy_pass 127.0.0.1 in nginx does not work

I install nginx as a reverse proxy. If I use: proxy_pass http://127.0.0.1:81 it does not work. But if I use: proxy_pass http://domain.com:81 it works. And I can use browser to access to ...
7
votes
3answers
7k views

How do I configure Nginx proxy_pass Node.js HTTP server via UNIX socket?

I am trying to configure a Nginx server to connect to a Node.js HTTP server via a UNIX domain socket. The Nginx configuration file: server { listen 80; location / { proxy_pass ...
0
votes
1answer
2k views

nginx: problem configuring a proxy_pass

I'm converting a web app from apache to nginx. In apache's httpd.conf I have: ProxyPass /proxy/ http:// ProxyPassReverse /proxy/ http:// The idea is the client send this url: ...
2
votes
2answers
946 views

Nginx user subdomains, should I proxy_pass?

I am trying to setup user subdomains, serving content from specific folders: www.example.com/username served from username.example.com (just like github pages). I've looked at Nginx rewrites, but I ...
0
votes
1answer
2k views

proxy_pass rewrite nginx

location /(0-9)* { #rewrite ^/(0-9)*$ /disp\.cgi?$1 last; rewrite ^(.*)$ /disp\.cgi?$1 break; #include proxy.conf; proxy_pass ...
1
vote
3answers
937 views

nginx proxy pass redirect through load balancer

I have several backend webservers that are load-balanced using LVS. These machines have only internal non-routable IPs on them. The load-balancer is the only machine with an external IP. This setup ...
24
votes
5answers
27k views

Configure nginx for jboss/tomcat

In order to pass traffic to JBoss/TomCat on port 80 using Apache we used to install and configure mod_jk. Is there an equivalent for nginx? Basically want all port 80 traffic to be passed to jboss.