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

-3
votes
0answers
17 views

nginx after one or 2 Hour error

my site is joomla and i config windows server 2008 r2 to mysql php and nginx it work ok but after 1 or 2 hour suddenly show error page?! this is my configuration: worker_processes 32; events { ...
0
votes
0answers
9 views

Nginx location / does not match if the folder exists and the last / is missing.

I have the following configuration: # HTTPS server server { listen 9080; server_name test.test; proxy_set_header X-Real-IP $remote_addr; proxy_buffer_size 128k; ...
0
votes
0answers
5 views

nginx, meteor and phpmyadmin

I'm trying to get meteor and phpmyadmin working on a site using nginx as the front end. I have the meteor site now working, listening to its subdomain and have followed some instructions (for example ...
0
votes
0answers
14 views

nginx load-balance set weight and ip_hash at the same time

By default nginx upstream directive use Round-Robin to distribute requests to backend realsevers and set the weight of server by weight. But I do not see any words about whether weight work for ...
-1
votes
1answer
9 views

Wordpress Site Broken After Updating Theme

If I leave out needed details, please tell me. I'm running Nginx on Ubuntu 14.04 x64. I use php5-fpm. Currently I am battling with my PHP installation, and it's causing a couple problems now. See my ...
-1
votes
0answers
14 views

Wordpress access forbidden for newly uploaded files on plesk 12

I have issues with wordpress rights on plesk 12 (with nginx default setting) and not fully understanding why right now. Anyhow finally I'm now totally confused what the right permissions have to be? ...
0
votes
0answers
9 views

Error 499: Varnish is working how load balance Nginx Webservers

I created a solution to host a magento store with high traffic (> 500 user simultaneously) on AWS. Too often HTTP 499 error appears in the access.log the Varnish. When this happens users who have such ...
-1
votes
0answers
17 views

Apache + Nginx + Varnish + FastCGI = PHP Connection timed out? [on hold]

I am running a server with Nginx being the frontend, passing the data to Varnish, or if its a PHP script, passing it to FastCGI, and then the Apache Backend; however, when I attempt to execute a POST ...
0
votes
0answers
27 views

All LDAP traffic is being sent on TLSv1.1 not TLSv1.2

I have a kvm server, Centos 6.6 host with 6.6 guests. We run a php based web app that uses LDAP authentication for our clients. We just moved a client to this setup and they are reporting that all ...
0
votes
0answers
18 views

nginx rewrite url issue

Current rewrite URL : rewrite ^/link/(.*)/(.*)/(.*)/$ /link.php?one=$1&two=$2&three=$3 last; What I need is solution so three link samples work: 1) /link/one/ 2) /link/one/two/ 3) ...
0
votes
0answers
5 views

Mask subdomain.mydomain.com to sub-directory

I have a wordpress site: instano.wordpress.com. Now I want to host it in my sub-directory, as www.mydomain.com/blog i.e. my users should see the URL: www.mydomain.com/blog/... I have a nginx-unicorn ...
0
votes
0answers
8 views

Nginx reduce waiting time on django

My nginx setup is user root; worker_processes 4; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include ...
0
votes
0answers
8 views

Nginx HTTP Authentication Password for a specific domain?

I have a codebase that is distributed to a number of domains, and this code base also includes the nginx configuration files. Most of the domains are internally accessible anyway, however one of them ...
0
votes
0answers
9 views

nginx and font files from cdn access control error

I have my website hosted on nginx and every thing works well just that when I add fonts from cloud the site gives me access error Following is the error, please note that I have replaced the original ...
1
vote
1answer
35 views

How to remove a GET query key in NGINX and use the GET value as the URI?

I have an email verification script that looks like this: http://example.com/v/index.php?t=TOKEN_EMAILED_TO_CLIENT And I want it to look like this: http://example.com/v/TOKEN_EMAILED_TO_CLIENT ...
0
votes
0answers
22 views

404 Node JS on Nginx

Hello from down under everyone, I'm new here, sorry if the question is so basic. Search shows there's nothing similar like it though, so, here we go: I tried setting up nodejs on my nginx server, ...
0
votes
0answers
26 views

Port 443 set up SSL on Nginx + Ubuntu + EC2

I've tried everything and I searched Google behind some solution, but can not configure SSL (https) in my Nginx server that is within a Ubuntu 14.04.2 LTS on Amazon EC2. My website works perfectly on ...
-2
votes
0answers
55 views

Wordpress 502 Bad Gateway

I have looked at other questions similar to mine, and have tried many things, but no dice. In Wordpress, which I run on a virtual server of mine, along with several other websites on the same server, ...
0
votes
0answers
16 views

nginx: [emerg] “proxy_pass” cannot have URI part in location given by regular expression, or inside named lo

I am using nginx to upstream to a different set of servers depending on the geo of the user. As it seems the geoip module does not return any value for the local addresses (localhost, 192.168.0.X ... ...
0
votes
0answers
20 views

nginx: No client certificate CA names sent

I have nginx and want it to verify client certificates. So I bought commercial certificate for server, and non-commercial for clients. Basically I've generated client certificates with easy-rsa ...
0
votes
1answer
22 views

hhvm + nginx + wordpress - upload issue

I installed nginx 1.7.12 + hhvm 3.7.0 + wordpress 4.2.2 on digital ocean droplet. I am trying to upload a theme that is 17 mb. While uploading, after exactly 30 seconds the upload restarts itself ...
0
votes
1answer
28 views

nginx on fedora fastcgi not working

I'm running nginx on Fedora Server 22 and fastcgi scripts are not working. Under http://panel.minefight.org/ enter any login data, it doesn't load the password fail or success site. The same thing ...
0
votes
0answers
27 views

Which Variable Stores Nginx Source Port Toward Upstream

I'd like to read the source port, i.e. Nginx' own source port (as client) used to communicate with upstream. Could not find it in the documentation, but would make send to have it.
0
votes
0answers
3 views

Accessing an nginx webserver on CentOS7 VM hosted on Virtualbox in Windows 10 [migrated]

Setup: A single CentOS 7.1 VM running on a Windows 10 Pro server (preview version 10074), inside Virtualbox 5 beta 4 (also tested on 4.3.8). Using nginx/1.9.0, to serve static HTML files. The VM is ...
1
vote
1answer
29 views

Codeigniter in subdirectory on Nginx 404

I'm trying to setup Codeigniter in a subdirectory of my domain. Currently I only get an 404 from Codeigniter on the index page. As soon as a want to go to example.com/api/welcome/index I get a 404 ...
1
vote
0answers
10 views

WordPress Nginx Browser Cache Expires on Extentionless URLs

Struggling a bit with the following. Adding expires for JS and CSS, plus other static files is easy: # Directives to send expires headers. location ~* \.(?:css|js)$ { expires 28d; ...
0
votes
0answers
20 views

nginx dynamic tcp proxy configuration [on hold]

We need to dynamically configure nginx TCP proxy. For example, Setup tcp proxy on some random port, i.e. a1.mydomain.com:12345 -> somehost:someport Later on: Turn off tcp proxy ...
0
votes
0answers
29 views

Nginx - reverse proxy pass packets to localhost

Say for example I have nginx proxy setup like such: server { listen 443 ssl; server_name foo.com; #SSL and logging settings omitted location /datapath1 { ...
1
vote
0answers
10 views

No Module Named OS - NGINX/UWSGI/NGINX

Have looked at many related posts and most point to an outdated version of python that is cause the 'no module named os' during the uwsgi boot. I've run print sys.version_info And it shows python ...
0
votes
0answers
11 views

Passenger+Nginx instances fail to keep rails' uniqueness true

I have multiple Nginx+Passenger instances conf here and many models (more than 40) that has validations on uniqueness. e.g. class Ssid < ActiveRecord::Base validates :name, :presence => true ...
0
votes
0answers
5 views

Can't seem to get fastcgi_cache_use_stale to work

So I have two browsers open and am requesting a page: http://localhost/test.php Once every 10 seconds the cache expires and when I refresh the page it takes 5 seconds to load the script, store in ...
2
votes
1answer
46 views

When shoud I use ssl_session_cache paramter in nginx ssl settings

What do I benefit from ssl_session_cache set in nginx.conf when I using https? See here.
0
votes
0answers
17 views

“unknown directive” when installing Phusion Passenger on Debian 8 with nginx

I try to install Phusion Passenger on a Debian 8 (amd64) which already has an installed nginx (the Debian default nginx package). I use the official install how-to: ...
0
votes
1answer
21 views

VirtualHost's behind an nginx reverse proxy fail to resolve properly

I have a load balancer pair in front of 4 web servers which run nginx on port 80 and proxy to apache on port 8081 for non-static content like php code. I'm running several domains in this ...
-3
votes
0answers
13 views

How to redirect one exact url to another url in NGINX [on hold]

I had scan everywhere in this website on NGINX rewrite rule but all of them handling url with wildcards. How about only one particular url case? For example, redirect: http://example.com/ to ...
0
votes
0answers
11 views

NGINX + uWSGI + Flask. Some requests very slow

We're running a fairly large Flask application and finding that at random times we'll end up with a very slow request (sometimes a minute or more) I presume the issue is related to lazy-loading ...
-2
votes
0answers
11 views

nginx limit requests by url parameter

I have proxy server running nginx and its proxying requests to a few backends. Usual URL format is something like this: /search?login=test&token=12345&keywords=travel At every second there ...
1
vote
1answer
24 views

PEAR Mail error seems to crash the server (php-fpm) : 504 Bad gateway

I've been running on this issue for a few days. I haven't made configuration changes, apart from the usual system/security updates. Server runs on Debian Wheezy PHP 5.4.41-1~dotdeb+7.1 Nginx ...
0
votes
1answer
17 views

Nginx not displaying CSS, PNG & SVG

I have been looking through the hundreds of questions about this for a couple of hours now, but I haven't been able to find a single one that's the exact same as mine. Up until a week ago, all sites ...
-2
votes
1answer
36 views

NGINX Load balancing or stronger hardware? Please explain

I have a web application and expect it to be getting many concurrent users. I have seen engineers use load balancing to achieve optimal efficiency but I still don't see how buying more servers is ...
0
votes
2answers
28 views

Log rotation on NginX in Configuration file

I've tried this tutorial to rotate log file without external software, but it seems it doesn't work, my configuration on the server { block: if ($time_iso8601 ~ ...
0
votes
0answers
15 views

Logstash not saving anything for Nginx

I have a rather simple setup for Logstash as follows: /opt/logstash/patterns/nginx: NGUSERNAME [a-zA-Z\.\@\-\+_%]+ NGUSER %{NGUSERNAME} NGINXACCESS %{IPORHOST:http_host} %{IPORHOST:clientip} ...
0
votes
1answer
23 views

Logrotate - how change it so that it never deletes logs and will create a .gz every 6 months?

I read the man logrotate, but it's still unclear to me. My questions are mainly related to the NGINX webserver logs. This is my current logrotate.conf: # rotate log files weekly weekly # keep 4 ...
0
votes
0answers
23 views

CORS in Nginx 1.2.1 (Debian 7)

I am using Debian 7 and Nginx 1.2.1. Http headers module is enabled by default with Debian packets (https://wiki.debian.org/Nginx). I am trying to add links to facebook, twitter and google plus ...
1
vote
0answers
29 views

nginx - redirect https://subdomain.example.com to https://example.com

I want to redirect https://subdomain.example.com to https://example.com. Here's what I'm trying: server { listen 443 ssl; server_name subdomain.example.com; return 301 ...
0
votes
0answers
15 views

Rails app with nginx passenger: recv() failed (104: Connection reset by peer) while sending to client

I've searched both StackOverflow and ServerFault, but almost every Q/A is about "while reading response..." for the 104: Connection reset by peer, and not "while sending to client". This is what my ...
0
votes
1answer
31 views

nginx proxying requests to wrong backend

Why would going to https://robert.bob.com/norbert/ go to backend1 instead of backend2 with this configuration? server { server_name robert.bob.com; rewrite ^/(.*) https://robert.bob.com/$1 ...
1
vote
0answers
13 views

Django + gunicorn + nginx concurrent users on default configurations [closed]

I am currently setting up nginx+gunicorn to serve a django app that is going to be used by at most 60 users following THIS tutorial. The app is pretty basic, 6 django forms made out of 10 fields and ...
0
votes
0answers
15 views

CloudFlare + Nginx + ngx_http_realip_module

We are currently using ngx_http_realip_module to convert CF ip's back to the users'. It works well for the most part but some ips in our access.log are still from CF. Current config in http {}: ...
0
votes
0answers
12 views

Nginx with proxy_protocol is not accpting requests from haproxy in TCP mode with send-proxy

I have haproxy and nginx. I want make this setup accept HTTPS connections and I want HTTPS request being decrypted on nignx, not haproxy. In haproxy I've created frontend and backend for HTTPS ...