Tagged Questions

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
1answer
34 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
25 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
38 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
19 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
33 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
91 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
45 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
46 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
17 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
36 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
63 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
79 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 ...
-1
votes
1answer
20 views

How to serve myfile.php with a different name on nginx with parameters? [closed]

I want to serve myfile.php with a different name. I need the visitor to see modifiedname.php instead in the browser url. There are variables passed in the url. The whole site must use clean ...
0
votes
1answer
44 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
33 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
32 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
95 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
30 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
29 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
34 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
37 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
84 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
78 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
37 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
64 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 ...
-1
votes
0answers
32 views

server_name security

Suppose my first nginx server sections looks like this: server { listen 80 default_server; return 403; } server { listen 80; server_name 172.16.0.1; ... } And server also has public ...
-1
votes
0answers
33 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
37 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
46 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
14 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
124 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
84 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
32 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
29 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
39 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
51 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
33 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
46 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
43 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 ...
0
votes
1answer
50 views

Nginx not processing proxy hide header and proxy ignore headers

I have trouble trying to make Nginx ignore and hide some headers from a proxied server. I want Nginx to hide and ignore "Cache Control" and "Server" headers but it didn't work, I don't know why. My ...
0
votes
2answers
81 views

403 Forbidden response on a ubuntu + nginx + passenger server

I'm trying to deploy my Rails app on my Digital Ocean VPS but I'm getting a 403 when I visit the IP adres. This is the output of my errorlog: [ 2014-11-02 04:18:12.0511 23504/7f64e6a36780 ...
0
votes
0answers
63 views

Creating /ping and /status pages on servers running PHP fastcgi (Not PHP FPM)

I have created /ping pages in the past for use with EC2 and ELB health checks with PHP FPM but not with Fastcgi. I have an autoscale setup which uses a semi pre-built Turnkey Linux PHP fcgi and nginx ...
0
votes
0answers
65 views

Reverse proxy for nodejs app on apache server with nginx as frontend

I know there are many such questions on stack exchange. But nothing could help to the scenario that I have. Here is my situation. I have a webserver running on apache2 listening to the port numbers ...
-3
votes
0answers
21 views

Server for downloading small pictures (thumbnails)? [duplicate]

I am looking for advice about specs of server for downloading pictures. Mostly this is small pictures about 5 kb, plus full size pictures about 50-100 kb. And average file size about 9kb. I have 25M ...
0
votes
1answer
53 views

Nginx: using X-Accel-Expires with Cache-Control

I'm using Nginx as a caching proxy server. I have problems with caching responses using both X-Accel-Expires and Cache-Control headers. My upstream returns some request body with headers to nginx: ...
0
votes
2answers
100 views

Tuning high-raffic nginx and wordpress server

I have been conducting load-tests (via blitz.io) as I attempt to tune server performance on a pool of servers running php 5.5, wordpress 3.9.1, and nginx 1.6.2. My confusion arises when I overload a ...
-1
votes
0answers
50 views

Ngnix error 403 on static files with Django

I'm setting up my webserver with Ubuntu 14.04, Django, Gunicorn and Nginx.The Gunicorn-Nginx combination works well, but when I try to serve static files, I keep getting a 403 error. I've googled the ...