Nginx ("engine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

learn more… | top users | synonyms

0
votes
1answer
28 views

Nginx : How to server error_pages (404, etc) using uwsgi url?

I know it's possible to server static files using error_page in NGinx, but I was wondering if it was possible to server an url from my local (socketed) Flask app that is served through UWsgi. Here's ...
1
vote
2answers
149 views

SSL will not work on Android mobile

I bought Comodo SSL from Namecheap. Now, the SSL works fine on desktop, I am getting a "This Connection is not private" on mobile phone.. on my chrome on Android Here is my virtual host file: server ...
0
votes
1answer
26 views

Replace ssl certificate in bundle

I'm not really used to administration stuff so please bear with me. Recently, the server's certificate from RapidSSL expired and we renewed an received a new one. TO replace the cert, I opened up ...
0
votes
2answers
40 views

Nginx remove everything after subdirectory

Tried searching on the forums for an answer but I'm quite stuck... I have a page called course which used to have a load of sub pages but now I need all requests for those subpages to redirect back ...
0
votes
1answer
46 views

Nginx + Gunicorn not handling 1000 concurrent users?

I'm running a site with 2 cores on the machine, and nginx(2 processes) and gunicorn(5 workers) serving a flask app. I did a stress test using locust.io to similulate 500 users, and the site breaks ...
0
votes
2answers
64 views

NGINX Proxy_Pass remove url substring

I have one NGINX acting as reverse proxy. I need to remove a substring string_1 from the URL, the rest of the URL is variable. Example: Origin: http://host:port/string_1/string_X/command?xxxxx ...
0
votes
0answers
66 views

Nginx reverse proxy and wordpress

Everything working well but I'm getting a issue with wordpress when I'm in the extensions page. The probleme is that there are no picture displaying of each plugin and when I click on the picture of ...
0
votes
0answers
35 views

Invalid certificate error with IE9 on Win7 and Nginx with multiple virtual hosts

We have an Nginx instance with multiple virtual hosts on the same IP address. nginx.conf has configuration similar to the following: server { listen 443 default_server ssl; server_name ...
0
votes
1answer
30 views

gunicorn behave differently when run from terminal and by service

I am using nginx+gunicorn+django for my website. The following is my gunicorn.conf file: description "Gunicorn daemon for Django project" start on (local-filesystems and net-device-up IFACE=eth0) ...
3
votes
0answers
77 views

CURL PHP can't resolve host [closed]

I'm trying a php script that is doing requests with CURL. But I get the error Couldn't resolve host 'example.com' $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER , true); curl_setopt($ch, ...
0
votes
0answers
130 views

nginx - reverse proxy for Apache and Socket.io on a SSL enabled site

My SSL secured web application consists of Apache server (PHP) and NodeJS (Socket.io). To overcome the issue of blocked ports on various networks, I decided to use nginx for redirecting the requests ...
0
votes
0answers
20 views

ngx_http_rewrite_module does not work under https schema

Why rewrite ^/location/(.+)/?$ /destination/$1 redirect; works under under "http" schema, but it does not work under under "https" schema?
0
votes
0answers
49 views

Nginx - default 404/403/500 when using proxy_pass

I have two locations in my nginx config. It tries to serve static files from local filesystem, and if the file is not found there, it tries accessing a remote file server: location ~* ...
-1
votes
1answer
43 views

After Rebooting mysite gives blank pages

Mysite is using Ngnix, I just resized my Server's RAM, after rebooting, every thing was normal, but mysite gives me blank white page, i didn't detect any "Error logs" server { listen 80; ...
0
votes
0answers
35 views

How to block nginx POST requests to certain domains?

I have repeating lines in access.log: 117.169.1.67 - - [16/Jun/2015:11:19:11 +0600] "POST /hostdata21.php HTTP/1.1" 200 50186 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR ...
0
votes
0answers
20 views

limit_req on nginx not working

Iam using Ubuntu server 14.04 with apache + nginx proxy over it. I tried to set up limit_req in /etc/nginx-sp/nginx-sp.conf as this: http { limit_req_zone $binary_remote_addr zone=one:1m ...
1
vote
1answer
28 views

Apache “hijacks” an URL from Nginx

I have a Ubuntu server running Apache, which hosts a Wordpress site, which is accessible using HTTP. There's also Nginx installed that hosts a Django site that's only accessible using HTTPS. Now, ...
2
votes
1answer
51 views

Nginx: SNI doesn't work for server_name with multiple arguments

With this Nginx config: server { listen 443 ssl; server_name www.x.nl x.nl; ssl_certificate /etc/nginx/ssl/x.nl.crtkeyca; ssl_certificate_key /etc/nginx/ssl/x.nl.crtkeyca; ...
0
votes
1answer
56 views

NGINX logging not working when deny all in location block

I thought this behaviour was quite weird, hence I am going to ask on here. Take this location block; location ~ /(wp-config.php|readme.html|licence.txt|license.txt|readme.txt) { access_log ...
0
votes
0answers
44 views

No script name passed to php-fpm via nginx/FastCGI

I run a PHP 5.6 instance over php-fpm without a problem (unix sockets and nginx). Today I compiled PHP 7 and also started it as a second PHP instance. While requests get served fine with the PHP 5.6 ...
0
votes
1answer
84 views

Nginx: Redirect URL to always include a locale prefix

I'm trying to achieve something with nginx and redirect rules which seems like it should be pretty straightforward, but I've run into a stumbling block. Having had a look through many questions and ...
0
votes
1answer
84 views

How Can I Have Apache & Nginx both behind Varnish?

I have a setup where I have Varnish listening on Port 80 behind Apache on Port 8080 while I intend having Nginx on 8081. My vps' control panel supports only Apache but I want to test one of the sites ...
1
vote
1answer
70 views

How to setup Nginx to use ssl/non-ssl for different urls on a single site, but always use ssl if user explicity types https in browser's address bar?

My current nginx.conf looks something like this: server { listen 80; server_name www.example.com; root /var/www/; location / { } location /users { rewrite ^ ...
0
votes
0answers
168 views

Avoid mixed content issues with the try_files directives when using Nginx as an SSL proxy?

I'm using Nginx to act as an SSL proxy inside a docker container listening on port 443. The proxy correctly works and properly routes trafic to another Nginx instance upstream on port 80 (that lives ...
0
votes
1answer
51 views

Reverting PHP-CLI back to default path on Ubuntu, NGINX, HHVM

While experimenting with optimizations on my brand new LEMH (Linux, Nginx, MariaDB, HHVM) stack; I changed the PHP-CLI config to use HHVM for /usr/bin/php by using the following command: $ sudo ...
1
vote
1answer
49 views

Nginx whitelist file extension

server { listen 80; ## listen for ipv4; this line is default and implied #listen [::]:80 default ipv6only=on; ## listen for ipv6 server_name public; root /var/www/public; location = ...
0
votes
0answers
27 views

Nginx alert: http request count is zero while closing request

I just install NGiNX on a CentOS server. And I have been receiving strange error: http request count is zero while closing request, client: --.---.--.---, server: 0.0.0.0:80 The other ip ...
0
votes
1answer
95 views

Disable authentication for HTTP OPTIONS method (preflight request) in Nginx

My problem is the exact same one as described here: Disable authentication for HTTP OPTIONS method (preflight request). I'm trying to use CORS and HTTP passwords at the same time. When the browser see ...
0
votes
1answer
62 views

NGINX random 403 errors on page and static images

I have a problem with getting random 403 errors with NGINX. On a page "profile/user.name.1" I have static images, but they are not loading. I get the following message: "Failed to load resource: the ...
0
votes
1answer
55 views

how to make nginx proxy pass along connection refused?

I have an nginx proxy pointing at an external server. When the external server is down, the nginx proxy returns a 502 bad gateway. Instead, I'd like nginx to also refuse the connection - How can I do ...
-5
votes
2answers
77 views

NGINX extract last part of url

In my config file, I need to extract the last part of a url into a variable for use in a redirect e.g. if the url is http://www.example.com/question, I need "question" so that I can set up a rewrite. ...
1
vote
0answers
18 views

Converting .Htaccess Rewrite Rule to Nginx

I have the following apache rewrite rule which I am trying to convert to work with nginx. RewriteRule ^(.*)\/(.*)-(\d{4})(?:-(.*))?$ album.php?artist=$1&album=$2&releaseyear=$3&extra=$4 ...
-1
votes
1answer
33 views

Nxginx rewrite url without redirection

I would like to know if it's possible and how to rewrite an URL without redirection using nginx as web server. To be more precise, what I want is that when someone access to www.mydomain.com/auctions, ...
0
votes
0answers
26 views

How can I secure an insecure Meteor by using Nginx?

I have an insecure Meteor running on AWS. For those not familiar with Meteor, that means I am using the "insecure" package, which trades security for rapid prototyping. I only need our development ...
-2
votes
1answer
53 views

What is the meaning of Server :cloudflare-nginx?

I am trying to see, what is the web-server name of a particular website. http://browserspy.dk/webserver.php When i searched i got response as Server: cloudflare-nginx i know nginx and ...
0
votes
1answer
15 views

Troubleshooting Curl Timeouts

I run a SaaS monitoring service. Our standard integration example is to make a curl request to a special URL we provide. We have an intermittent issue where a user is hitting a 10 second curl timeout ...
0
votes
1answer
42 views

Is it a security issue if I have GIT working copy in www?

If I checkout a working copy into the www root of my site, would that be a security vulnerability?
0
votes
0answers
45 views

Varnish keeps caching css and js even after I've set it not to in vcl_recv

In my default.vcl I have the following: if (req.url ~ "\.(js|css|jpg|jpeg|png|gif|ico|tiff|tif|bmp|svg)$") { return (pass); } All the types aren't cached, as I've request, but all ...
-2
votes
2answers
167 views

PHP opcache. 100% hits, 100% used memory [closed]

My PHP OPcache hits 100% Memory Usage General info Zend OPcache 7.0.4-dev PHP 5.5.23-1+deb.sury.org~trusty+2 Server Software nginx/1.6.2 Here are my Cache Settings: zend_extension=opcache.so ...
0
votes
1answer
58 views

Nginx + ssl not responding

I'm currently putting up a server with SSL for leapfunder. I created a server (Ubuntu 14.04 on AWS), directed notes.civocracy.org to it. I bought a SSL certificate on GoDaddy, lauched and configure a ...
0
votes
3answers
45 views

How to account traffic on CentOS Linux?

I have an EC2 CentOs instance on AWS with nginx that has been pumping out major outgoing traffic, which of course is pumping up my monthly cost. How can I track down what is sending so much data?
2
votes
1answer
67 views

Nginx on ubuntu 12.04 keep refusing OPTIONS requests

I am trying do do cross domain Ajax calls inside an angular service in an ionic application tested in chrome. I am trying to do a POST on my API and nginx keep refusing my OPTIONS. XMLHttpRequest ...
0
votes
1answer
42 views

Can't remove forced HTTPS redirect from Nginx?

I had originally setup my Nginx configuration to automatically redirect HTTP to HTTPS. Due to my work security policy and Cloudflare integration, HTTPS will not resolve inside my network. I'd simply ...
0
votes
0answers
23 views

Why is Apache Bench not ignoring content length?

I run Apache Bench like so: ab -n 11 -c 1 http://dev-web.asl.ac.com/ And I get 10 failures, because the length changes on each request: Server Software: nginx/1.6.3 Complete requests: ...
0
votes
1answer
56 views

Nginx HTTPS config issue for non-wws

I need to configure nginx for one of my rails application to route some pages through SSL but facing problem with configuration. I've a SSL certificate where common name is example.com and my site is ...
1
vote
2answers
85 views

Rewrite url with fastcgi in nginx

I have a working php fastcgi config in nginx. Now I have few requests to handle such as /X.php by /X, /Y.php by /Y Sounds simple so I wrote the following for testing: rewrite ^/X.php$ ...
0
votes
0answers
56 views

configure NGINX to work with squid

I have squid running on one server(192.168.29.246) with sslbump enabled. I configured nginx(192.168.29.245) in the other server and i want it to work in front of squid. However, only the ...
0
votes
1answer
54 views

Nginx upstream fails over from serverA to serverB, and then back to serverA, why?

Background I have the following Nginx configuration which is load balancing 2 Tomcat servers running on 2 different servers: ### http://nginx.org/en/docs/http/ngx_http_upstream_module.html#hash ...
0
votes
0answers
25 views

Passenger tmp file not found

2015/06/08 18:15:07 [crit] 6450#0: *28773 connect() to /tmp/passenger.1.0.6428/generation-0/request failed (2: No such file or directory) while connecting to upstream, client: x.x.x.x, server: ...
0
votes
0answers
25 views

PHP-FPM stops responding suddenly and resumes after 2-3 minutes

I have 4 php-fpm servers running on backend to server Php request to Nginx. Everything works fine but sometimes suddenly PHP-FPM stops responding to Nginx and resumes well in normal mode without ...