nginx (pronounced "engine-x") is a lightweight, high-performance Web server and reverse proxy as well as IMAP/POP3 proxy server.

learn more… | top users | synonyms

1
vote
0answers
31 views

Rate limiting bots (specific IPs) in NGINX

I would like to rate-limit (but not block) various crawlers. Based on other examples of similar questions, I've come up with this: http { ## 10MB zone, 5 reqs per sec limit_req_zone $limit ...
0
votes
0answers
34 views

Nginx: How to access my reverse proxied sites via separate subdirectories

I have 2 web applications that I want available under http://example.com/demo1 and http://example.com/demo2. My config below correctly reverse proxies to each site, and the site is mostly functional, ...
0
votes
0answers
20 views

Any benefits to proxying from nginx to tomcat behind cloudfront+elb?

Are there any additional benefits to having nginx sit in front of tomcat on our ec2 instances, when those instances are already only serving dynamic requests behind cloudfront and ELB? I'm thinking ...
0
votes
1answer
16 views

Reverse proxying with dockerized nginx

[Cross post from stack overflow since I think server configuration might be the problem] I'm building a multi-container application with Docker. The full environment is on github should you wish to ...
0
votes
0answers
31 views

Cryptic NGINX access log entries [duplicate]

While reading my nginx access and error logs I stumbled upon some rather unusual entries. 127.0.0.1 - - [11/Feb/2015:15:08:25 +0100] ...
1
vote
1answer
132 views

Nginx return 301 redirects all domains

I have multiple domains on my server that is running nginx setup as follow: server { listen 80; server_name domain1.com www.domain1.com; root /var/www/domain1/public_html; index ...
1
vote
1answer
65 views

Why is https://www.foobar.com redirecting to itself?

I don't have any rules that suggest https://www.foobar.com should redirect to https://www.foobar.com. But why is it doing that? This is my curl output: curl -Ik https://www.foobar.com HTTP/1.1 301 ...
0
votes
1answer
28 views

Ngnix rewrite with catchall server_name

Im trying to do a rewrite based on a catchall server name. So I would like any domain that hits this server for example demo.example.com to be rewrote to example.org?site=demo.example.com ...
0
votes
0answers
45 views

nginx proxy pass on nginx 1.1.19

I am trying to get images not found on our staging server to automatically load from the production server. I tested this locally with the following configuration on nginx 1.6.2: And this worked as ...
0
votes
1answer
40 views

Nginx doesn't send certificate chain

I've got the following certificate (first one is my own, the other two are from Comodo PositiveSSL): -----BEGIN CERTIFICATE----- MIIFWTCCBEGgAwIBAgIPPZlYpZLvxHV+Rsy+qSD/MA0GCSqGSIb3DQEBCwUAMIGQ ...
-1
votes
1answer
67 views

OS X 10.10 Localhost Environment using nginx, mysql, and php via Homebrew

I am running Mac OSX 10.10 Yosemite with homebrew. I was using a localhost environment using MAMP and I wanted something that was less of a resource hog and without all the bloated extras. I have ...
-4
votes
0answers
81 views

millions of session files generated in /tmp dir then no space left on hard disk and made the website crash

There is a Wordpress site which only provide article reading services running on the linux server.(Doesn't have user center). But seems that doesn't work well these days. One day I found my site ...
0
votes
1answer
34 views

what is the alternative of apache's SSLCACertificateFile in nginx?

I am Migrating from an Apache Web Server to Nginx and i need an alternative of apache's SSLCACertificateFile in nginx library. I have used :- ssl_certificate as alternative of SSLCertificateFile ...
3
votes
1answer
34 views

Nginx uses both writev() and sendfile()

I noticed that when serving images Nginx is sending images using both writev() when called from a browser such as Firefox, but uses sendfile() to send the image when wgetting the image. Any idea why ...
0
votes
2answers
56 views

OPcache breaks phpBB registration

I don't know what happended, but whenever a user tries to register himself on one of my phpBB forums nginx throws 502 Bad gateway, but if I disable OPcache everything works fine. This is the error ...
1
vote
1answer
64 views

Slow download big static files from nginx

I'm using debian 7 x64 in vmware-esxi virtualization. Max download per client is 1mb/s and nginx no use more than 50mbps together and my question is what may cause so slow transfers? server ...
0
votes
1answer
24 views

Apache's ProxyPass and rewrite inside location

I need to convert the following nginx configuration to apache: location /api { rewrite ^/api/(.*)$ /$1 break; proxy_pass http://service.local:8989; proxy_set_header Host $host; ...
0
votes
0answers
33 views

Multiple upstreams and nginx subdomains not working

I am trying to setup a subdomain in nginx which proxies and calls a webserver running behind. I am trying to do api.mywebsite.com. I have the following nginx.conf file. user nginx nginx; ## ...
0
votes
0answers
33 views

Substitute reverse proxy HTML with dynamic content in Ngnix

I'm setting up a reverse proxy for internal testing of various websites via multiple backends. In order to be able to dynamically add backends, I'm using a wildcard subdomain and parts of the ...
0
votes
1answer
35 views

nginx location regex and try_files

Trying to set up an inherited nginx to do my bidding, but failing a bit at doing so. I have the typical nginx Wordpress setup: location / { try_files $uri $uri/ /index.php?q=$uri&$args; } # ...
0
votes
3answers
122 views

nginx 1.7.9: Reverse Proxy Web Sockets: hangs on service stop / service restart, never exits

We use nginx for load balancing to a pair of websocket servers, and have hit an issue. It will not gracefully exit or shut down once it has actually connected traffic to a web socket server. E.g. ...
0
votes
0answers
27 views

delay after 5 requests: rate limits? (and how to disable them)

I'm using the following configuration for my nginx server: upstream django { server unix:///var/www/example.com/django/ws/django.socket; } upstream io_nodes { ip_hash; server 127.0.0.1:8080; ...
0
votes
0answers
17 views

Doku wiki cannot connect to fast cgi behind ngnix

I'm trying to configure dokuwiki with ngnix. I'm using the https setup: server { server_name wiki.example.co; root /var/www/dokuwiki; index doku.php; listen 443 ssl; keepalive_requests 10; ...
-1
votes
0answers
35 views

nginx using proxy_pass to Wordpress on Apache

I've recently switched my main website over to using nginx instead of Apache. I have a second server still running Apache that is hosting a Wordpress blog. When both servers were on Apache I had the ...
0
votes
2answers
52 views

Can't add nginx latest version app repository in ubuntu 14.04

Ubuntu installs nginx 1.4.6 as default. I'm trying to install the lastest stable version of nginx (1.6.2). So here it says: you need to add Ubuntu PPA repository to get latest stable version of ...
0
votes
1answer
49 views

Browser gets two different SSL certificates instead of one (IE only) [closed]

It seems the problem appears only for IE11 (Win) users, for other OS and browsers HTTPS connection works fine. IE11 firstly gets outdated SSL certificate warning You ignore warning, proceed anyway ...
0
votes
0answers
32 views

Enable cache headers on Nginx

I'm trying to make cache work on a Nginx which is a proxy for gunicorn or which serves directly static files. I tried to add: location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { root ...
0
votes
0answers
5 views

NGINX Reverse Proxy - no user/password was provided for basic authentication [migrated]

I've got Nginx set up on a RPi (raspbian)as a reverse proxy using SSL between the remote user and the Nginx instance. All seems to work well for two services mounted on the RPi (Shellinabox and RPi ...
0
votes
0answers
26 views

NGNIX Redirect Loop SSL Error [duplicate]

Hey guys this is my first time posting a question here. I have a problem, I'm tired I been trying all day and cant make it work My website says redirect loop or problem when the other sites work ...
4
votes
1answer
85 views

SSL routines:SSL23_WRITE:ssl handshake failure, nginx on CentOS 7

First of all, what do I have: OpenSSL 1.0.1e-fips 11 Feb 2013 nginx version: nginx/1.6.2 CentOS Linux release 7.0.1406 (Core) and, for testing purposes, a self-signed certificate: openssl req ...
1
vote
1answer
49 views

Why does nginx redirect to URLs with a trailing slash?

I have set up a reverse proxy to allow our CD software to be accessed through HTTPS. This is my configuration: server { listen 443; server_name build.example.com; ...
0
votes
0answers
29 views

Nginx websocket proxy incorrect response

I was trying to set up nginx as a proxy to my server (Goliath) which happens to be serving both regular and websocket connections. This is my setup: upstream goliath { server localhost:9696 ...
0
votes
1answer
36 views

What is the nginx version of these .htaccess rules? [closed]

How should I rewrite this htaccess rules to nginx kind of rules: RewriteCond %{REQUEST_URI} !^/?puppy/index.php$ RewriteRule . /puppy/index.php
1
vote
1answer
23 views

ProxyPass in nginx

I am trying to proxy_pass in nginx with the following configuration: location /abc_service { proxy_pass http://127.0.0.1:3030; proxy_set_header Host $host; proxy_set_header ...
1
vote
1answer
57 views

nginx config try_file with a conditional rewrite based on if a target file exists [closed]

I am using a setup as shown below to redirect all unfound files to single fallback location location / { try_files $uri @missing; } location @missing { rewrite ^(.*)$ /fallback.php ...
2
votes
1answer
78 views

NGINX Internal Load Balancing + PHP-FPM Upstream causing random double request / submission

We are having a very serious problem where during seemingly random times, we get a duplicated request that is processed by our application. Typically, a user submits a form and occasionally will save ...
1
vote
0answers
29 views

nginx worker process load sharing

i have nginx setup to use 4 worker processes but only one of them is handling all the requests. other 3 workers are just idle. here is the screenshot form htop nginx.conf look like this ...
0
votes
0answers
24 views

Unicorn master failed to start error

I want to start unicorn, but it prints master failed to start, check stderr log for details And when I check logs nothing there. All settings with NGINX is OK! Because I work with it. But today it ...
-3
votes
1answer
88 views

nginx proxy, wget, and lynx all fail but openssl s_client and curl both work

I'm trying to create a proxy in nginx and I'm having a weird problem. I'm trying to create an NGINX proxy that just works and ignores every cert problem, cert issue, cert thingy imaginable. I just ...
0
votes
0answers
4 views

nginx + gunicorn + pyramid: Get actual domain name from headers [migrated]

I'm asking this question here instead of SO because it seems more like an admin question, hopefully someone can help. I just setup nginx + gunicorn to serve up a Pyramid web application. My ...
1
vote
0answers
84 views

Execute lua script after getting response from proxy pass

I have nginx block which proxy passes the request to different load balancers based on the request by first calling a lua script. location / { set $provider_key null; set $cached_key null; set ...
0
votes
1answer
70 views

Multiple domains and subdomains with SSL on single server with NGINX

I need to configure several domains on the same server, all with SSL and some of them being wildcard subdomains. I have the following domains pointing to same IP: projects.acme.com acme.server.com ...
-1
votes
0answers
31 views

Nginx is not up after rebooting

I've got a nginx working as a service at my linux machine. I run/stop that with sudo sh /etc/init.d/nginx start sudo sh /etc/init.d/nginx stop But now I want to make my nginx to start ...
-1
votes
0answers
37 views

Redirect nginx to iis

I have iis backend server on localhost:81 with site localhost:81/sitename and ngnix on same station. Ngnix has public ip. When I connect to my server from outworld browser by ip I see welcome ...
2
votes
1answer
91 views

SSL refused by Chrome but passes SSL test

When I request my website from Google Chrome, I receive a CERT_INVALID error, but when I test it using Qualys SSL test, it passes all tests and receives a A+. In addition to this, SSL seems to be ...
0
votes
1answer
41 views

Cannot access server on port different than 80

I'm hosting a server on Rackspace. Generally I have some domain name that i redirect to my ip and use nginx for the internal routing. This is my default configuration: server { listen MY_IP:80; ...
0
votes
0answers
38 views

Artifactory behind Nginx without directory /artifactory in the url

On our old server (hosted), Artifactory was running behind an Apache proxy. The public url was http://repo.example.com/ Our hosting provider moved us to a new server. A new version of Artifactory ...
2
votes
0answers
20 views

gzip_ratio not printing in nginx logs

I'm configuring the nginx access_log to output in JSON format to use with other tools. The data I want includes info about the compression. I have gzip on, but the only thing I'm getting for the ...
0
votes
1answer
76 views

Error while setting up grafana with graphite and nginx

While trying to setup grafana with graphite using nginx server. I am getting this error: No 'Access-Control-Allow-Origin' header is present on the requested resource. I tried changing configuration ...
-1
votes
1answer
95 views

Configure Nginx as Reverse Proxy with Apache2 on CentOS7 enabled with SELinux

I'm working on a project for academic purposes, the goal is to use Nginx as a Reverse Proxy for Apache, so far i've installed Nginx and everything is ok, it's listening to port 80, but when i was ...