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
3 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/; } ...
0
votes
1answer
7 views

Nginx CSS Caching

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

The new SSL certificate doesn't load to nginx

Sorry for my English. I have a some web service that works on nginx as a front-end. It uses SSL-certificate which already expired. I ordered the new certificate, replaced all needed files and reload ...
0
votes
1answer
13 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
12 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
11 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 ...
-2
votes
0answers
18 views

Questions regarding Server architecture [duplicate]

I'm currently evaluating possible server structures and wanted to know which way I should take: Our requirements are: php mysql mailserver We will have around 5000 users active at the same time. ...
0
votes
0answers
14 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
23 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
15 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 ...
-1
votes
0answers
13 views

nginx: files in folder, URL without folder name

How can I configure nginx to load the pages from a folder, without having the folder name in the URL, but for a certain folder only? Example: about-us.php sits in a /master folder, and when I go to ...
0
votes
3answers
21 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
20 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
33 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
22 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 ...
-1
votes
0answers
16 views

redirect to a different domain with nginx forward proxy when domain uses https [on hold]

I'm planning on using nginx for a personal forward proxy. It started as a data collection project so I can monitor my own internet usage by looking at the raw http logs, but now I want to redirect ...
0
votes
1answer
28 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
31 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
30 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
12 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
1answer
65 views

“File not found.” for clean URLS

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
54 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
13 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
15 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
12 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
23 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
13 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. ...
0
votes
0answers
16 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
17 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
50 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
56 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
34 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: ...
0
votes
1answer
28 views

How to make Nginx include index.php in file paths for sub-directories as well (Magento Multistore)

Running multistore setup with Magento on an Nginx server. I'm watching the access logs and can plainly see what is happening. Like many PHP web apps, it uses index.php in its URLs and I have it set to ...
0
votes
2answers
36 views

Php runs on server, but not command line: “libssl.so.10: no version information available”

php is running on my server, though I'm unable to get it to run command line. I'm running this file: <?php echo "done"; ?> using this command: php test.php When I do, I get this error: ...
-3
votes
0answers
18 views

cURL causes 416 errors - nginx with PHP5 [closed]

I moved my web application from an Apache server with php5+curl to another server with nginx as a webserver, php5-fpm as interpreter and curl for http request. I do some kind of streaming via curl. My ...
0
votes
0answers
33 views

multiple ssl sites one ip nginx centos

This is a strang issue i'm having before I migrated to a beefier server I was able to host multiple ssl sites over one ip using nginx now when i enable ssl on any two sites it breaks and i get a ...
-1
votes
0answers
11 views

Nginx confuses two virtual hosts on the same server [closed]

I have two virtual hosts on my nginx server, let's call them www.mypersonalwebsite.com and www.mybusinesswebsite.com. They are both running on port 80 as you would expect. Everything works fine when ...
0
votes
0answers
13 views

PHPMyAdmin and NGINX [closed]

I use a very specifical configuration in Nginx for rewriting URL but then it blocks /phpmyadmin. I've tried tons of different ways for making pma back but not any worked.. Please help me make PMA ...
0
votes
0answers
20 views

Improving siege results on nginx

My server has Nginx and I've been testing it with siege. top was showing the server wasn't even breaking a sweat with 150 connections from siege -c150 -d10 -t180S http://foo.com However, there were ...
1
vote
1answer
38 views

Best Practice for Mapping Domain Names to Docker Container

What is considered "best practices" for serving a a docker container from a specific domain name? For example: Container1 runs App A on port 8080, and accessed via AwesomeAppA.com Container2 runs ...
1
vote
1answer
118 views
+100

nginx - Load Balancer - Considerable lag when upstream node is offline/down

Running nginx 1.0.15 on CentOS 6.5. I have three upstream servers and everything works fine, however when I simulate an outage, and take one of the upstream servers down, I notice considerable lag in ...
-2
votes
2answers
32 views

Will Varnish recreate cache?

I want to cache pages on my nginx site for fast retrieval. Let's say every 5 hours I want to expire all the cache and have it recreated. Will Varnish make calls to the web-server and recreate cache on ...
0
votes
0answers
30 views

nginx proxy_set_header x-forwarded-proto seemingly not working

Since i am a beginner in nginx proxying i have a question. The gist of it: Where does an nginx proxy set defaults for php's $_SERVER["HTTP_X_FORWARDED_HOST"], $_SERVER["HTTP_X_FORWARDED_SERVER"] and ...
1
vote
0answers
23 views

Can nginx set 'Origin' header when proxing websocket?

We know nginx can proxy WebSocket since version 1.3.13, and we also know some times WebSocket server will valid the 'Origin' header, so someone said you can do something like: proxy_set_header Origin ...
0
votes
0answers
12 views

Nginx blocks http response with long string

I encountered a issue with my live web service today. The backend setup is Nginx + Django webservice. In the webservice, I have code to return a HttpResponse with a long JSON string (> 1400 char). ...
0
votes
3answers
36 views

How to remove Nginx and compile new Nginx from source

I've installed Nginx using apt-get install nginx but now I need to add SPDY and PageSpeed extensions. This is why I need to remove the current Nginx installation and install the new one from source. ...
0
votes
0answers
14 views

Nginx redirect https://www.dom.com to https://dom.com on multi-domain setup

I am struggling to get my Nginx to redirect my ssl requests. It is a bit complicated setup I believe. I have multiple servers on multiple domains and subdomains, say sub1.dom.com, sub2.dom.com, and ...
2
votes
0answers
32 views

Is the server still vulnerable to attack if we don't turn off cgi.fix_pathinfo?

The /etc/nginx/sites-available/default file that comes with nginx installation has the following content: # You may add here your # server { # ... # } # statements for each of your virtual hosts to ...
-2
votes
1answer
32 views

Nginx with PHP Framework and multiple Wordpress installs

I have an nginx server with php5-fpm hosting 3 frameworks. 1 PHP framework, 2 wordpress. All live in the /var/www folder, so for this purpose /var/www/website - PHP framework /var/www/blog - ...
0
votes
2answers
29 views

nginx rewrite if requst_uri contains some numbers

I'm having a little problem with some rewrite rules for a website. My permalinks are now something like domain.com/ID/permalink-ID.html The old structure of permalinks was ...