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
0answers
22 views

NGinx mp4 movie Streaming

I'm using NGinx 1.7.7 and i have the following config: user wwww-data; worker_processes auto; worker_rlimit_nofile 300000; events { worker_connections 6000; use epoll; } http { ...
0
votes
1answer
29 views

Synology Rackstation - Better way to mount it

We are using a Synology Rackstation storage to store our static content which is served by a 4x Nginx backend. Now we've mounted it by nfs4 like this: 192.168.0.20:/volume1/images2 ...
0
votes
1answer
28 views

Add cookie in nginx

I have nginx server that serves as proxy for international requests and lives in .com domain. I have simple proxy configuration, where tradernet.com server proxies all incoming traffic to ...
0
votes
0answers
18 views

Converting htaccess rewritecond to nginx

I'm very new to nginx, but have previous experience with apache redirects. I converting a subdomain to a subfolder and need some help with getting my rewrite rules correct for my switch. The subdomain ...
0
votes
0answers
14 views

Nginx start fail with no errors

I can't start my nginx (1.6.2) on Debian using service nginx start. I have 0 error, only FAIL as message. I checked my config using nginx -c /etc/nginx/nginx.conf -t and it's successfull. I have ...
0
votes
2answers
19 views

How to restrict a specified file on specified port in Nginx?

The web server is NginX, I need to do these: when accessing xxx.php from port 80, return 404; when accessing xxx.php from 8555(ssl connection), normal way. I've tried this way: server { ...
0
votes
1answer
23 views

NGINX: Lots of connection timed out Errors

I am getting this error a lot: 2014/11/26 21:01:30 [error] 3475#0: *4028 upstream timed out (110: Connection timed out) while reading response header from upstream Here is my configuration: user ...
0
votes
1answer
13 views

NGiNX Custom Cache param based on regex match

My question(s) are as follows: How do I set custom variables based on regexp against a useragent? How do I set custom headers for the reverse-proxy request? How do I use these values as caching ...
0
votes
1answer
14 views

Running (and monitoring) nginx with supervisord

I will start with my use case, since I very well may not be using the correct tools for this job. Please let me know if I am going about this all the wrong way use case: I have a CentOS server ...
0
votes
0answers
17 views

NGINX ip_hash load balancing not working

I've set up NGINX to load-balance requests to my web app. One front end server passes requests to two backend servers. All works fine. However, I have been using the ip_hash directive to ensure users ...
1
vote
1answer
29 views

Parse cookie by domain in NGINX

I have two cookies with same name userId on client. They differ only by domain set. One is tradernet.com and another one is .tradernet.com If I use $cookie_userId, nginx catches first one and it's ...
1
vote
1answer
21 views

nginx and SSL redirect

I have a nginx server which I use as a proxy. I want to have all requests forwarded as normal http requests, expect request to api.mydomain.org, those request I want to run with ssl/https. This works ...
0
votes
1answer
31 views

Nginx conf failed cause of server directive not allowed

I have a problem with one of my vhost. When I restart nginx, it's fail. So I tried : nginx -c /etc/nginx/sites-available/website -t And here is my problem : nginx: [emerg] "server" ...
-3
votes
0answers
21 views

Nginx not working on first visit [on hold]

I currently have a CentOS 6.6 server with Nginx + Varnish (+ PHP-FPM 6.6) on it and tested all as succesfully running and working, except for Nginx which keeps acting up. The problem with Nginx ...
-1
votes
1answer
10 views

plesk - Loopback HTTP connections go to incorrect vhost

Running plesk 12 and noticed the default vhost log ( /var/log/httpd/access_log ) is full of these 404 errors: [25/Nov/2014:22:17:40 -0500] "POST ...
0
votes
1answer
26 views

Drupal 7 Multi-site Sub-folders nginx configuration

I'm using perusio configuration for drupal but I think that is only designed for single web site. php does not work in subfolders. I want to create a structure as follows: Main site ...
0
votes
0answers
19 views

NGINX: Disk write spike and/or not enough workers error from sudden surge in traffic causing 500 errors

I have been trying to diagnose an issue we have on our production servers. We have a server running NGINX as a load balancer which splits requests between four application servers. At least a few ...
1
vote
0answers
50 views

NGINX using 100% of the server CPU when testing with Blitz.io

I'm facing an issue here and after four days of looking around I decided to ask for some help here, after all a million heads can think a lot better than one. I have a Ubuntu 14.04 server setup with ...
-1
votes
0answers
14 views

Nginx Module Post parse Request timeout [on hold]

I wrote a custom module for parse GET, POST, Cookie, Header request. This works fine but when I request by POST then first request working fine, after that second request not responding. going request ...
0
votes
1answer
21 views

How do I configure nginx on RHEL to recognize root SSL certificates of external sites?

Setup: I have a nginx reverse proxy that is a load balancer for ASP.NET applications. The problem is when ASP.NET application tries to access an external application, the SSL handshake fails. I think ...
0
votes
2answers
21 views

Nginx redirect last fragment in string

I'm struggling to get my head around how to rewrite the following url: http://example.com/blog/01-01-01/string to http://example.com/string The following regex matches the string - ...
-1
votes
0answers
15 views

How to add SSL certificate to domain that is URL-frame redirected to AWS EC2 server

Currently running a node.js webapp with a NginX reverse proxy on an Amazon EC2 web server instance. Furthermore, I have a domain, call it example.com, which URL-frame redirects to this web server. ...
-3
votes
1answer
25 views

nginx restart fails: [emerg] directive “pagespeed” is not terminated by “;” in /etc/nginx/vhosts.d/name.d/pagespeed.conf:14 nginx [on hold]

attempted to restart nginx to get this: [emerg] directive "pagespeed" is not terminated by ";" in /etc/nginx/vhosts.d/appname.d/pagespeed.conf:14 nginx. pagespeed.conf: pagespeed Domain domain.com ...
0
votes
1answer
26 views

nginx: Append to proxied URL with proxy_pass

I'm dealing with some legacy issues where I have to reconfigure servers hosting a PHP based application. One of the decisions was to move away from Apache onto Nginx. Now the application hosts two ...
-6
votes
0answers
35 views

Convert Nginx rewrite to htaccess [duplicate]

Nginx rewrite: if (-d $request_filename) { rewrite ^/?$ /get_doc.php last; break; } if (!-e $request_filename) { rewrite ^/?admin /get_admin.php last; rewrite ^(.*)$ ...
-1
votes
1answer
43 views

Nginx Enable HTTPS/SSL when forwarding to other URL

Currently, I'm working with an AWS Ubuntu EC2 instance, running a Node.js app on port 3000, that has an Nginx reverse proxy. I have been trying to enable HTTPS and add a SSL certificate and I've been ...
-1
votes
0answers
26 views

Nginx hangs with 10 ConCurrent Connections if open them fast

i have build the Nginx 1.7.6 Into static with this configure and i'm using it with PHP5.6 FPM (ondemand) ./configure --prefix=/iptv_xtream_codes/nginx/ ...
1
vote
1answer
31 views

nginx 301 redirects not working as expected

I have added the following rules to my nginx.conf file rewrite ^/top100/Armin%20van%20Buuren/(.*)$ http://www.example.com/armin-van-buuren/$1 redirect; rewrite ^/top100/armin-van-buuren/(.*)$ ...
0
votes
1answer
23 views

Redirect Nginx only if params are not present

Here's my requirement for redirecting in Nginx - Redirect Example 1. www.example.com/gaming.html -> www.example.com/gaming-zone.html No Redirect example (when params are present, dont redirect) ...
-1
votes
3answers
42 views

ldap. What is binddn_passwd [on hold]

I installed Nginx with LDAP, it works. But I can't understand the purpose of "binddn" and "binddn_passwd" ldap_server dc1 { url ...
0
votes
0answers
34 views

PHP+nginx, normally super fast, sometimes %100 504 Gateway Time-out errors

I am running an nginx webserver serving php files with FPM. Normally it works super well and fast, but sometimes though there are periods where all page loads will hang and return 504 Gateway ...
-3
votes
1answer
31 views

I can't configure php on serwer nginx for BigBlueButton [on hold]

Hi I have problem with configuration a nginx for php, because I have installed BigBlueButton and I would install php in /var/www/bigbluebutton-default. When I add this to bigbluebutton in ...
0
votes
1answer
11 views

404 error for WebResource.axd with fastcgi-mono-server4

I have a simple ASP.NET WebForms app that I created in Windows and copied over to a Linux server (Ubuntu 14.04) that is running fastcgi-mono-server4 and nginx. The app runs fine on windows, but when ...
11
votes
2answers
444 views

Is there an elegant way to block a bunch of referrers at once?

In order to prevent referrer spam, my nginx.conf contains a section like this: if ($http_referer ~* spamdomain1\.com) { return 444; } if ($http_referer ~* spamdomain2\.com) { return 444; } if ...
0
votes
1answer
55 views

Correct rewrite syntax to remove index.php

I got an nginx vHost that hosts: a CMS in / a magento shop in /store Things are running fine except one thing: Removing index.php from the URL. At the moment the following URLs are working ...
0
votes
0answers
21 views

Enable charset header in nginx 301

I have nginx redirecting http requests to https. Currently the header in the redirect is Content-Type: text/html. I want it to be Content-Type: text/html;charset=utf-8. Here it says I need a custom ...
-1
votes
1answer
11 views

nginx and tomcat in eclipse - multiple apps

I'm running Tomcat with Nginx as a load balancer. And too keep all the redirects etc consistent, I am also running it in front of Eclipse. Tomcat in Eclipse seems to fail it you try to configure ...
-2
votes
0answers
26 views

Setting up django 1.7 with apache and mod_wsgi on cpanel (centos) [on hold]

I’m trying to deploy the Django to the production server. But before we go any further, I simply want to mention I'm newbie in this topic and please don't judge me too strongly =) I’m trying to ...
1
vote
2answers
66 views

return error 410 for location regex? in nginx

I'm using nginx-1.6.2,2 and I'd like return error 410 for URL that matches /browse.php?u=http, so requests such as this will get 410: 162.218.208.16 - - [21/Nov/2014:12:35:40 -0500] "GET ...
1
vote
1answer
32 views

SSL proxying on nginx — different behavior in different clients

I'm running an SSL-required web service and planning to switch hosting providers. To avoid downtime for our users while DNS caches clear, I'm planning to proxy requests from our old server to the new ...
-4
votes
1answer
31 views

How to update nginx? [closed]

I try to update nginx but it tells me the last version is 1.2.1: root@localhost:~# aptitude install nginx No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, ...
0
votes
0answers
19 views

Nginx, too many redirects, err_too_many_redirects

I have been learning and testing various installations of NGINX for proxy_pass (both custom compilation and standard install) using 2 servers. The problem(s) that I am having relate to ...
0
votes
0answers
14 views

What's the best way of creating NGINX server block on OpenStack floating ip allocation?

Im not sure if I'm approaching this from the right angle. I'm wanting to create a subdomain of bournetohack.com on a NGINX server upon associating a floating IP. What I was thinking is too tag onto ...
0
votes
1answer
19 views

Allow dev user to edit files that sometimes belong to www-data

This question has been asked time and time again but none of the answers seem to answer my specific question - either that or I'm not getting it. Anyway, as per the title, I'm trying to limit our web ...
1
vote
1answer
41 views

Setting up SSL on nginx

I'm trying to set up SSL with Nginx, however I'm having a few problems. I received all the required files, and created the bundle as shown here, and added it to my site configuration as below: server ...
0
votes
0answers
11 views

Block empty user-agents nginx?

My site was under attack and I noticed all the user agents are blank. How can I block this with my nginx? I have no idea what to block, if this is an empty user agent or what.
-1
votes
2answers
27 views

Redirecting/rewriting wildcard domains to ssl in nginx

I have tried all the solutions found on this site and others but am still having a problem with redirecting a wildcard subdomain with http to https. I still end up with ...
0
votes
1answer
13 views

nginx location regex match everything but home

I am trying to restrict access to everything but home "/". I mean: allow people to access example.com but restrict access with password to any other path: example.com/any-other-path. I have tried ...
0
votes
1answer
33 views

502 bad gateway when trying to log out through nginx reverse proxy

Im trying to log out my php application when the nginx reverse proxy throws a 502 bad gateway error. The error log shows this error [error] 20284#0: *1 upstream sent too big header while reading ...
0
votes
1answer
88 views

504 Gateway timeout / 502 Bad gateway after installing php curl - server nginx

I have (well had) a working server with nginx on board. A server (dedicated) was only used to host a drupal site. Recently we decided to host also a magento store on it and started preparation. Since ...