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
21 views

Optimzing Web Server

I'm trying to increase connection speed and at the same time reduce server load for my web application. I'm looking at setting up something similar to a CDN (Content Delivery Network) but that's able ...
2
votes
2answers
111 views

Forward all TLD requests to another server

So, an emergency has been landed in my lap, and unfortunately I'm ill-equipped to deal with it. An IT tech for a client's company changed the A record for a domain, then went on holiday. He is the ...
2
votes
2answers
49 views

Adding “HttpOnly” and “Secure” cookie flags on Nginx & PHP

I have Nginx running with PHP and WordPress. Acunetix recommends setting these flags, but they provide no documentation. I have looked around a bit, but I have not seen anything that shows exactly how ...
0
votes
1answer
23 views

Can Nginx redirect or rewrite URLs starting with “?” without using an “if” directive?

I have an RSS feed example.com/?format=feed&type=rss from an old Joomla install. The site is now built with Jekyll, and uses a new URL example.com/rss.xml for the RSS feed. Rewrite rules ...
0
votes
1answer
10 views

Nginx proxy_pass config

Nginx proxy_pass config I'm setting up an Angular app on one domain that needs to access an API on another. This seems to be working fine. In my services.js I have a service.factory that contains: ...
0
votes
2answers
31 views

rewrite urls to something different on nginx [on hold]

I have a website , and i am proxy-ing it using nginx for performance and caching I would to rewrite real urls to fake ones for example user opens www.yahoo.com then search for cats it will show up ...
1
vote
2answers
57 views

Why won't Nginx return a 404 error for URLs starting with a question mark?

I'm trying to get a rewrite rule working and I've discovered that if the URL begins with a question mark, Nginx fails to return 404 error as expected. Instead, index.html as defined in the root ...
0
votes
0answers
21 views

Compiling and updating Nginx from source

If I have compiled and installed Nginx on Debian 7 Wheezy from source, would the steps to update be to: Download and unarchive new source ./configure make make install I tried installing Nginx ...
0
votes
2answers
17 views

Handling emails in a separet email servers

This is a problem about maintaining an all-email VPS server. First, I have two VPS hosts right now, both running CentOS 6.5, 32bit system. one for web hosting and other for email only. The reason ...
0
votes
1answer
37 views

NGINX+Windows how to serve a static html file (100kb) to 10k concurrent users

This is the NGINX config file: gzip on; gzip_disable "MSIE [1-6]\."; gzip_vary on; gzip_proxied any; ...
2
votes
0answers
18 views

Database hangs when using owncloud on nginx php5-fpm postgresql - i think postgres if responsible

I have strange problem with this setup. Strangely it occurs only when using owncloud from one specific computer. Problem is when user click on "Activities" an "document" icons one after another ...
0
votes
0answers
18 views

Full SSL site: SSL Negotiation Time and Cipher Suite in Nginx

Here is my Waterfall http://www.webpagetest.org/result/140417_42_H0D/1/details/ It is taking too much time in SSL negotiations. I tried to apply following article: ...
1
vote
1answer
36 views

How to transparently redirect a user without rewriting URL when page does not exist?

I have a node web app with nginx acting as a proxy. Here's the server block for that site : server { listen 80; server_name subdomain.example.org; location / { ...
0
votes
0answers
27 views

Nginx with wordpress refused varnish static content requests

I just added another wordpress site to my ubuntu server. 2 wordpress sites, not multisite. They use 2 different fpm pool with same config. Their Nginx config files are basically identical except the ...
0
votes
0answers
6 views

subs_filter_types when upstream server doesn't have “Content-Type”?

I'm using nginx_substitutions_filter for reversing-proxy. It works perfect, however I have tiny problem. This is what I have in configuration: subs_filter 'cats' 'dogs'; ...
0
votes
0answers
10 views

force upstream smtp outbound through proxy

Upon inspection of emails sent outbound to external domains, the backend is revealed as being the true sender, rather than the proxy itself. When sending within the domain, from local user to another, ...
0
votes
1answer
31 views

Nginx proxy_pass not working for subpages

I'm trying to set up an nginx proxy_pass that does the following url is example1.com this needs to redirect to example2.com, but keep saying example1.com. This works for the root page, but not for ...
0
votes
0answers
9 views

Deploying Gunicorn behind a Proxy Server like NGINX

What is the best practice for deploying Gunicorn with NGINX? Is it a good idea to run the proxy server on the same box that is also running Gunicorn? Wouldn't they compete for resources such as memory ...
0
votes
1answer
35 views

Ask nginx to handle requests from the same IP in parallel?

I have an application internal to my company that needs to be very fast per client, because the clients are so limited and the whole thing is internal. So, the client is expected to send so many ...
-1
votes
2answers
24 views

URL Shortener & Site Redirection on same domain

i have one domain(http://sdm.fm), And I would like it to work as a redirect to http://somdomato.com. But at the same time I would like it to work as a URL shortener. Using phURL. Like: ...
0
votes
0answers
17 views

NGINX reverse proxy with tcp module [on hold]

Thanks in advance. It's urgent. I am trying to configure NGINX as reverse proxy with tcp protocol. Please help me how to do it. We have an application which is used for interview calls it's NIPO ...
0
votes
1answer
18 views

Can't get SPDY working on nginx 1.5.9

I can't get spdy to work after reinstalling Ubuntu. I'm using nginx 1.5.9 from the nginx launchpad repository which has spdy support build in. Snippet: root@ssl:/etc/nginx/# nginx -V nginx version: ...
1
vote
1answer
23 views

unable to switch off expose_php in ubuntu 14.04 with nginx and php-fpm

According to phpinfo: Loaded Configuration File: /etc/php5/fpm/php.ini # grep expose_php /etc/php5/fpm -R /etc/php5/fpm/php.ini:expose_php = Off ...
0
votes
2answers
23 views

Take HAProxy backend nginx server out of rotation if it can't connect to Unicorn

I have a load balancer running HAProxy with two backend servers both running Nginx on to Unicorn. If nginx goes down on one of these boxes HAProxy takes it out of the set and the service continues to ...
0
votes
1answer
20 views

All Laravel routes “not found” on nginx

Trying to setup Laravel 4.1 installation on a nginx server (first time) and I'm given "not found" for every Laravel route instead of the view expected. The main page loads fine. Please note, site can ...
0
votes
1answer
18 views

Nginx and Wordpress: Add php after postname

I'm doing a migration from Apache to Nginx of some Wordpress sites. Now I'm dealing with the URL rewriting, because one of the blogs has the following URL structure: %postname%.php And I'm using ...
0
votes
1answer
46 views

Switched from Apache to Nginx - 503 errors

Switching from Apache to Nginx has caused us some errors.Our forum images do not load, and a directory with redirects and such don't actually redirect. The two problems is /forum/uploads/avatars, ...
0
votes
1answer
46 views

Nginx basic auth password not working

I am trying to set up basic auth on a subfolder with nginx. location ^~ /Docs/ { auth_basic "Restricted Area"; auth_basic_user_file /var/www/Docs/.htpasswd; //also tried the path ...
0
votes
1answer
18 views

Redirect all subdirectories to root with nginx

I'm running a web application at my site's root. I would like it so that all subdirectories (even ones that exist) are directed to the root e.g. example.com/anything would redirect to example.com. ...
0
votes
0answers
15 views

Would PHP5-FPM be faster with more cores?

I'm a bit new with nginx + php5-fpm. I read that with nginx there's an advantage to have multiple cores (CPU) with the use of worker_processes. Is php5-fpm also faster if it uses more cores? Reason: ...
0
votes
0answers
33 views

Heartbleed - what information is leaked by Nginx? [duplicate]

I've seen a couple of questions related to this, but none that specifically answers the question of what the risk is in the event that SSL termination is done downstream of the app on Nginx? Scenario ...
0
votes
1answer
27 views

Nginx Extract Top Directory Name From Request URI

I am in the need of being able to use top directory from the $request_uri, for example: /dir/sub/slug -> /dir I read the answer of this question: How to extract Only the file name from the request ...
0
votes
2answers
35 views

Nginx always reports “not found”

Trying to get an nginx setup running but every time I visit the address, I'm given "not found" instead of the laravel site I'm expecting. Server worked fine before I added the vhost, so I'm guessing ...
1
vote
0answers
25 views

Reject requests with special unicode chars in Nginx

I'd like to block/deny all requests that have one or more non-ascii chars in it. For instance, I'm getting requests like these: /\ufffd?s=p&z=\ufffd&g=\ufffd&o=2 Where \ufffd is the ...
0
votes
1answer
25 views

Nginx and multiple applications

I am new to nginx, and here what I am trying to achieve : I have only one domain name. I want to have several applications, accessible with something like : mydomain.com/app1 mydomain.com/app2 etc ...
0
votes
0answers
16 views

nginx, tuning time to first byte with static content

Or to rephrase my question: what factors could affect TTFB for static content when using nginx? Specifically, Time To First Byte excluding SSL or DNS overhead. I can imagine gzip level ...
-1
votes
0answers
17 views

nginx compile options difference [closed]

What's the difference between below 2 configure options? I understand I explicitly specify path to use for SSL library. If I copy the binary to some other system, what happens to loading openssl ...
1
vote
1answer
40 views

NginX reverse proxy with iRedMail Apache2

On an empty VPS hosting, I managed to run the base iRedMail installation with Apache2 and LDAP and my roundcubemail was accessible at: https://www.mydomain.com/mail then I installed NginX, shutdown ...
1
vote
2answers
223 views

Why can nginx access /etc/passwd? [closed]

I'm trying to setup my new VPS with my couple sites. nginx, php-fpm and other needed services installed. I setup a nginx server block(virtual hosts) for my site, and then try to create a php file ...
0
votes
1answer
26 views

Setting up Nginx — redirecting requests to a auth server and getting redirected back to serve the request

Any incoming request on (x.x.x.x.x)--> redirect to x.x.x.x.auth.domain.edu -- > that authenticates a user and redirects back to x.x.x.x server. (With a cookie set, In my case it is EZproxy server ...
1
vote
1answer
29 views

Sharing unix socket via docker volume - permission denied

I try to share my php5-fpm socket via a volume with my nginxwebserver. Fpm and nginx are running if different containers and I want to get them working via a shared volume where I place the socket ...
0
votes
1answer
31 views

Wordpress on VPS keeps crashing because of daily visitors growth

I run small local news Wordpress blog on CentOS 6 64bit VPS 4GB RAM. Recently, website experienced daily visitors growth from 5K to 10K-15K. Site started crashing with 504 Gateway Timeout. Error log ...
1
vote
1answer
42 views

Throttling a user across multiple datacenters

I'm trying to implement a throttling feature on nginx, that is shared across multiple servers across multiple datacenters. I would like to know what would be the best practice for building this. For ...
0
votes
0answers
39 views

nginx with php-fpm location settings

Many of the guides for setting up Wordpress (or similar applications) on nginx with php-fpm use a configuration that in part looks something like this: location ~ [^/]\.php(/|$) { ...
0
votes
0answers
6 views

uwsgi & nginx unknown directive

On my local pc everything works. On VPS: sudo nginx -s quit && sudo nginx nginx: [emerg] unknown directive "uwsgi_pass" in /etc/nginx/sites-enabled/mysite_nginx.conf:36 cat mysite_nginx.conf ...
0
votes
0answers
15 views

For Tomcat 7 with NGINX, is APR still useful?

I've been having trouble keeping some Tomcat 7 servers running - they spontaneously shut themselves down. So I am looking at my config wondering how much I need certain things. I am using Tomcat 7 ...
0
votes
1answer
43 views

Sudden error with wordpress with nginx only (Uncaught SyntaxError: Unexpected end of input)

I've installed Wordpress on my VPS and is run smoothly with apache2. But recently , I recognized that it consume too much RAM (~600MB for 7-8 session) so I decided to change to Nginx. After changing ...
-2
votes
0answers
29 views

Random Nginx 400 Bad Request

I just installed fresh new server (Centos 6.4), I have worked with my website and suddenly i get 400 Bad Request - Nginx (After some time the website worked again) the weird thing I have no errors ...
0
votes
2answers
109 views

using nginx with SNI

By now I've not used SNI with nginx yet. But as IP address pools are quite filled and commercial XP support is about to cease (finally) I'm thinking about converting a few sites to SNI. I'm aware of ...
0
votes
1answer
24 views

configure nginx with 2 locations while 1 answers to specific url request

I appologize for the weird title :) what I have I have two web applications running on the same server (an OSClass installation and the Vanilla Forum). One of them is supposed to be the master of ...