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
37 views

Using Nginx as Webserver and Reverse proxy

I am trying to setup Nginx as a reverse proxy and webserver together. and I'm having issues in trying to understand how I can do it. Let's assume I am using the default Symfony2 nginx configuration ...
-3
votes
0answers
28 views

Display video on demand on Android devices

Video stream from my server not displayed on an Android device with native applications. I am not an Android expert and I would appreciate any help. Which video format is supported by an Android ...
2
votes
1answer
38 views

NGINX cache error: conflicts with already declared size 0 in /etc/nginx/nginx.conf

My current nginx for drupal config gives following error. Somehow, I am not able to enable nginx cache. Tried different config but overtime i get the same error. Can anyone help please? nginx: ...
0
votes
1answer
48 views

Reverse Proxy for PHP: Best practice?

I'm setting up NGINX as a SSL reverse proxy for three small web apps with dynamic (PHP) and static content. What would be considered best practice security-wise and performance-wise when it comes to ...
3
votes
1answer
29 views

Nginx forwarding git.example.com to www.example.com

As in the title, my website, git.mad3ngineer.net forwards to www.mad3ngineer.net. However, my ci.mad3ngineer.net uses the same system but works just fine... The website can be checked out at ...
1
vote
2answers
40 views

Nginx configuration files structure

Where do I put specific domain configuration files on an nginx server? I've seen a lot of conflicting information. Does it belong in the sites-enabled folder? If so, do I put it in the already created ...
0
votes
0answers
24 views

Updating Content Specific Caching NGINX + Wordpress

somewhat new to setting up a web server. I am using a VPS from digital ocean with nginx installed to host a wordpress site. I am trying to play around with content specific caching rules and am ...
-1
votes
1answer
35 views

Nginx allow/deny not working (403 Forbidden)

I am attempting to set some allow/deny directives within nginx for a few subfolders on my server. I am modifying the /etc/nginx/sites/enabled/default file, which is listed below: server { listen ...
0
votes
1answer
37 views

Django mail reports blocked by Gmail

I configured my Django 1.6 framework to send error reports to a Gmail account so I can check them. Before this worked well, though I had to define filters to catch the sender mail addresses I ...
0
votes
1answer
32 views

How to serve first Nginx regex server_name servers

I have a Nginx config which look like this : server { server_name sub2.sub1.example.com; listen 80; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name ...
-1
votes
1answer
51 views

502 bad gateway after upgrading PHP5-FPM

I just upgraded php-fpm and my server has gone away with a 502 bad gateway I've been searching for solutions and came across some like this: http://stackoverflow.com/a/10470827/1612432 and this ...
0
votes
0answers
63 views

Random speed on downloading files from Nginx/lighttpd

I've tried both lighttpd and nginx as webservers. All to very same result: In the morning, when the load is low, files are lighting fast to download. But later, when the load is a BIT more, server ...
0
votes
1answer
34 views

Nginx ignoring HTTP headers before Host header when using proxy_pass to Apache

When Nginx is sent the following request, Apache is unable to get the "app_version" HTTP header. I normally use apache_request_headers() to get all headers. I have also examined the contents of ...
8
votes
1answer
171 views

Why is Internet Explorer 11 unable to connect to HTTPS sites when TLS 1.2 is enabled?

Normally I don't use Internet Explorer at all. I use it only in design time for interface tests (development machine and with unencrypted http). Every week I run the SSL Labs server test which says ...
1
vote
1answer
33 views

Redirect root to WordPress subfolder under nginx

I recently got a VPS with nginx and moved my WordPress instance over. After some browsing around, I got permalinks to work. The blog is located inside a blog folder. I would like for requests to ...
1
vote
1answer
170 views

CentOS 6.6 with Nginx 1.6.2 - Suddenly can't restart nginx - nginx: [emerg] open() “/usr/share/nginx/on” failed (13: Permission denied)

This is a new install in which nginx previously started and stopped normally. I believe this error arose after enabling server blocks which tested (nginx -t) successfully. I then tried to restart ...
-1
votes
1answer
22 views

Trying to get nginx to return 301, preserving $_GET

I'm having trouble configuring nginx to return the url I want. I'd like http://domain.com/blah?abc=e9800ecf8 to return http://domain.com/createpage.php?abc=e9800ecf8, i.e. it preserves the abc ...
1
vote
1answer
25 views

nginx regex location not matching

I have the below location below, which is among a larger conf file. As reference, this works: location = /scripts/news/admin/index.js { alias /my/file/path/news/scripts/admin/index.js; } ...
0
votes
0answers
45 views

How to run 2 fast-cgi (php-fpm) websites on an nginx server?

I have nginx running with a few vhosts for different domains. One of them uses php-fpm. I need to add another vhost(for a new domain) that points to a new directory and that also has to use php-fpm. I ...
2
votes
1answer
76 views

Wordpress converting http to https on Nginx + HHVM

I am trying to run Wordpress on Nginx + HVVM. It runs fine on Apache + PHP, but when I activate Nginx, most of the urls in the website get rewritten to https. Here is my website config: server { ...
0
votes
1answer
49 views

Specific directory is forbidden

I'm using reverse proxy on my Ruby app- 2 to be exact - and the first instance which is located in "/var/www/cuba" works, but when I have a sub-domain to run another instance, I get this error(from ...
0
votes
1answer
34 views

Nginx redirects not getting used

I have an nginx.conf file that looks something like this: http { server { listen 80; server_name myapp.org; return 301 http://www.myapp.org$request_uri; } server { ...
-2
votes
1answer
35 views

Could nginx mail module replace a Postfix/Dovecot combo

I saw that nginx has a "Mail Module". I googled but don't find much documentation about this. What is this ? For what can it be used ? Could it replace my current simple Postfix/Dovecot combo?
0
votes
1answer
19 views

gunicorn call fails every 6th time

i have a bottle app that has an endpoint that gets a timeout every 5th or 6th time i hit it (in my case, i just refresh every second to replicate) when it works successfully, it takes ~ 150ms to load ...
0
votes
0answers
22 views

WordPress can't move files (Nginx, HHVM)

I have a WordPress setup using HHVM & NGINX on Ubuntu 14.04 that can't moves files when uploaded. Nginx is running as www-data. Files are all owned by deploy:deploy. Where www-data is a member ...
0
votes
0answers
44 views

nginx config - pass all to https apart from one folder [duplicate]

I've been banging my head on this for 3 days day and I'm getting nowhere. I transferred the whole site over to ssl and that change over didn't go too bad and the site was only down for about 30 min. ...
0
votes
1answer
29 views

Nginx: How to exclude a URL with a query parameter from htpasswd authorization

A wordpress site has its /wp-login.php protected with HTTP authorization using htpasswd. Web server is Nginx. Config for the same is given below. A URL associated with a plugin uses ...
0
votes
1answer
47 views

Nginx Thin.Sock not found error [closed]

Cluster of 3 files (err.log,chat.yml,chat.conf for Nginx) : err.log : 2015/03/19 15:05:50 [crit] 1535#0: *79 connect() to unix:/var/www/chat/public/tmp/sockets/thin.0.sock failed (2: No such file or ...
0
votes
0answers
20 views

Can't Get Virtual Subdirectory Locations Working in Nginx

I have my webapps each as toplevel directories under /var/www, and ideally need to stay that way.. only one hostname (_), no vhosts, so I want "/" to point to my /var/www/mainsite/, and then I want ...
-2
votes
1answer
32 views

Facebook error parsing input URL error 502 Bad Gateway

Any time when someone shares my website link onto facebook or twitter they get 502 Bad Gate way. I check the nginx error log to see whats going on and I got this. error1615#0: *2375 connect() failed ...
0
votes
1answer
67 views

nginx: upstream not working

I'm having a problem with my upstream. I'm getting back the url http://backend/f?p=4550 with a 404 error when I pass https://secure.toto02.com/ords/pls/manitou/4550. What I'm trying to do is keep ...
0
votes
1answer
29 views

SSL Certificates from nginx only works in Windows IE and Chrome

I have a wildcard certificate and got it signed by AlphaSSL. I followed the steps from here: http://nginx.org/en/docs/http/configuring_https_servers.html#chains to set it up on my nginx server which ...
1
vote
1answer
28 views

Adding Curly Braces to Map block in nginx

I am having a problem trying to get the following configuration to work. Every time I run the config test I get a failed pass. To start off let me show you a working configuration location / { ...
2
votes
2answers
96 views

Can I use nginx environment variables within static files that nginx serves?

If I use a environment variable in the nginx config, and nginx is configured to serve only static files (html,js,css - e.g. a AngularJs app), is there any way I can use the environment variable within ...
2
votes
1answer
40 views

logging SSLv3-handshaking failure on nginx

I have website server by Nginx in FreeBSD. Last week we decided to drop support for SSLv3 connection for our site. However I wondering if nginx has logs of all client who can't do SSL-handshake ...
1
vote
0answers
35 views

nginx: Redirection from http://*.example.com to https://example.com showing strange behaviour

I have an SSL certificate being only valid for example.com (not valid for subdomains) and therefore want to redirect both http://example.com and http://www.example.com to https://example.com using ...
-1
votes
0answers
36 views

nginx php5-fpm white page

My nginx.conf: location ~ \/php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME ...
0
votes
0answers
31 views

Nginx and passenger request timeout (nginx status code 499)

DISCLAIMER: I have read numerous posts here, on stackoverflow and other pages and I could not come up with a solution, so hopefully this helps. We are running a Rails App on Passenger together with ...
0
votes
1answer
188 views

Nginx + HHVM + MariaDB + WordPress install -> Error establishing a database connection

I'm setting up a VPS for a WordPress blog. I'm using Ubuntu 14.04 LTS 64 bits and then I've installed Nginx 1.7.8, HHVM 3.6.0, MariaDB (don't remember the version). Finally I've downloaded WordPress ...
3
votes
1answer
24 views

nginx locations and precedence (deny ignored for *.php)

I'm a somewhat experienced Apache admin in a past life, but I've decided to take the plunge and learn nginx. So far everything seems fairly intuitive, but it's clear that I haven't quite internalized ...
-1
votes
0answers
13 views

how to point subdirectory for domain from another project?

how to point OctoberCMS to subdirectory(installation guide), i have previously installed PongoCMS(laravel based), what i want is need to access PongoCMS from www.example.com and want to access ...
0
votes
1answer
42 views

Nginx Test Successful but I cant Restart

nginx: [warn] conflicting server name "lolnews.com.br" on 0.0.0.0:80, ignored nginx: [warn] conflicting server name "lolnews.com.br" on 0.0.0.0:80, ignored nginx: the configuration file ...
-1
votes
1answer
28 views

Nginx “”server“ directive is not allowed”

I recived this message root@lolnews2:/etc/nginx/sites-enabled# nginx -t nginx: [emerg] "server" directive is not allowed here in /etc/nginx/sites-enabled/lolnews.com.br:57 this is my conf server ...
1
vote
1answer
37 views

uwsgi configuration with Nginx, with python scripts as cgi - 502 Bad Gateway

This is my .ini file to run the uwsgi "pyApp.py" [uwsgi] plugins = cgi socket = 127.0.0.1:9010 cgi = /=/usr/share/test/ cgi-allowed-ext = .py cgi-helper = .py=python i have a file "firstapp.py" at ...
0
votes
1answer
46 views

nginx: regex not working on url rewrite

I have http://sample.cervo02.com. i'm trying to get https://cervo02.com/sample. I tried couple of redirect none of them are working. rewrite ^([^.]*)$ https://cervo02.com/$1 last; return ...
0
votes
1answer
53 views

Where is the bottleneck - nginx slow file serve

I have nginx 1.6.2, on Ubuntu 14+. I host a couple of "big" files - from 20mb to 60mb - which are constantly accessed (it could be more then 1000 connections simultaneously at evening peaks). They ...
0
votes
0answers
33 views

nginx proxy_pass to tomcat webapp

I want to configure nginx as a reverse proxy for different webapps hosted on a tomcat. Basically, all requests to http://localhost:80/A/some/other/params (nginx is running on port 80) should be ...
0
votes
1answer
29 views

nginx location match issue auth_basic

I have this configuration : location / { root /etc/nginx/euchet; } location /app/ { proxy_pass http://172.16.184.2:8080; proxy_redirect off; proxy_set_header Host $host; ...
-1
votes
1answer
11 views

Running Rails Application as root user on nginx [closed]

My application(running on nginx) is unable to ssh into a remote machine, reason being that the client has has given ssh rights only to the root user on their server. While debugging this issue, I ran ...
6
votes
0answers
124 views

Does nginx allow an upstream server to respond to and close a request before it has finished?

I have an image upload service that nginx proxies requests to. Everything works great. Sometimes though, the server already has the image the user is uploading. So, I want to respond early and ...