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

3
votes
1answer
97 views

Nginx file upload pauses / stalls in the middle (uploads only 258kb and stops) - 408 request timeout

I have install bitnami nginx stack (nginx, php-fpm, mysql) to run multiple drupal 7 and node.js sites, but for now there is only one D7 site installed. File upload works perfectly in localhost. But ...
0
votes
1answer
82 views

Nginx and php-fpm trouble again

Dears I try to deploy wordpress on amazon ec2, I am facing the trouble on nginx and php-fpm, thanks for your help in advance. I got the error as the following when nginx and php-fpm are running. ...
0
votes
1answer
94 views

(nginx) - Can't make OwnCloud work after restore (no images, style etc)

I've migrated my rig from Arch Linux to Debian stable and I've restored my old OC installation but now everything seems to be blown up. (see attachments) The desktop clients work flawlessly though. ...
1
vote
1answer
71 views

nginx always gives 500 error for JS file after I change it

I'm running nginx on a local CentOS 6.3 server. I have a particular javascript file that loads in a webpage. If I change the javascript file, and refresh the webpage, I always get a 500 error. Then ...
0
votes
1answer
105 views

PHP5-FPM Slow Execution on Ubuntu 14.04 (EC2 micro server)

I have a cluster of EC2 servers set up and just one is behaving very strangely. It's a t1.micro server running Ubuntu 14.04. Nginx, MySQL, and php5-fpm are installed. I've concluded that nginx and ...
0
votes
0answers
38 views

How to make subdomain point to a different path without a redirect?

How can I make http://param1.domain.com act as if it's loading http://domain.com/param1 in Nginx? I do not want to redirect to http://domain.com/param1. So far I have created a new server block ...
0
votes
1answer
89 views

php-fpm/nginx giving scripts wrong path info

I use an nginx webserver and I've been trying to stop a problem where sites are given the wrong $_SERVER["PHP_SELF"] variable. This breaks some scripts. The problem seems to be that nginx is giving ...
1
vote
1answer
63 views

NGINX and PHP FPM - general setup and performance issues using open_basedir

I want to configure an NGINX server, which is able to host multiple websites, which are seperated from each other, so vhosta can't access files from vhostb. I installed a fresh Debian 7.5 server and ...
0
votes
0answers
71 views

How to redirect a domain to a specific IP and port using nginx?

I have read several similar questions to this one in this forum, but not exactly the same, I tried every solution in very different ways but I am not able to manage this. I was given some data about ...
0
votes
0answers
36 views

Nginx Installation generating Error 127

NginX installation is generating make: * [install] Error 127 Error. /root/nginx/nginx_1.4.6/debian/nginx-common.dirs: 1: /root/nginx/nginx_1.4.6/debian/nginx-common.dirs: etc/nginx: not found ...
0
votes
1answer
35 views

nginx move proxy app from subdomain to folder

I want to move a ruby app from: app.domain.com To: domain.com/app Currently: server_name app.domain.com location / { proxy_pass http://localhost:9001; proxy_set_header ...
0
votes
2answers
74 views

Beyond 1Gb upload on a single linux server

I have a high hit nginx web server on CentOS that provides static large content. when the number concurrent connection are low, server could easily provide up to 4Gb of traffic , but when the number ...
0
votes
1answer
119 views

How to enable phpmyadmin on virtual server in nginx?

I can access localhost/phpmyadmin but can't access www.project.com/phpmyadmin. 'www.project.com' is my virtual server. While trying to access www.project.com/phpmyadmin, it gave me 404 error. I've ...
1
vote
1answer
148 views

/etc/init.d/nginx reload not working

My earlier problem revealed that reloading the config of my Debian GNU/Linux 6.0 nginx reverse proxy does not work, while restarting, or reloading directly through the binary does work. I have looked ...
-1
votes
1answer
79 views

how to mitigate hackers trying to find an exploit? [closed]

I have a Rails application running in a webserver inside my company, and now and then I see this messages on log: I, [2014-09-04T06:15:33.057513 #37024] INFO -- : Started GET ...
0
votes
2answers
73 views

SSL Client Certificates and NginX

I followed the instructions in this blog post, but when I test it with curl, nginx's $ssl_client_verify variable is always NONE. In fact, curl doesn't even give different output when I don't specify ...
0
votes
1answer
35 views

Nginx/uWSGI Flask app suddenly return 401

I'm kind of new to deploying uSWGI python apps behind nginx as a reverse proxy, but so far I have had no trouble at all. I have a small linode where I deploy all my python webapps simultaneously. As ...
0
votes
1answer
76 views

Nginx reverse proxy for Proxmox PVE Datacenter console

I am running Proxmox VE Datacenter console on the web behind an SSL protect NGINX proxy. Everything works great as long as I keep the Proxmox VE Datacenter console of the root (i.e.: ...
0
votes
1answer
26 views

Nginx server default does not apply

I installed nginx on a debian server. I have three servers (virtual hosts): default (/etc/nginx/sites-enabled/0-default) mydomain.com (/etc/nginx/sites-enabled/1-mydomain) booking.mydomain.com ...
0
votes
0answers
27 views

Maximum server attempts from upstream in Nginx

I have configured Nginx load balancing between backend servers. upsteam backend { server 127.0.0.1:8080; server 127.0.0.1:8081; server 127.0.0.1:8082; server 127.0.0.1:8083; } server ...
0
votes
0answers
46 views

Host multiple rails applications over subfolder using nginx+unicorn

I would like to host multiple rails applications using nginx + unicorn which is currently being served using apache + passenger with railsbaseuri. The only reason is being apache needs to be reloaded ...
1
vote
1answer
62 views

Nginx https vhost capering all requests

I am trying to setup a gitlab instance along an own cloud instance on the same server. Both work fine over http, and both work fine over https if one one host is enabled. The weird thing is that the ...
0
votes
1answer
27 views

nginx valid_referer for all files inside a directory

I have this config location /mirror/files { valid_referers none server_names example.com *.example.com; if ($invalid_referer) { rewrite ^/(.*)$ http://example.com/; } ...
-2
votes
1answer
67 views

Nginx CSS Caching [duplicate]

I've been trying to fix this for a while, but I haven't been able to find a solution. Some notes about my setup: I am not using VirtualBox I am running Nginx 1.4.6 Ubuntu The CSS's cache will not ...
0
votes
1answer
25 views

Redirect main page using nginx

How can in redirect www.example.com to www.example.com/test using nginx? The first is the main page of the web site, the second is a part in my web site. I want the redirection only when user request ...
0
votes
1answer
39 views

nginx Subdirectory Rewrites for MVC

I am tasked with administering a web application that has a base directory with a bunch of legacy code in it, and a subdirectory of my own making with an MVC based API which we are using to slowly ...
1
vote
0answers
39 views

Rails json Request are slow

I am developing an angularjs Application with Rails as Backend. It is hosted by DigitalOccean the smallest Server. On my Production System its only me testing right now. The problem is the requests ...
0
votes
0answers
35 views

How to make sure that Nginx does not cache 4xx and 5xx errors?

We are using a caching Nginx Proxy as a local npm mirror. Sometimes it can get in an inconsistent state where accessing certain URLs always returns 400. I assume that Nginx is configured to cache ...
0
votes
1answer
26 views

Are ping results dropping when SCP'ing normal?

Whilst scp'ing a file to a server, the ping responses of the server drops to be 6 times slow at ~640ms. Is this... normal? I'm using nginx, is this an indicator that it needs fine tuning?
-1
votes
1answer
45 views

Strange php redirections with nginx (Works fine in apache)

Finally I decide to ask here after hours trying, searching and researching. Months ago I migrated my site to a newer version and everything works fine with my old hosting in apache. Recently I ...
0
votes
3answers
63 views

Nginx - Work with multiple codeigniter installation

I have a Nginx server (1.6), with PHP-FPM on my local server. I have multiple webapps in my "/var/www/" folder, like site01, site02... My applications use CodeIgniter. I want to have ...
0
votes
1answer
46 views

Nginx sites-available doesn't work

I've got this really simple server block under sites-available. Problem: When I try to access to mydomain.com, Nginx returns a « 404 Not Found », but if I try to access to a file in particular, it ...
0
votes
1answer
145 views

Nginx redirect for specific file extension

I'm having trouble setting up the redirects for a Magento extension. The URL requested is: ...
0
votes
1answer
39 views

How do I properly chroot Nginx and uwsgi?

I have a pretty good idea of how to do this, I just wanted to make sure I wasn't going to be seriously screwing stuff up before I deployed it. I have a web application which uses uwsgi and nginx, and ...
0
votes
1answer
40 views

Server is not responding when single connection is blocked

I'm not sure how to properly specify this problem, I'm not really a server expert. I will be glad to provide additional data on demand. I have a PHP web-application running on Ubuntu Server with ...
1
vote
0answers
61 views

nginx doesn't check server_name and port on websocket proxying

I have three server blocks (virtual hosts) for http and one for websocket in the nginx config (nginx 1.6.0, ubuntu 14.04). server { listen 80; listen [::]:80; server_name ...
-1
votes
1answer
74 views

on nginx webdav, PUT returns 501

I've been charged with converting a webserver from apache to nginx, and I'm currently stuck on getting webdav to work. WebDAV is served by the PEAR webdav server ...
-1
votes
1answer
33 views

nginx special directory whitelist extension

How can i set white list extension for special directory for my virtual host. I have bower installation of my webapp and i install many bower component into bower_components directiry of root of ...
-2
votes
2answers
136 views

“File not found.” for clean URLS [closed]

I've installed the nginx + php-fpm + mysql stack in my Mac using homebrew. MacOsX: 10.9.2 Nginx Version: 1.6.1 Document Root: /Users/raj/Sites/ Project Dir: /Users/raj/Sites/projects/newproject Url: ...
1
vote
0answers
114 views

Weird Phusion+nginx spawning delay error

We are trying to migrate an application written on REE from cloud provider A to cloud provider B. The application code, VM specs and operating systems are the same. The basic difference is that cloud ...
0
votes
1answer
47 views

nginx wont start after reboot Ubuntu 14.04

I'm getting this error: nginx: [emerg] duplicate upstream "app_server" in /etc/nginx/sites-enabled/django.save:1 this is my config file: upstream app_server { server 127.0.0.1:9000 ...
-1
votes
1answer
31 views

Take some action when errors occur with nginx

I have a nginx/1.2.1 on Debian 7.0 x64 and i want to take some action when some error occurs, something like send mail to me. I found on the web ways to monitor files and take some action when they ...
0
votes
0answers
22 views

Nginx: Same configuration, one more domain

I'm pointing a sub-domain at a specific sub-directory on my server. I am familiar with creating additional configuration files and copying them into sites-enabled/ but let's say I would like to do it ...
0
votes
1answer
41 views

nginx php file being downloaded in second identical case

server { listen 80; server_name example.com; root /srv/www/example.com; access_log /srv/www/example.com/logs/access.log; error_log /srv/www/example.com/logs/error.log; ...
0
votes
0answers
26 views

Nginx serves response with 200 even after calling ngx.exit()

I am trying to serve static content from S3. I am using nginx and lua script for its configuration. I am new to both nginx and lua. The task that I want to achieve is : Get request URL into nginx. ...
1
vote
0answers
53 views

Getting a chunked request through nginx

First some background: We have an embedded device that uploads a lot of small events to a web server. Chunked encoding is used to post this information. Every event is send as a seperate chunk, so the ...
0
votes
0answers
47 views

No Logged in php5-fpm.log File

I'm using ubuntu 14.04 and by default, php5-fpm.log is enabled under /etc/php5/fpm/php-fpm.conf. But I don't see any logged specially warnings like the following: WARNING: [pool web8] child 76743, ...
1
vote
1answer
67 views

Nginx and Django use www-prefixed domain

Trying to understand how to force www. in my domain and redirect anything like ww.example.com or test.example.com -> www.example.com Everything works fine when I go to www.example.com or example.com, ...
0
votes
1answer
170 views

Redirect non-www to www over SSL with Nginx

I'm having an error when trying to redirect https://example.com to https://www.example.com. When I go to https://example.com, it doesn't redirect and returns the page/200 status. I don't want this, ...
0
votes
2answers
53 views

Nginx rewrite location internally to serve static content

I'm trying to serve static content from an endpoint that differs in hierarchy structure than the actual root directory structure. This is the result I'm trying to achieve: ...