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
votes
0answers
14 views

Is cache exists nginx [duplicate]

I'm trying to set up debugging header Is-From-Cache, but I don't know how to detect if cache exists and nginx is taking it. May there is some kind of bulit-in variable $is_cache_exists?
2
votes
2answers
74 views

Do you need separate ipv4 and ipv6 listen directives in nginx?

I've seen various config examples for handling dual-stack ipv4 and ipv6 virtual hosts on nginx. Many suggest this pattern: listen 80; listen [::]:80 ipv6only=on; As far as I can see, this achieves ...
1
vote
2answers
20 views

How to make NGINX redirect from http to https?

I want to redirect from http to https in an NGINX server block. Following an answer in a related post I tried adding another server block in the following NGINX config file, but got a 'conflicting ...
0
votes
0answers
26 views

nginx reverse proxy for websockets with SSL

I am trying to configure nginx (installed via macports) on my osx development machine. I am trying to reverse proxy localhost:12346/trade to a websocket connection which is available on port 12346 at ...
-1
votes
1answer
14 views

Nginx + LimeSurvey:

I'm trying to secure my Limesurvey 2.0.5 admin page (running under Ubuntu 12.04, Nginx 1.19, PHP5.3.10, PHP-FPM). The admin page should only be accessible from a specific subnet so in my conf i used ...
-3
votes
0answers
28 views

What is the most appropriate control panel for virtual hosting behind Nginx? [on hold]

I have several domains on Digital Ocean hosting which runs behind Nginx server. I am using it mainly for python aps, but I would like to setup them with PHP as well. Python apps run behind Gevent ...
0
votes
1answer
19 views

Control redirect from a html file and not in Nginx configs

I've got a case where I need to setup a nginx server that only will serve sites (about 800) with static content. Many of the sites will initially have no real content themselves and should just be ...
0
votes
0answers
25 views

Nginx upstream SSL configuration not being read

I am running this docker image which publishes a web interface using SSL on port 8443. My nginx configuration for it (running on the host) is: upstream mail_server { server 127.0.0.1:8443; } ...
0
votes
1answer
16 views

How to deny requests in nginx when there is no referer?

In nginx access.log I see many lines like: 1.2.3.4 - - [19/Oct/2014:22:48:11 -0400] "POST /someurl/suburl HTTP/1.1" 200 19967 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) ...
-1
votes
1answer
29 views

Debug Nginx caching

I want to determine when I am getting cache hits or misses. Preferably, this would be a header, like X-Cache: HIT or X-Cache: MISS How can I do this with Nginx (a reverse proxy for the upstream ...
-1
votes
1answer
18 views

Does Nginx respect maxage from upstream server?

I see the proxy_cache_valid directive, but that confuses me. In HTTP, doesn't the upstream server specify this with Cache-Control and maxage? How do I get Nginx's cache to use maxage ?
8
votes
1answer
213 views

Passing SSL protocol info to backend via HTTP header

After Poodle vulnerability was revealed recently, our team decided to move on from SSLv3. But before complete removal, they want to warn the daily users that their browser use deprecated SSLv3. So, we ...
0
votes
2answers
55 views

php not working on nginx fresh install on centos 6.5 [on hold]

Got me a fresh install of centos 6.5 on virtualbox (under my lynx distro - mint). I've created a new user with public_html under the user's home directory, added simple php file and set up all ...
1
vote
1answer
35 views

Adding virtual host to nginx using IP and folder

I want to test this website for which I don't have a domain yet, and wanted to be able to access it via something like this: http://123.123.123.123/testsite I thought that on my testsite.conf file I ...
2
votes
1answer
15 views

nginx location conflict for 2 ember-cli apps under one domain

I'm trying to setup 2 ember-cli apps under one domain on nginx. http://example.com/ http://example.com/bar App 1 is stored under /var/www/foo, and App 2 is stored under /var/www/bar. First prize ...
0
votes
0answers
13 views

Varnish + Nginx and Wordpress, POST redirect not working?

I am having trouble with Varnish not redirecting to the right URL's of Wordpress backend. When I POST the username and password on the login page, it doesn't gets properly redirected, so I GET the ...
0
votes
1answer
34 views

Nginx: multiple domains not working

I'm trying to have multiple sites on the same server. I have a DigitalOcean VPS with Debian and Nginx. Whatever I go to site1.com, site2.com or site3.com, the site shows the site1.com content. Also, ...
1
vote
1answer
24 views

How to deny POST to a url in nginx

Some of the sql heavy urls on my app (say /members) are being attacked by botnets. So I'd like to disable anybody to post to these urls, while allowing others to GET them. I tried to make a nested ...
0
votes
1answer
28 views

Nginx Passenger Node Application URI Rewrite

I have a node application that accepts all routes starting at /. The Nginx / Passenger configuration for it is: server { listen 8889; server_name localhost; location / { root ...
1
vote
1answer
18 views

Can the execution time of PHP scripts be logged on Nginx

I have some issues with our clients reporting some of our web pages being slow. This could be for a number of reasons but I want specifically to log the execution time of each page, without having to ...
0
votes
1answer
21 views

Pass PHP5-FPM errors back to error page script?

My nginx has an error_page setup that throws 500 errors to a PHP page. I wish to display/log any PHP errors that cause this error page to show. When I say display, I mean show in-browser depending on ...
12
votes
1answer
257 views

How to mitigate POODLE but keep SSLv3 support for old clients

How do I mitigate the POODLE attack, but still keep support for old clients such as IE6 on Windows XP or an e-mail client. I've noticed that google does this: ...
1
vote
1answer
29 views

Securing REST APIs with NGINX

Hi I have an API behind NGINX. The API is configured to require authentication for all actions. I want to have an NGINX proxy in front of it to pass authentication parameters for some of the actions ...
0
votes
0answers
71 views

uWSGI appears to be losing requests

I'm seeing the following in the uWSGI logs, specifically ...The work of process 43017 is done. Seeya!: [pid: 43017|app: 0|req: 103/114] 207.140.171.16 () {50 vars in 847 bytes} [Fri Oct 17 12:59:49 ...
0
votes
1answer
49 views

Simpler solution to this nginx config?

When I setup a website with ssl, I almost always have this boilerplate nginx config (instructions in comments): # Redirect both (http/https) non www. to www. server { listen 80; listen ...
0
votes
0answers
15 views

Can't login users on Varnish 4

I am testing this wordpress varnish 4 config https://github.com/nicolargo/varnish-nginx-wordpress/blob/master/varnish/varnish4-wordpress The site is being cached and served, but seems that the ...
0
votes
1answer
28 views

How to remove language part of $uri for purpose of try_files in nginx 1.6?

I have a site with language prefixes in $uri, for example: http://www.example.com/en/some/content http://www.example.com/ru/novost Sadly, due to limitations of framework I'm using, files are also ...
-1
votes
0answers
29 views

How to disable gzip for reverse proxy in nginx?

I am setting up a reverse proxy of Google using nginx. Testing upstream is https://www.google.com/ I want the response uncompressed, so I set proxy's accept-encoding to empty: proxy_set_header ...
0
votes
0answers
23 views

Nginx and PHP windows 7 64 bit - page temporarily unavailable [on hold]

I am running Windows 7 Professional N 64 Bit with nginx 1.6.2 (64-bit) and php-5.6.1-nts-Win32-VC11-x64 (non thread safe) I have the nginx and php folders setup like C:\nginx C:\php I can start ...
1
vote
2answers
26 views

How to check nginx config but without copying of new config file into nginx directory?

I have deployment script that copies include new nginx config file. I need to check nginx config by using nginx -t before deploying new application version. Is it possible to check nginx config of ...
-1
votes
1answer
13 views

Repeat request to another php-fpm script via fastcgi?

I have nginx server accepting incoming HTTP requests and serving it via fastcgi to some php-fpm script (for example index.php). I want nginx to repeat the same request to another php-fpm script via ...
0
votes
2answers
43 views

Nginx Wordpress rewrite for multiple sub-folders

I am currently setting up our new server for our company, and we are developing alot of different apps, and right now we want to have all our wordpress apps under wp.domain.com/app1, ...
0
votes
0answers
9 views

Create .deb package after running passenger-install-nginx-module

I do need nginx with passenger support and also custom modules. For compiling nginx with the needed modules I use passenger-install-nginx-module provided by Phusion Passenger directly. I would like ...
0
votes
1answer
32 views

Nginx deny IP's and setting custom 403 downloads a file?

I've attached my Nginx conf file for my default site which runs on Ubuntu. What I'm trying to achieve is the following: Main directory is /usr/share/nginx/www with the default file index.php ...
0
votes
1answer
47 views

Redirect to HTTPS and Apex Domain with Nginx location Configuration

I would like to force HTTPS and the apex domain (e.g. https://example.com) in my application through nginx configuration using location blocks. I currently have the following nginx_app.conf file ...
0
votes
0answers
44 views

nginx + php-fpm + phpmyadmin - blank screen, no errors

I am trying to run webserver under nginx and php-fpm. I have copied phpmyadmin, but when i display its page, I see only blank screen (its not display:none error, source code is blank too). When I ...
0
votes
1answer
83 views

Redirect Loop SSL Nginx Cloudflare

I have Universal SSL with CloudFlare. I wanted to set up a permanent SSL redirect on my Ghost blog. This was my original config. It works great individually using http://example.com and ...
0
votes
1answer
22 views

How to debug nginx + php-fpm download failures?

Downloads fail after all data downloaded on nginx + php-fpm. I'm controlling downloads of zip files (roughly 100mb each) with a PHP script that streams the file directly to the client. I'm using ...
1
vote
1answer
29 views

Nginx not caching data

I have a REST API behind an nginx proxy. Proxying works fine, however I am unable to cache any responses. Any help would be much appreciated: Nginx config: worker_processes 10; error_log ...
0
votes
1answer
32 views

Nginx rewrite for a large group of URL's to a 444

I am looking for a rewrite that will pick up any number of defined URL's and do a return 444 on any of them. Rather than writing out each one individually, I was hoping for something where I could do ...
0
votes
1answer
51 views

How to make varnish 4.0 work with nginx and pagespeed

I am trying to setup Varnish 4 + Nginx with mod_pagespeed. I am using the following config for Varnish 4 as per this document : ...
0
votes
2answers
67 views

Are there any performace gains to using Varnish along php-fpm and nginx? [on hold]

PHP-FPM 5.6 and Nginx 1.6.2 would no doubt give maximum performance, at-least speed wise. So, I would like to know if there are any pros/cons to adding varnish cache to gain probably few more speed. I ...
-1
votes
0answers
25 views

How to compile or run PHPNG with another user? [closed]

I am testing https://wiki.php.net/phpng Already compiled and working, the only problem is that to make php-cgi work with a framework like wordpress you need to run it with the user nginx is runnning, ...
0
votes
2answers
40 views

nginx: Log complete request / response with all headers?

We have an application server that sometimes hangs. We suspect it is due to a bad request from a client. Can nginx log the complete request/response (like fiddler captures) to files, so we can see ...
0
votes
0answers
25 views

Setting up nginx in aws rhel 7 instance, seeing 403 forbidden

So I'm trying to set-up nginx on a RHEL 7 AWS micro instance, nothing fancy just mainly for testing. Installed nginx I believe correctly sudo yum install nginx.x86_64 sudo chkconfig nginx on sudo ...
-2
votes
1answer
33 views

Pid and Lock files are not created in Nginx custom build Centos 7

I am trying to install nginx from source. After make install, I had a look at /var/run/ folder but I cant find the nginx.pid file and nginx.lock files there. This is my configuration: sudo ...
0
votes
0answers
34 views

How do you get multiple ports working with nginx proxy_pass and Node Express?

I have multiple node instances running each on a different port. (8000, 8001, etc.) I also have nginx running on port 80. What I am trying to do is allow a user to enter my site via a single domain ...
0
votes
1answer
28 views

Nginx, reverse proxy to 2 different Joomla sites

I have 2 Joomla sites and would like them to both appear as one domain. Ideally, a request would come in and if the URL matches the first site it would go to the page. If the first site returns a ...
0
votes
0answers
31 views

Wordpress Nginx Php-FPM Varnish Setup Fix

Master Slave Database We are running a wordpress site on Nginx, Php-Fpm, Varnish, at the moment we cant access wp-admin wordpress backend or pages but posts are running fine. Also when there is ...
0
votes
0answers
26 views

configure php-fpm to work only in one directory and HHVM on the rest

I am trying to test HHVM and php-fpm on the same site, running both. But I want php-fpm to work only on one directory, but I think I am not getting it right location ~ \.(hh|php)$ { fastcgi_pass ...