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
vote
0answers
21 views

proxy parameters with nginx

I'm trying to use nginx to proxy a request with parameters to a shoutcast stream. I've tried a couple things but can't seem to get it working right. First try was this location /music/ { ...
-1
votes
1answer
88 views

Multiple versions of PHP through nginx

EDIT: For future reference Multiple versions of PHP through nginx Nginx and different versions of PHP FPM + PHP I am running Ubuntu 14.10 with a LEMP stack using PHP 5.5.12. I have a number of ...
0
votes
0answers
25 views

https to http reverse proxy on Jetty 9

Okay, so basically what I want to do is set up a reverse proxy to serve https pages on nginx and redirect them to Jetty using http. The problem is that the servlet actually requires https and ...
0
votes
1answer
34 views

Nginx not running with no error message (ubuntu 14.04 lts)

I am trying to start my nginx server. When I type "$> /etc/init.d/nginx start", I have a message appearing "Starting nginx: Ok", and then nothing happens. When I type "sudo lsof -nP -i | grep ...
-1
votes
0answers
33 views

Redirecting to maintenance page and banning IPs in nginx [on hold]

I'm new to nginx and would appreciate it if you can offer assistance. I'm trying to first, rewrite all requests to server ip 1.2.3.4 to example.com/maintenance.html. I have put the following block in ...
0
votes
1answer
24 views

Nginx hosting with path appended to index.php

I'm hosting an instance on Concrete5, and in addition to using a dynamic paths, they also use URLs in the weird form of www.mysite.com/index.php/path/to/page. I have it mostly working, but I'm ...
0
votes
1answer
35 views

virtual host in nginx not working

I'm creating virtual host using nginx with following configuration: server { listen 7001; server_name example.com; location / { root html; index index.html ...
-1
votes
1answer
36 views

Wordpress is unable to write files, despite correct file permissions [closed]

I am unable to automatically install plugins or themes on my new wordpress setup. It gives me this screen: I believe this is usually due to a write permission error on the wordpress directory. ...
0
votes
1answer
58 views

FastCGI sent in stderr: Unable to open primary script

Situation: Server A & server B installed same Ubuntu 14.04, same nginx version (1.4.6), same virtual host (domain.com) and joomla folder (rsync-ed from server A to B) But server A only able to ...
0
votes
1answer
22 views

nginx retry static files once on 404

In my test scenario if a file is being created and someone requests the file 404 will be returned. i want to implement a retry once for that file. current configuration location /file/ { root ...
0
votes
1answer
67 views

Ubuntu + Nginx: directory index of “/var/www/app/my-app/” is forbidden

I keep hitting this error when trying to load up my Laravel application on an Ubuntu+Nginx server. The user should visit app.example.com/my-app and it should load the contents of ...
0
votes
0answers
22 views

Application-role based access with nginx?

What are some different ways to configure nginx to allow static file access based on application-defined roles that a user belongs to? (Not local system user groups or roles, just roles defined at the ...
0
votes
1answer
33 views

Nginx redirect loop with Wordpress

I have a rails app and a wordpress based cms on another server. I am trying to host them under same domain. I want all non cms traffic to redirect to https. And all /cms/ traffic should go to http and ...
-4
votes
0answers
20 views

nginx Query Driven Content per Every Page and Angular.js Frontend [closed]

I was originally considering nginx for a new project hosted on a Linux box. Every page on the website will be primarily dynamic, derived from numerous database queries. Most every page will contain an ...
1
vote
1answer
109 views

cannot change root on nginx for some reason

For some reason I cannot change the root. I have the same rights as the default root on /usr/share/nginx/html, and I also have 755 recursive on all files and folders in my other folder. I even tried ...
2
votes
2answers
62 views

nginx > varnish > hhvm

I have nginx on the front end interpreting ssl and redirecting all non https traffic to https: server { listen 80; server_name example.com www.example.com; return 301 ...
0
votes
0answers
26 views

NGINX configuration with Tomcat Application with session

I am new to NGINX and am trying to configure NGINX to pass requests to a domain address to a web application running in Tomcat. How can I configure nginx to pass domain requests to the application ...
1
vote
1answer
24 views

How to avoid duplication of add_header directives in nginx?

The documentation says this: These directives are inherited from the previous level if and only if there are no add_header directives defined on the current level. My problem is that I have ...
0
votes
2answers
27 views

uwsgi starts and works from console but doesn't want to with config file

I've got an issue with uwsgi. When I start uwsgi from conole: uwsgi --socket 127.0.0.1:5555 --chdir /var/www/proj/smth/ --wsgi-file /var/www/.../rest_api/wsgi.py & it shows web pages and ...
1
vote
1answer
72 views

Configuration of git-http-backend with Nginx (returning PROPFIND 405)

I'm trying to configure git-http-backend over nginx and having some troubles. The actual result is that I'm getting a 405 error for the PROPFIND request: 192.168.1.45 - - [22/Feb/2015:16:50:46 ...
3
votes
1answer
51 views

munin + nginx: no dynazoom into graphs

I cannot get the Munin dynamic zoom to work. I am rather certain that the problem has something to do with the Nginx configuration. Any attempt to generate a zoomed graph triggers the following error ...
-1
votes
0answers
55 views

redirect all request to specific url nginx [on hold]

I want that redirect every request ( like "google.com" , "yahoo.com" ) to mydomain.com **I setup dns for my user's and force them to send their http request to mydomain.com like every user is expire ...
0
votes
0answers
26 views

nginx limit_req exclude images from counting as a request?

I'm trying to limit the maximum number of requests per second that a unique IP address can make against nginx when requesting a webpage. However, I want images to be excluded as being counted as a ...
0
votes
0answers
42 views

Add expire header for Nginx

I have a VPS with WHM, NginxCP, Memcached, Wordpress site with WP-SuperCache installed on it. I would like to add the expire header for Nginx. I tried many tutorial online but no way still get ...
0
votes
0answers
23 views

Max memory for HHVM instance on vServer

Im tried hhvm on my vServer and have problems with the memory used. The performance is great, but the used memory consumption is horrible. I have a vServer with min 4GB and max 8GB memory and hhvm ...
0
votes
0answers
19 views

uWSGI backtrace: semgentation fault errors

I'm getting the following backtrace in my uWSGI logs, I don't know where to begin looking to figure this out: DAMN ! worker 5 (pid: 29056) died :( trying respawn ... Respawned uWSGI worker 5 (new ...
-1
votes
0answers
19 views

Sub Domain not working?

I'm running nginx on ubuntu 14.04 LTS, on a kimsufi dedicated server. I'm pointing my domain (www.angrycrows.com) to my server using an A record. I don't have bind9 / dns hosting set up on my box. ...
0
votes
0answers
8 views

nginx getting php plain unparsed if change to root to subfolder [duplicate]

with this config all files within the /usr/share are accessible and i just want to serve the phpmyadmin folder and not everything. if i set the root to /usr/share/phpmyadmin and set before the ...
0
votes
0answers
7 views

phpmyadmin blank page after login using nginx / php-fpm [migrated]

i can access www.***/phpmyadmin to login. if i log in with mysql user just hit blank page with no error. System runs on raspbian. Installed : nginx 1.2.1 , php5.4.36 i tryed login from different ...
-4
votes
1answer
62 views

How do I use dnssec with nginx? [closed]

From my understanding DANE can be used to secure websites (using http) without being signed by a certificant vendor. I follow the instructions on this page although I didn't use NSEC3RSASHA1 as the ...
1
vote
1answer
28 views

nginx, fpm - Bad Gateway error on php

i'm stuck here with a Bad Gateway issues and PHP I use Nginx 1.6 in combination with FPM on Debian Wheezy. Its a clean and new installation. But everytime if i run a php file it will result in a Bad ...
1
vote
0answers
53 views

Nginx proxying Nodejs (Dokku). CORS response headers not passing through

I'm using Dokku to host my app at DigitalOcean. Dokku run nginx 1.6 to proxy Docker apps simulating a Heroku-like environment. The app's all share similar default configs like below. My Node.js ...
0
votes
1answer
20 views

nginx authentication and custom error page

I'm trying to set up my server so that it requires authentication before browsing any file on the domain. However, I want to display a custom error page (placeholder.html) when someone fails to ...
1
vote
1answer
37 views

How do I return a default file in Nginx for all 404s inside a specific path?

I have a localization folder that has a bunch of language (as JSON) files, and my webapp tries to read the browser's language to fetch the corresponding JSON file. In certain scenarios, the ...
2
votes
1answer
23 views

How to serve multiple SSL certificates for the default virtual host on NGINX?

I have a static app on Amazon S3 that is served through a NGINX proxy. The purpose I use a proxy is to allow users to point their domains to my Amazon EC2 instance (via CNAME record pointing to ...
-3
votes
1answer
45 views

CORS on my NginX server [closed]

Where/how do I put the code in to allow CORS access to lets say http://Test.com I'm running NginX on Ubuntu server 14.04 My www.conf file is at /etc/php5/fpm/pool.d/www.conf I've been reading up, ...
0
votes
0answers
29 views

Nginx redirect or rewrite with folder

I have a virtual machine with an apache which serves a web application at https://my.ip.address/web/index.hml (internal). At the router/firewall is a nginx running which works as an reverse proxy with ...
2
votes
0answers
32 views

Roundcube, upload fail

I have Roundcube installed on Ubuntu 14.04, using NGINX, with static IP, SpamAssassin, ClamAV . Sending/receiving email was fine including downloads, however cannot upload anything to send. ...
0
votes
2answers
40 views

Nginx - 2 https servers on same public ip [duplicate]

I currently have several regular http servers and 1 https server. I would like to add another https server with the same public ip. I have something similar to server { listen 443 ssl; ...
0
votes
0answers
42 views

Using nginx to deny certain requests by server name

I am trying to use my nginx configuration to deny requests that match a certain pattern, but only for a certain server name. I am not sure how to do this, and despite that IfIsEvil I tried to compare ...
0
votes
0answers
12 views

Dynamic rate limiting in NGINX using map [duplicate]

It's pretty well documented that you can do something like: map $http_authorization $rate_unauthed { "" $binary_remote_addr; default ""; } limit_req_zone $rate_unauthed zone=repositories:10m ...
0
votes
1answer
10 views

What is the link between ssl ciphers I use (string length, strength of ciphers) and nginx performance?

All is in the question. I am wondering whether how using each ciphers or another would impact performance. Is there a huge impact ? Is the impact linked to the type of content deserved ? (static or ...
0
votes
1answer
33 views

Nginx access log. Include only pages

Now in my access log file too many records, - because images and pages in same file. Is it possible move all images to one file and only php pages to second file? (filter images and non images files) ...
0
votes
0answers
14 views

Obfuscate URI for logging with NGINX?

With nginx is it possible to strip sensitive information out of the request URI before logging it? Say I have a URI like /my/nice/uri?token=MY_TOKEN Is it possible to either remove the "token" ...
1
vote
1answer
44 views

Active/Passive Reverse Proxy with nginx

I have two Websocket servers which working with Zookeeper & Curator as Active/Passive, if one server fails then second backend comes alive. I configured it the following way: upstream backend { ...
0
votes
0answers
14 views

Nginx + Magento - asset files are not found

We're moving a webshop to a Magento-solution. The old site is redirecting / to /shop, where the store is run from. We have to imitate that to not mess up our SEO by making hundreds of thousands 301's ...
0
votes
0answers
29 views

Redirect www to non-www nginx

I'm using nginx as reversed proxy, apache as web server. We're using SSL. The problem is that our SSL provider doesn't support www. So we have to redirect it to non-www. But we got the issue with ...
0
votes
0answers
29 views

How to diagnose Nginx bottlenecks at specific number of users

Firstly, I know this is a loaded question, but I hoping that you guys will be able to point me in the right direction.... We've got a number of nginx-fronted web heads which site behind an AWS ELB. ...
-1
votes
1answer
45 views

Nginx Custom Error Page not working

My Nginx does not give custom 4x and 5x error pages.My configuration is mentioned below error_page 400 404 /404; error_page 500 502 504 /service-unavailable; Where /404 and /service-unavailable ...
0
votes
1answer
41 views

define ssl_ciphers in nginx for each vhost

i`am just wondering if i define something like this: ssl_ciphers 'AES256+EECDH:AES256+EDH:!aNULL'; in my vhost config in nginx, it is active on all my vhosts which use ssl. Is there a way to ...