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
39 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
44 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
58 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
109 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
vote
0answers
91 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
45 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
27 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
96 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
64 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
1answer
44 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
53 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
39 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
69 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
41 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
43 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
114 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
34 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
57 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
90 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
30 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
57 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
45 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
49 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
84 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
113 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
72 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
55 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
40 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
117 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
36 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 ...
0
votes
0answers
53 views

Do I have to somehow enable AES-NI on Nginx?

I've got CPU With AES-NI, I would like to use this function with nginx. ssl_engine aesni; - this parameter was used before openssl 1.0.0, but now, openssl is bundled with aesni support. And this ...
0
votes
1answer
51 views

nginx reverse proxy fail for remote server

This is my nginx.conf on cs2: user nginx; worker_processes 1; error_log /var/log/nginx/error.log; error_log /var/log/nginx/error.log notice; error_log /var/log/nginx/error.log info; pid ...
0
votes
1answer
46 views

How to run WSGI-file with Nginx

I have a Python-application with a Bottle-webserver running with port 8080. Now i will connect Nginx to the Bottle-webserver with a wsgi-file. Now, i have a wsgi-file, but how can i execute this with ...
0
votes
1answer
261 views

Nginx reverse proxy with multiple ssl domain

I have problem with Nginx when I need configure it as reverse proxy for multiple locations based on source server, but on one port. For example I have these servers: server1.domain.com ...
0
votes
0answers
183 views

Wordpress behind nginx reverse proxy doesnt work in https

I'm trying to run wordpress on a docker based cloud. The setup is: There is a server running a mysql array, which serves a container with Wordpress Running on Nginx. The setup is copied from this ...
0
votes
1answer
39 views

nginx stopped listening after restarting

I was able to make Nginx run on my Debian 7.7 system using all the default configuration (I didn't touch anything after the installation). I was able to access it by accessing my server's IP. When I ...
0
votes
1answer
184 views

How to set Nginx ignore Pragma: no-cache

I'm setting up a Nginx server for a cache proxy server. I've noticed that cache not working when this header is in request: Pragma: no-cache Without this header, cache working ok. Can I make ...
0
votes
0answers
70 views

nginx and php-fpm permission

I have a problem with nginx / php-fpm permissions. I run a website in /var/www/clients/client1/web1/web, the owner:group of that folder and subfolders is web1:client1. When I try to create or upload ...
0
votes
1answer
57 views

Nginx map cache rules does not work

I have created map rules for Nginx for avoid cache. However it does not works nocache_map.conf (included in http section. map $http_x_requested_with $nocache { default 0; ...
0
votes
1answer
82 views

Nginx configuration doesn't work with wordpress in subdirectory

I have a nginx installation which I need for hosting web sites in development so that other people can test them out. Right now I've set up a virtual host for a single sub-domain and in that ...
0
votes
0answers
15 views

Nginx proxy to node.js has permissions error on CentOS 7 [duplicate]

I'm running on nginx and node.js both on single server. Recently, my server IP has changed and after than nginx proxy does not work(nginx to node.js) Here is my nginx configure nginx.conf user ...
0
votes
2answers
206 views

Docker and nginx upstream zero downtime [duplicate]

I'm Having some wierd issues trying to automate the deployment of docker containers using nginx's upstream directive. For some reason when I manually do the following it works but when I try to ...
0
votes
1answer
298 views

Cannot checkout session because a spawning error occurred

I'm trying to get my Rails app working on my VPS. I've deployed my project, created the database and migrated it. But when I visit the page I get a message: We're sorry, but something went wrong. ...
-1
votes
1answer
35 views

How can I separate access logs from requests of two different domains of the same server?

My nginx configuration looks like this: server { listen 80; server_name domain1.com domain2.com; access_log /var/log/myapp/nginx/access.log; ... } Currently requests from both domains ...
0
votes
1answer
45 views

Limit Authentication to specific username in Nginx

Is it possible to limit authentication in Nginx to a specific username? I.e I have multiple subdomains and want to limit that subdomain to ONLY 1 user. All the users are in 1 .htpassword file. In ...
0
votes
1answer
52 views

Nginx does not redirect with rewrite

I have a nginx + php on windows server configured. I work on an MVC framework with url rewriting, the problem is that my server does not resolve the addresses. Quite simply, this is my code: server { ...
0
votes
1answer
148 views

PHP-FPM does not start on server boot (debian)

I installed nginx and php-fpm on my server. When I run "service php5-fpm status" I only get status: Unknown job: php5-fpm The only way to start FPM for me is to run php5-fpm -D But it won't start ...
0
votes
0answers
49 views

nginx load balance not increasing request per minute

I have a flask app deployed on a gunicorn server and another server with nginx as reverse proxy. The issue is when I add one or more servers running gunicorn and use nginx to load balance, the ...
0
votes
1answer
95 views

nginx reverse proxy folder

I'm trying to access a server behind another with a reverse proxy. The "main" server is behind mydomain.com and I would like to access the second one by using mydomain.com/test. For the moment just ...
0
votes
2answers
86 views

docker containers in a CI pipeline process

I am trying to integrate docker containers in my simple CI pipeline for deploying a webapp. I have 3 containers with nginx, tomcat and mysql. I understood the basics of how to create these ...