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

2
votes
0answers
64 views

cacti send alert once nginx cannot be accessed

I already enabled graph on Nginx client stat and Nginx Socket stat, threshold plugin also installed, and they are working fine. I would like to know how can I get alert once users can't access nginx? ...
0
votes
0answers
58 views

Nginx server non www to www

I'm having some trouble with my nginx server configuration. So far its pretty simple for a site. I'm trying to redirect from non www to www. I have nginx running on a vm on my windows server 2008 ( ...
0
votes
2answers
1k views

Cant get access to phpmyadmin with nginx under debian “No input file specified.”

I've installed Nginx, php-fpm, mysql and phpmyadmin.. When I type myserver.com I see "Welcome to nginx!". But when I type myserver.com/phpmyadmin, I got : "No input file specified. ". I know it's ...
2
votes
0answers
473 views

Python Threads and uWSGI Harakiri

I have a webapp that is using an API built on nginx, uWSGI, and Django. Recently I have been seeing a lot of harakiris on a particular API call which does some quick processing and then spawns a few ...
0
votes
0answers
97 views

Different php.ini variables for each host in Nginx

We have couple of sites on our web server. Most of them are static content with very low traffic. There are some hosts with blog, forum etc. software. Plus i have a development domain running on ...
1
vote
2answers
421 views

Is there a way to deny access based on hostname or agent?

I am using owncloud and sometimes share links with people via Facebook. I am concerned with automatic crawling, so I would like to deny facebook access to my owncloud.thomas-steinbrenner.net server ...
4
votes
2answers
1k views

Nginx + WordPress : 414 Request-URI Too Long

I use Nginx with php-fpm on my server to run my Wordpress blog. When someone share my website on Facebook, some parameters are added by Facebook and the URL looks like : ...
1
vote
2answers
925 views

https www not able to redirect to non-www https nginx

I can't seem to redirect my https://www to https:// How it is currently the site thinks that www. is a completely separate site. I want to redirect properly, but when I add configuration on what I ...
0
votes
1answer
197 views

nginx sharing a server with several domains (subdomain redirection)

I have a server which I want to hosts two web apps (one site and one webapp for instance) and a newbie with nginx (and webhosting). I have: a web server (accessible using http://server.name) a main ...
-2
votes
4answers
61 views

Access to the site without a port [closed]

My nginx listen on port 33333 listen 33333; in /etc/nginx/sites-available/ I have: server { listen 33333; server_name domain.com www.domain.com; My website work only If I run: ...
0
votes
3answers
644 views

Disable HTTPS for a domain that shares IP with another domain that is under HTTPS

I am running into a weird problem trying to disable HTTPS for one domain, but the other domain has HTTPS. They both are different websites running on a dedicated server, sharing the same IP address ...
1
vote
1answer
2k views

How to get PHP_AUTH_USER and PHP_AUTH_PW available in nginx?

I have a Magento module that asks for $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] variables. In its documentation, the following setup for apache is proposed: SetEnvIfNoCase Authorization ...
1
vote
1answer
361 views

Can not find Ajenti after installation

I just installed Ajenti to my server, that runs nginx. I have a domain already setted up and everything works, except Ajenti. I added this config to nginx, to reach Ajenti: server{ listen ...
2
votes
3answers
500 views

SSL wildcard certificates and trailing 'www'

I've got a wildcard SSL certificate for *.example.com. I'm using nginx, and redirecting all traffic for http to https, and also rewriting the URLs without a trailing www (if there is one). So it ...
-1
votes
1answer
3k views

nginx is still on port 80 - bind() to 0.0.0.0:80 failed (98: Address already in use)

I edited this file: /etc/nginx/sites-enabled/default to listen 4444; - https://dpaste.de/nrUy9/ but still is on port 80. What can I do? Port 80 is used by apache. My error: root@user ...
-2
votes
3answers
312 views

Nginx - Address already in use

If I run: service nginx restart I have this error: root@user /etc/nginx/sites-enabled # service nginx restart Restarting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) ...
1
vote
0answers
324 views

Nginx + php5-fpm + CodeIgniter Response Too Slow

I have installed nginx, php5-fpm and setup codeigniter with REST controller on Ubuntu 12.04 LTS. The configurations work but response is too slow at times, even with just a single user. Sometimes the ...
1
vote
1answer
4k views

Nginx + PHP-FPM “error 104 Connection reset by peer” causes occasional duplicate posts

I'm running Drupal 6 with Nginx 1.5.1 and PHP-FPM (PHP 5.3.26) on a 1GB single core VPS with 3GB of swap space on SSD storage. I just switched from shared hosting to this unmanaged VPS because my site ...
0
votes
0answers
246 views

PHP-FPM performing worse than mod_php

Recently the website I maintain has been growing a lot and I saw the point coming where I'd want to switch from apache to nginx, because I kept on reading that it performs way better. Now I've done ...
1
vote
1answer
2k views

nginx and HTTP Referer

I'm using nginx together with php5-fpm and with the following fastcgi_params file: fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param CONTENT_TYPE $content_type; ...
0
votes
2answers
7k views

Recommendation for PHP-FPM pm.max_children, PHP-FPM pm.start_servers and others [closed]

I have the following server: Intel® Xeon® E3-1270 v2 Single Processor - Quad Core Dedicated Server CPU Speed: 4 x 3.5 Ghz w/ 8MB Smart Cache Motherboard: SuperMicro X9SCM-F Total Cores: 4 Cores + 8 ...
1
vote
1answer
144 views

nginx ssl basic setup

Im relatively new to the server side and have very little idea about configuration so please excuse me if the question seems really basic I have a nginx+uwsgi server up and running an i would like to ...
0
votes
1answer
459 views

Does nginx have dynamic includes?

Is there any way to include a config file that gets reloaded on each request (maybe only when is modified)? Something like: server { ... dynamic_include $document_root/.nginx; } This could ...
0
votes
2answers
269 views

Fresh install of nginx causes browser to download index.html instead of opening it

When I view this in Chrome, http://localhost:90 the file is downloaded instead of displayed in Chrome. This question has been asked a lot of times on SO, but about index.php files. My problem is a ...
0
votes
1answer
648 views

WordPress 3.5 Multisite and nginx siteurl issues

I'm setting up multisite on localhost in subdirectories. The problem is that when I'm trying to access the dashboard of a site I just created ( localhost/wptest/site/wp-admin ) I get "This webpage ...
0
votes
2answers
360 views

NGINX rewrite for vanity URLs when file doesn't exist (try_files and rewrite together)

I'm trying to get vanity URLs on my server. If the file path from the URL doesn't exist, I want to rewrite the URL to profile.php, but if my users have periods in their usernames, their vanity URL ...
2
votes
2answers
2k views

PHP-FPM stops responding and dies

I'm running Drupal 6 with Nginx 1.5.1 and PHP-FPM (PHP 5.3.26) on a 1GB single core VPS with 3GB of swap space on SSD storage. I just switched from shared hosting to this unmanaged VPS because my site ...
0
votes
1answer
55 views

Wordpress multisite and redirect

I come to you because I'm facing a really strange effect on my hosting. I currently manage a server contening a NGINX/PHP-CGI and a wordpress multisite in it. My sites are created using ...
0
votes
1answer
310 views

How does nginx handle log file growth by default?

I'm a bit worried because its been a couple of days and my access log file is up to 250MB+. Does it roll log files over and delete them? I'd like for there only to be 1GB or less of log files total.
0
votes
3answers
164 views

I am unable to get the subdomain from the URL in NGINX

I am unable to get the subdomain from the URL in NGINX. Here is my config: server { listen 80; server_name ~^(?<appname>)\.example\.com$; rewrite ^ ...
0
votes
1answer
175 views

serving static assets via http is really slow compared to sshfs (apache2/nginx)

After migrating to a new VPS I had some users complaining about slow loading images on their sites. After creating some test files with dd I realized that I can download all files via sshfs with full ...
0
votes
1answer
282 views

basic authentication with nginx - page loads before auth popup

I have nginx and I have a directory that uses basic authentication. However, the page loads fully before the authentication popup comes. Even if I press cancel I'm not redirect to 401 authorization ...
0
votes
2answers
44 views

URL rewriting with nginx

I've recently set up a virtual host using nginx. The website being hosted needs to redirect URL's containing '/old/' - to the same url without '/old/'. For example: www.mywebsite.com/old/a/b/c to ...
1
vote
0answers
194 views

How to block trafic from anonymous proxy to my site?

some scammers are trying to reach my site using anonymous proxy. Is there a way to block connexions from anonymous proxy with haproxy or nginx? Thanks
0
votes
1answer
107 views

phusion passenger processes dying and new ones starting up mysteriously

as you can see, passenger processes are dying and new ones booting up, even though we're not explicitly restarting passenger ourselves. we can't pinpoint what's causing this. what are some common ...
1
vote
1answer
685 views

Identify Long Running or Slow PHP Scripts

I have web server that is getting around 25K visits a day up at yougetsignal.com. Sometimes the site feels a bit sluggish. I am hosting it on nginx with php5-fpm. Is there a way for me to see a list ...
0
votes
0answers
325 views

Nginx reverse proxy with rewrite

I'm trying to come up with a configuration for utorrent server using nginx. Here is what I have so far: server { # etc... location /utorrent { proxy_pass http://127.0.0.1:8080/gui/; ...
0
votes
1answer
430 views

Nginx conditional not evaluating correctly

I'm running into a weird problem with nginx and how it evaluates conditionals. Here's the relevant configuration: set $cors FALSE; if ($http_origin ~* ...
0
votes
1answer
295 views

nginx redirect what is not coming from load balancing

I have nginx on SERVER1 that is acting as load balancing between SERVER1 and SERVER2 in SERVER1 I have the upstream for the load balancing defined as : upstream server # SELF SERVER1 ...
2
votes
3answers
2k views

What is the definition of a burst in Nginx limit_req setting?

What is the difference between this: limit_req_zone $binary_remote_addr zone=flood:10m rate=30r/s; limit_req zone=flood nodelay and: limit_req_zone $binary_remote_addr zone=flood:10m rate=30r/s; ...
0
votes
2answers
401 views

What ports to open in aws security group for aws?

I am building the backend for a turn based gamed. My experience is mostly with a lamp stack; I've dabbled in nginx on a node side project. I just read Scaling PHP Applications by Stephen Corona of ...
0
votes
1answer
56 views

Can I have nginx put stuff on memcached?

It is my understanding that nginx can query memcached for data that it serves, but you have to place them there using some other (homegrown) program. So the question is, can I have nginx fetch data ...
0
votes
1answer
267 views

Redirecting Nginx root to subdirectory without causing a redirect loop

I am trying to setup my nginx server to do the following: redirect www to non-www serve the foo.htm file from the en folder while the browser address bar displays https://domain.com/en/foo for all ...
0
votes
3answers
1k views

Nginx proxy pass and url rewriting

How to trig this rule only when I have parameters in url, otherwise I will match on an alias. location ~^/static/photos/.* { rewrite ^/static/photos/(.*)$ /DynamicPhotoQualitySwitch/photos/$1 ...
0
votes
1answer
652 views

High Apache CPU usage, but low nginx - Configured correctly? [closed]

We've just moved a website of ours over to a brand new high-spec Linux server (1x Intel Xeon E3-1230 v2 @ 3.30GHz, 8GB DDR3 ECC, 2x 128GB SATA SSD RAID1). The server has been configured to use nginx ...
4
votes
1answer
2k views

Nginx Solution for AWS Amazon ELB Health Checks - return 200 without IF

I have the following code that is working on Nginx to keep the AWS ELB healthcheck happy. map $http_user_agent $ignore { default 0; "ELB-HealthChecker/1.0" 1; } server { location / { if ...
0
votes
1answer
27 views

Configuring nginx to handle PHP files and another case

I have a script that is being access via a URL like this: /directory/file.php/methodName I need nginx to handle this specific route and send it to PHP. Right now my config currently just catches ...
0
votes
2answers
47 views

Allow certain urls to be available on HTTP too when redirecting everything to HTTPS

Right now, I redirected all the HTTP urls to HTTPS using this code in my nginx config: server { server_name domain.com listen 80; location /asset/ { # make files under asset directory ...
0
votes
1answer
499 views

Nginx x-accel stripping Content-Encoding header

I have my Nginx server setup allow requests to be served with the X-Accel-Redirect header. This works fine for images, but I'm trying to get it to work for Javascript files that are already gzip'ed on ...
1
vote
2answers
523 views

Trying to install wordpress inside rails app with nginx and fastcgi

I have a rails app (let's call it myapp) running at www.myapp.com. I want to add a wordpress blog at www.myapp.com/blog. The webserver for the rails app is thin (see the upstream block). The wordpress ...