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
votes
1answer
50 views

phpmyadmin complains about permissions and open_basedir - but they all appear correct [closed]

phpmyadmin has been installed and working fine for months, installed via this repo: deb http://ppa.launchpad.net/tuxpoldo/phpmyadmin/ubuntu utopic main Suddenly, I couldn't login; no in-page errors ...
-2
votes
2answers
46 views

How to uninstall nginx on CentOS7 [on hold]

I installed Nginx from src myself using this guide and now, I would like to get rid of it. But it seems there is nothing to do, aside from wiping out the src in usr/local/src I did yum list installed ...
0
votes
1answer
50 views

Nginx virtual host servername, root

I installed nginx-1.6.2,2 on FreeBSD-9.2-RELEASE-p5 and here is my configuration: # tail -2 nginx.conf include _includes/*.conf; } # cat _includes/XXX.conf server { server_name XXX; root ...
1
vote
3answers
58 views

Nginx redirect all www.domain to domain and all domain to www.domain

I'm trying to get nginx to redirect every request it receives from any domain by either adding or removing a www. prefix. This is for a little redirect service. If you point www.any.domain to it, it ...
1
vote
1answer
44 views

nginx set variable in location

I am trying to optimize my nginx configs, so it would be possible to set one variable, and all location paths would update automatically. I have four lines in question: server_name php.domain.com; ...
0
votes
2answers
400 views

How do I set permissions for uploading media in WordPress? (Ubuntu 14.04.1, nginx 1.4.6)

I'm having trouble finding the correct permissions for running a WordPress site on my droplet. I followed this guide to configure the site: How To Configure Secure Updates and Installations in ...
0
votes
0answers
14 views

uWSGI suddenly won't start again after server crash on Debian

After my server crashed i am unable to start uWSGI again, and keep getting following errors on unlink() and bind(). I start my service as root, so it makes it even more strange. Sun Nov 16 15:25:24 ...
-2
votes
0answers
26 views

Unable to serve static files from Nodejs application running from subdirectory url

I desire a following URL structure xyz.com - Opens simple index.html page xyz.com/apps - Nothing xyz.com/apps/app1 - Should open my NodeJs application app1 My nginx server block is as below ...
0
votes
0answers
42 views

Bottle neck of nginx?

I'm using nginx as a load balancer on amazon ec2 m3.large instance. This load balancer will receive loads from a load generator and distributed them to the 3 instance with mysql database serves as ...
0
votes
1answer
20 views

What characters are special in an nginx map instruction?

I'm moving a site to a new structure and want to use nginx's map to map old URLs to their new locations. For simple cases that works like a charm, but I have trouble with some values. This is what I ...
1
vote
1answer
37 views

Set up nginx for access controlled video streaming

I am trying to create an application thats core it will be to show videos in a learning environment based on meteor/nodejs. The problem is the streaming itself. As described on many pages, node is not ...
1
vote
0answers
46 views

Nginx + PHP-FPM Client Abort

Here's my config (Nginx 1.7.x) : server { listen 8000; index index.php index.html index.htm; root /var/www/; server_tokens off; chunked_transfer_encoding off; location ~ ...
-3
votes
1answer
34 views

DNS configuration for webserver path

What I have is: some vservers and some domains, located at different hosters. A webserver with Port 8081 on one server. I have a path like "123.123.123.123:8081/app/" What I want is: a subdomain ...
0
votes
1answer
41 views

Correctly assigning permissions & groups

So my nginx is using www-data:www-data, and I want to deploy files to my server with Beanstalk through sftp properly. So I've created an user called beanstalk and added him to www-data group. $ id ...
0
votes
0answers
15 views

Run other applications alongside rails passenger app?

I recently created a rails app for my portfolio on an nginx server, I had to reinstall nginx to work with passenger. My portfolio works fine, but I can't seem to get another app to run alongside it ...
-1
votes
1answer
44 views

Really struggling with nginx rewrites to https [closed]

I hope someone can help. I am new to ubuntu and nginx and have set up my own server (with the help of various guides around the internet) Here is my setup. ubuntu server 14.04, nginx, php5 fpm, ...
2
votes
1answer
59 views

How to load static files in an Nginx + Flask setup if the app is mapped to a sub-directory

I have a basic html site running at a domain (say example.com) and I want to run a flask app in a sub-directory (eg:example.com/test) flask app is running on port 5433 using the default flask ...
0
votes
0answers
41 views

nginx shutting down periodically

I have a Centos 6.5 server that came with Apache pre-installed. I was having problems with Apache clashing with nginx, presumably because they both default to listening on port 80. I went through the ...
0
votes
0answers
33 views

301 redirect DNS issues

I think I screwed up something in my DNS configuration and now its bugging me for hours. Any help would be greatly appreciated. I own a domain lets call it abc.com Before all the issues happened ...
0
votes
1answer
38 views

Different enviroment variables depending on the subdomain

Is it possible with NGINX to pick different enviroment variables depending on the subdomain? And if yes how can I do that? Background: The environment variables link to a certain Mongo DB instance ...
1
vote
1answer
47 views

Basic auth only if a certain header is present in the request?

Q: I want to be able to enable basic authentication for only those requests, that include a specific header in the request. Use case: Ask authentication for only certain clients whose requests are ...
0
votes
1answer
60 views

nginx: Multiple cross-domain 301 redirects with different page addresses

I'm moving my old site over to a new domain, and with that new domain comes new naming conventions. I'm trying to figure out what would be the simplest way of accomplishing the following for roughly 8 ...
-1
votes
1answer
47 views

Nginx rewrite HTTP to HTTPS says redirect loop? [on hold]

I am trying to redirect all HTTP traffic to HTTPS,so when i got to www.domain.com it goes to https://www.domain.com. This is my current .conf file - server { listen 80; #listen [::]:80; ...
1
vote
0answers
44 views

Pyramid + Nginx + uWSGI Server 500 Errors

I have a uWSGI application written in Python using the Pyramid framework. Nginx is configured like below (I left out a few bits, but I don't think they will matter): upstream uwsgicluster { ...
1
vote
1answer
30 views

Could not load file or assembly fastcgi-mono-server4

I am trying to host an ASP.NET Web Forms application using Mono. I have installed Mono 3.0.7 and XSP 2.10.2 from source into the /usr/bin directory. I then started the mono server with the following ...
0
votes
0answers
21 views

How to Flush NginX's SSL buffer mid-request for Server Push

I'm writing an app that uses long polling to push messages to clients. It doesn't end the request when it finishes sending a message though: it just flushes. It works fine, even when I proxy it ...
0
votes
1answer
27 views

Joomla URL Rewriting works automatically in Nginx

This is driving me nuts and I dont understand how this works automatically. I have nginx as my web server and I have installed Joomla that has URL Rewriting which removes the index.php from the URL. ...
0
votes
1answer
49 views

How to share nginx log's without sudo to another user?

I have 2 users on my server. One with sudo access another without. How can i give access to nginx logs /var/log/nginx/error.log To another user without sudo permission to use cat ...
0
votes
0answers
6 views

nginx proxy_pass and virtual hosts within LAN returns 404 [migrated]

I hope this makes sense. Basically, I have set up a local server on my MAC using nginx, with these rules for the proxy_pass: location /engine/rest { proxy_pass ...
0
votes
1answer
20 views

Nginx proxy_pass with PHP authentication?

Hey so what I'm basically hoping to do is set up nginx as a reverse proxy to an internal IIS server which hosts content. The nginx server would have to authenticate users using a PHP/MySQL login ...
0
votes
1answer
36 views

Nginx Load Balancer Optimum Specs

I have 3 Nginx servers and each of them should handle about 2k users (concurrent connections). In front of them I have Nginx load balancer. That's 4 Virtual machines, sharing same subnet and same ...
0
votes
0answers
28 views

NGINX: proxy_cache altering headers

I have been having trouble building a proxy between my server and s3 to cache requests. I finally boiled it down to a single point of failure... http{ proxy_cache_path /home/cache levels=1:2 ...
1
vote
1answer
44 views

Nginx redirect of subdomain routes not working

This is my server block in the nginx_conf file: I'm using cloud66 so I can edit this from my dashboard. This keeps breaking. I suspect it's because of my conditionals and if statements. I'm trying ...
0
votes
1answer
22 views

NGINX and Node.js Caching returning the same results on all subfolders

We use NGINX to proxy a connection to a Node.js instance running on the same server. Without caching turned on for that location, at one level (i.e. /v1/streams/) it returns a 2MB json file. If an ...
1
vote
1answer
35 views

nginx: 'location' as an alias for 'server'?

I have nginx set up with several servers in /etc/nginx/sites-enabled However, I want to convert my setup to one domain myserver.com , so typing in a browser lalala.com will no longer get me to the ...
1
vote
2answers
94 views

Why is my Nginx location rule not taking precedence?

I have a PHP application (Wordpress) in the root folder of my site, and all requests to the site run through it happily. However, I have a subfolder, _links, which I would like to use to execute ...
0
votes
0answers
12 views

Nginx proxy cache invalidating request to s3

I have set up a proxy from my application server to a private s3 bucket to cache requests. I was having some trouble with it where s3 was rejecting my download requests (403 forbidden) and after some ...
1
vote
0answers
47 views

Is it normal for nginx latency to get worse throughout the loading of a webpage's assets?

If I open up Chrome devtools and go to the Network panel and then do a ctrl+F5 of my website, I notice a pattern each time. The first request, to a php page, has a latency (waiting) time of 74ms. ...
0
votes
1answer
53 views

Using APC with HHVM / Nginx

I've been using APC for object caching with a PHP / Apache setup for a year or so and it's been working. Recently I've been playing around with HHVM and Nginx and installed APC. It seems to be ...
0
votes
1answer
18 views

Wordpress images broken after upload on ubuntu 14.04

Ubuntu: 14.04 Wordpress: 3.8.2 I'm migrating an old website to a fresh setup using wordpress front-ended with nginx. It's mostly gone fine, including creating a custom theme, but when I upload ...
0
votes
1answer
37 views

Not everyone can write to new files made in /var/www

I followed the most upvoted tips in this thread. What's the best way of handling permissions for apache2's user www-data in /var/www? I just made a new file under one user1. However user2 ...
0
votes
3answers
38 views

Delete file as different user under PHP

I'm running PHP as user www-data and Nginx is running as user nginx. I need to delete files in /var/cache/nginx/, which is owned by user nginx and I want to do it using PHP. Is there a way to allow ...
0
votes
1answer
36 views

Nginx config: two applications under same domain [duplicate]

I have two applications: HTML+JS frontend and PHP backend. I would like to set Nginx up so that both are served from the same domain. Requests to the backend are made uing URLs starting with /api. My ...
0
votes
3answers
65 views

Apache and nginx on one server

I have a task to make server with apache and nginx. I use CentOS 6.5 with one public IP on eth0 and two internal on eth1(192.168.1.2) and eth2 (192.168.1.3). Apache must run two diffrents sites with ...
1
vote
1answer
84 views

Request timeout issue with nginx, unicorn and rails

I have an application in rails and it runs unicorn in production. There are some requests that take too long to process. I have configured the server to increase the timeout, so these request work ...
0
votes
1answer
48 views

Is it safe and efficient to install HHVM on top Apache server with nginx as reversed proxy?

I've been trying to optimize my VPS for WordPress performance, and today, I decided to take it to a new level: I'm thinking about installing HHVM. Server status: My server runs Apache, and I have ...
0
votes
1answer
37 views

Removing trailing slashes at an nginx subdirectory

I have a Symfony application at mysite.com and a WordPress application at mysite.com/blog: server { server_name mysite.com; root /var/www/mysite/symfony/web; location / { ...
0
votes
1answer
33 views

Architecting nginx for redundacy

This may be a stupid question, but after googling a while I can't find the answer or just don't know how to ask it. I have a web app running on a server named 'myserver1'. I've brought up 'myserver2' ...
2
votes
1answer
99 views

How can I get around using alias in nginx?

Due to a long-standing bug in nginx I was advised to switch my alias directive with a root directive. Unfortunately this now breaks my static files, which are located in a different directory to my ...
2
votes
1answer
31 views

Why doesn't nginx like my $args?

I have a WordPress site located at mysite.com/blog, the files of which are located in /var/www/mysite/wordpress. Why, when I visit mysite.com/blog/test, does my nested location block only get hit if I ...