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

0
votes
1answer
14 views

Tomcat CPU and GC going crazy

Having some major issues with our Tomcat 7 installation. It used to run fine for over a year, but now the CPU is mainly at 400% - 700% (8 core machine) and in the logs I see tones of these: ...
1
vote
2answers
25 views

Put nginx in maintenance mode for certain IPs

Because of the way if statements work in nginx (no nesting, no multiple conditions) I can't figure out a way to combine these two features: Using the nginx Geo module I have a list of allowed ips ...
0
votes
1answer
24 views

How to make nginx return 404 on empty files?

I am looking to see if it is possible to do a conditional rewrite based on the file size. Something like: if (!-s $request_filename) { return 404; } I'm assuming -s returns true if the file ...
0
votes
0answers
9 views

Error: No 'Access-Control-Allow-Origin' header is present on the requested resource. (NGINX)

I am using NGINX and I am receiving that error in the browser's console. I am so frustrated. According to my boss, I need to set up cors which what I did and still I am getting the same error. This ...
-2
votes
0answers
3 views

nginx ssl server rewrite request to external url to be http

I have an nginx server configured as a reverse proxy with SSL offloading. The server name is example.com Everything works fine, but there is a form in the webpage that needs to post to an external ...
0
votes
0answers
9 views

Sometimes for Some users 404 Not Found Nginx + PHP-FPM

Sometimes (Not Always) , I Get Nginx 404 not found message on my site. Unfortunately there are no logs written about it neither in php-fpm or in nginx error logs. Can it be due to caching ? I am ...
0
votes
0answers
13 views

roundcube 0.9.5 - installed from Ubuntu package

If installing roundcube in Ubuntu 14.04 LTS, version 0.9.5 is downloaded. The files are copied to /var/lib/roundcube/ and /usr/share/roundcube, the database is set up. As I'm using nginx as webserver, ...
4
votes
1answer
47 views

Why is my web server dropping connections with a TCP reset at high load?

I have a small VPS setup with nginx. I want to squeeze as much performance as possible out of it, so I've been experimenting with optimization and load testing. I'm using Blitz.io to do load testing ...
1
vote
0answers
14 views

Nginx proxy_cache / Varnish - parallel requests trigger multiple requests to backend?

I am looking for a HTTP reverse proxy that will handle HTTP live streaming use cases in a performant manner. Assume file/fragment sizes up to 4MB with a constant load of client requests for the same ...
0
votes
0answers
12 views

Dynamic content, what is the best web server combination? (Software wise not Hardware) [duplicate]

We developed a mobile game for smartphones and it uses a http php website as a backend. Sometimes we even have 14000 people playing at the same time, at 12000 it is already noticeable slow and web ...
-1
votes
2answers
92 views

What should I do to know if SSL is working? [on hold]

I am working with NGINX, I just set up a domain and subdomain where I need to have SSL on both. Look at the server block for the subdomain server { listen 80; listen 443 ssl; server_name ...
1
vote
0answers
12 views

Nginx: Tags in Syslog output on wrong position

I'm trying to output the logs of several Nginx servers in FreeBSD jails to the jails' host. I'm using FreeBSD 10 syslog and Nginx 1.7.10. In Nginx (in this case the hostname is web) I have set: ...
1
vote
0answers
9 views

Rails + Nginx + Unicorn increase post data size ( 414 Request-URI Too Large)

I get 414 (Request-URI Too Large) exception on my POST Request while sending bulk date to my server. Is it possible to increase the limit of POST data? I have done following change in nginx ...
0
votes
0answers
12 views

Nginx cache gziped results on reverse proxy

I have been trying to figure out how I could set my reverse proxy to cache gziped results. What I am trying to achieve is following: Client requests for JS/css -> Reverse proxy requests it from ...
1
vote
1answer
25 views

Nginx redirect is causing issues

I've got a problem that I hope is simple. I have a wordpress plug in that produces a link to a picture when a user chooses to share it. I have discovered that the link is properly formed and should ...
0
votes
1answer
37 views

Unable to successfully enter to a subdomain

I have a little issue here trying to enter to a subdomain, I would like you to get me clear about the command line I am using because actually it got me confused. server block for domain listen ...
1
vote
0answers
23 views

nginx location not responding to pathnames

I've set up my site file but for whatever reason the alias isn't working. The site is an internal site and all media files are kept on a NAS off of the server. I'm trying to access them using /video/ ...
0
votes
0answers
14 views

Extra certs issue with Nginx SSL config

It seems that I've set up my SSL wrong. SSL labs gives me the following: https://www.ssllabs.com/ssltest/analyze.html?d=pitot.io&hideResults=on The issue in question is "extra certs". This ...
1
vote
1answer
17 views

Content-Security-Policy issues (NGINX)

I am working with NGINX and I have a couple issues here. I have a domain and one subdomain Server block for domain listen 80; server_name just4bettors.mobi www.just4bettors.mobi; root ...
0
votes
0answers
14 views

Nginx PHP-FPM stops after connection timeout

I have a server with Nginx and PHP-FPM for a single web application. Everything works will until I make a request for a page that takes over the 60 seconds allowed. Then PHP stops responding to any ...
2
votes
1answer
174 views

Can't access domain internally via public IP address [duplicate]

I have a dedicated server running Proxmox and a VM inside Proxmox running Debian 7 (Wheezy). As I only have one IP address, I'm using iptables to forward ports to the VM. My ...
0
votes
1answer
17 views

nginx - serve single file on a location block without changing the path

I have a single page web application. I want to set up nginx to serve files under a folder directly, and for all other requests, I want it to serve a single html file. The setup I wanna achieve is as ...
0
votes
0answers
23 views

How to find corresponding IP addresses from apache error logs [on hold]

I have a ton of error log entries in my apache error.log file that look like this: [Mon Mar 30 04:31:12 2015] [error] [client 127.0.0.1] File does not exist: /path.com/phph [Mon Mar 30 ...
-2
votes
0answers
13 views

HHVM stops logging [on hold]

We are trying out hhvm (with nginx) for a production website, because one customer really wanted to try it, and of course you do what customers want :) Basically it works great, even though i ...
0
votes
0answers
22 views

how to match up setting in security/limits.conf with nginx.conf for at least 5k users per minute?

I know by reading similar posts that worker_connections * worker_processes = user connections per second so I would need to set soft nofile to same as above result? Also, how do I count max ...
2
votes
1answer
74 views

Website not loading static files when NGINX has static cache content enabled

I have a VPS running CentOS with NGINX/PHP-FPM. Everything works fine, except when I add the following lines to enable the static cache content. If I do, the page does not load those files specified ...
1
vote
1answer
17 views

Sharing Chef Server with Apache

I have a server that shares multiple web based applications for our entire development team. This server has both chef-server and apache installed. Unfortunately, the nginx server that chef installs ...
0
votes
1answer
24 views

Nginx how to run shell script on page load via lua module os execute and then serve directory listing?

So I have a bash script that I want to execute/run on each "page load" of url so that it will modify (creating symlinks) to a /public/html/ folder that I want the server to then serve. The problem ...
-2
votes
0answers
19 views

ngnix php-fpm error centos [on hold]

I'm using nginx version: nginx/1.6.2. I've tried to with only sock file but this is not working.. Anyone knows correct configuration ? php-fpm conf : listen = 127.0.0.1:9000 ; listen = ...
0
votes
1answer
20 views

nginx - serve static content from public directory under each app

I have similar project structures and directories in almost all nodejs apps I'm proxy forwarding via nginx. The structure is as follows: /var/srv -/app1 -/public -/css -/js -/img -/app2 ...
0
votes
1answer
29 views

Using nginx or mongoose or mongrel or other tiny web server, how to serve certain files from subdirectories as from one root or top level directory

I have a directory structure let's say of /user/me/project1 /usr/me/project1/private/stuff /usr/me/project1/whatever/bla/bla /usr/me/project1/pdf/bla.pdf /user/me/project2 /user/me/project2/priv1 ...
0
votes
1answer
30 views

nginx - differentiating between localhost and server IP

I've migrated from LAMP stack to nodejs + nginx in front , and amazed by running different applications on different ports. currently my nginx contains: server { listen 80 default_server; ...
-1
votes
1answer
29 views

nginx rewrite faux image to PHP [on hold]

Working on using nginx to serve images. static.foobar.com/UUID.jpg url will actually serve as a pointer to a PHP script which determines if you have permission to view that image (and if so, serve ...
1
vote
1answer
32 views

Refused to connect to 'http://someURL' because it violates the following Content Security Policy directive: “connect-src http://someURL”

Well, that's the error which comes up from my browser console, I am working with one domain and that domain has only one sub-domain, and I still don't have access to the sub-domain. Actually I am ...
-3
votes
0answers
33 views

nginx not start , site down [on hold]

today my vps not function , every web site hosted is down, i have centos 6.6 and web hosting panel (vesta) in service of vesta nginx not start, i try to deactivate the nginx for the site but the web ...
1
vote
0answers
20 views

How do I configure nginx to have a server block pointing towards a django app?

Suppose I have an nginx server, with Django apps set up as "/djangoapps/exampleapp1/" and "/djangoapps/exampleapp2/". Suppose I just registered a domain "www.exampleapp2.com". How can I point ...
-1
votes
0answers
12 views

Syncronise static data on three Nginx servers

I installed three Nginx nodes on which I do load balancing using a pfSense load balancer, and now I have to synchronise the static data on three servers, as I don't have a shared storage for them. I ...
0
votes
1answer
36 views

nginx proxy_pass rewrite of response header location

The aim of this nginx instance is to get GitLab and OpenWRT Luci to redirect through a reverse proxy. It's already working for several other websites, all which have a base url which seems to counter ...
2
votes
2answers
50 views

Nginx proxy to many container running on different CoreOS nodes

Surfing the net, I've found many tutorials about proxying to different Docker containers running on the same host, using Nginx/Confd (or Haproxy, or Vulcand). However, what I need to do it's ...
0
votes
0answers
6 views

nginx how to override/add single mime-type

I tried to add markdown rendering by putting types { text/markdown md; } into server section, but then index.html stopped to be rendered all of a sudden. I can explain this only if types overrides ...
0
votes
0answers
23 views

Nginx Echo Subrequest not working

I am new to Nginx. My requirement is I need to make a service call but along with proxy passing that request, I need to make call to another service/servlet. For this I decided to use Echo module to ...
0
votes
0answers
20 views

sec_error_unknown_issuer after new ip [closed]

Yesterday my vps provider locked down my ip during 24 hours because of an external ddos attack. I immediately purchased a new ip, set it up in the network as eth0:0 (and added the original one as ...
-1
votes
0answers
25 views

Need to set up domain/subdomain using NGINX [closed]

I need to set up a domain and a sub-domain in the same port. The domain is named www.just4bettors.mobi which is for a mobile site, and the subdomain must be named www.desktop.just4bettors.mobi which ...
1
vote
1answer
20 views

Nginx: alias and try_files with $args [duplicate]

When I try to use try_files with ?$args at location /api/v1 I get error 404. Without it it's working properly. Any idea? Nginx Configuration server { listen 80; server_name domain.com; ...
1
vote
0answers
31 views

Nginx: how to set host header to the server chosen (load balancing)

I have a site that works as load balancer. Site A. I have other sites that only can have one domain. So if i just redirect to them it says host name not found. So if i manually set header to ...
0
votes
0answers
11 views

adding nginx redirect with or without trailing slash [closed]

adding a new rewrite to nginx for a url /store/ and /store is this the proper way... for with or without ending slash. See my code below rewrite ^/security(/.+)?$ https://send-to-new-site.com/blah
0
votes
0answers
37 views

nginx in front of tomcat : How to make the proxy pass work without the trailling slash / at the end

The problem I got nginx in front of tomcat like i said in the title. They are on two different servers . I need to make the proxy_pass work without the slash beause my app need to receive a request ...
0
votes
0answers
42 views

nginx & php5-fpm exited on signal 7 (SIGBUS) / 502 Gateway Timeout [on hold]

if got the problem when i load a page multiple times (i.E. 10 Tabs with autoreload) only some of the pages load others get 502. it doesn't depend on the content of the page. when i open the same page ...
0
votes
0answers
24 views

Weird 502 responses of AWS ELB

My website suddenly failed to work this afternoon, responding every request with 502. I've set up 3 backend instances behind ELB, each with Nginx installed. At first, I suspected there's something ...
2
votes
1answer
44 views

NginX dropping session data when acting as an SSL reverse proxy for a sinatra application

I'm pretty much stuck at this point. I've got a website, served up on Mizuno (A Jetty variant, I think) using Padrino (A sinatra variant), on port 8080, with Nginx listening at 80/443 to allow for SSL ...