Nginx ("engine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

learn more… | top users | synonyms

1
vote
0answers
1k 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
82 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
4k 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
661 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 ...
1
vote
1answer
421 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
507 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
2answers
672 views

Docker and nginx upstream zero downtime

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 ...
1
vote
1answer
6k 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. We'...
0
votes
1answer
69 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
689 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
455 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
993 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 ...
1
vote
1answer
4k 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
186 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 ...
3
votes
1answer
5k 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
4k 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 agents/...
0
votes
1answer
971 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
565 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 ...
2
votes
0answers
425 views

Access website hosted on same server as VPN via the VPN

I have just finished setting up a OpenVPN server running on Ubuntu 12.04 and I have been able to connect to it from my own computer (the client). I am able to set up the VPN server to route ALL ...
5
votes
1answer
6k views

Cannot connect to PostgreSQL unix domain socket

I'm trying to connect to PostgreSQL Unix domain socket from a PHP web application. Relevant system components: CentOS 7 x64 (SELinux enforced) postgresql93 9.3.5-2PGDG.rhel7 nginx 1.6.2-1.el7.ngx ...
2
votes
0answers
489 views

nginx proxy with CAS

I have a JS application that issues REST calls from the client browser to a data source that sits behind nginx. We need to implement CAS authentication for the application to manage access. However ...
0
votes
1answer
785 views

nginx loop redirect on varnish ssl implementation

I am trying to implement varnish on my ssl enalbled website. But i am getting loop redirect. This is how i am going varnish is listening on port 80; DAEMON_OPTS="-a :80 \ -T localhost:6082 ...
2
votes
1answer
1k views

nginx can't disable SSLv3 [duplicate]

I'm having an issue trying to disable SSLv3 on my nginx installation. HTTPS works fine, but I just can't seem to disable SSLv3 and it makes my site vulnerable to the POODLE attack. Also, for some ...
0
votes
1answer
830 views

How to configure a server with nginx on for load balancing only?

There are many tutorials out there explaining how to set up nginx 1.4.6 as a load balancer but I did not get beyond receiving a 502 Bad Gateway or 403 Forbidden configuring it on an Ubuntu 14.04 ...
0
votes
1answer
109 views

Nginx Rewrite - purpose of specifying replacement url when using break flag

This question is an extension of rewrite break vs last. From what I understand the break statement will stop processing the current set of rewrite statements and instead of triggering a new location ...
1
vote
1answer
393 views

nginx - proxy pass without redirection

I have a website in AngularJS. Site uses hashbang mode and I am currently having a situation with prerendering. My website has an URL like this: http://www.watchawearin.com/#!/item/511 and I have a ...
2
votes
3answers
2k views

Nginx sslv3 poodle disable

I tried setup SSL cert without SSLv3 in my nginx, but SSL Labs say, my server have SSLv3 how to disable it. My config: add_header Strict-Transport-Security max-age=31536000; add_header X-...
1
vote
1answer
5k views

Nginx 302 redirect - resolve internally

Currently, we have a server that implements a 302 redirect to server some content. For example, the user request: http://origin1.example.com/m3ugen/segsrc/jet480.mp4 And this server responds with ...
-2
votes
1answer
98 views

redirect non-www to www and http to https at the same time

I've tried to achieve the following redirects http://domain.com -> https://www.domain.com http://www.domain.com -> https://www.domain.com https://domain.com -> https://www.domain.com ...
-1
votes
1answer
10k views

/bin/sh: fork: Cannot allocate memory [closed]

In my web server running with following architecture Centos 6.5 Plesk 12 Nginx 1.6 (As a reverse proxy) Apache 2.2 MySQL 5.5 PHP 5.5 Openfire 1.9.4 Pagespeed web server can have max 500 ...
0
votes
1answer
609 views

Nginx 301 rewrites using regex

I moved to a new software and now need to catch the old urls and rewrite them to the new ones. Here is an example: Old url: http://www.religiousforums.com/forum/neopagan-revival-religions-dir/19088-...
2
votes
2answers
1k views

Nginx server block not working

Disclaimer: Just to clarify, I'm completely new to Linux, but I've configured everything via google searches and personal research. I've got a Debian Wheezy server with LEMP stack that I intend to ...
5
votes
2answers
10k views

nginx uLimit 'worker_connections exceed open file resource limit: 1024'

I keep getting this error in nginx/error.log and its driving me nuts: 8096 worker_connections exceed open file resource limit: 1024 I've tried everything I can think of and cant figure out what is ...
2
votes
1answer
1k views

302 redirect loop with nginx and Wordpress

I've been searching a couple of hours in Serverfault trying to solve this problem but I can not find a solution. What happens is: I am having a 302 redirect loop using wget in my site, but not using ...
0
votes
2answers
277 views

nginx : stop error log from search engine bots

I have a centos 7 server with nginx 1.6.2 and I would like to stop error log when a bot from a search engine make a 404 error in my website. This, in order to have a clean error log, with only "true ...
2
votes
1answer
67 views

nginx matching similar, but wrong location

I have a few exposed JSON scripts / programs for quick information gathering from a server. I use nginx to expose those as just raw urls. So given the following locations: location ~ ^/api/status/? { ...
0
votes
1answer
83 views

Negative effects of setting nginx workers too high

I've seen numerous posts advising how to set nginx's worker_processes, but very few detailing what happens when this is set too high. I'm about to run some benchmarks, but I'd appreciate advice on ...
0
votes
1answer
130 views

Cookieless folders with NGINX

I want to force all pages on my WordPress setup to not set any cookies, except for the file and folder: wp-login.php and /wp-admin # disable cookies globally fastcgi_hide_header Set-Cookie; if ($...
0
votes
2answers
1k views

SSL/HTTPS issue (no padlock icon) on Safari when using ngixn+unicorn

I have an application that runs on nginx+unicorn. This is how my server block looks like upstream rtdev{ # fail_timeout=0 means we always retry an upstream even if it failed # to return a good HTTP ...
6
votes
2answers
240 views

Odd performance fluctation with php-fpm and nginx

I'm running a load test against a web service. It's a php application running on php-fpm and nginx, with fastcgi. There is a MySQL backend being used for small reads only. Invariably, I'm seeing a ...
1
vote
1answer
1k views

uWSGI cannot load virtualenv

I'm setting up a Python app using nginx and uWSGI. My dependencies are in a virtualenv. If I activate the virtualenv manually, everything works by running this command: uwsgi --ini uwsgi.ini But if ...
-2
votes
1answer
129 views

What is serving my nginx on the docker? [closed]

I got the cheapest VPS on Digital Ocean. I followed this guide, everything works like a charm.. But now I want to serve multiple nameservers on the same ip, so I need to figure it out how this is ...
1
vote
1answer
446 views

nginx wildcard server_name for subdomain gives index.php 404 error

I've been using this server configuration for wordpress which works great on my local machine: server { server_name example.example root /home/user/sites/example/example/html; index ...
0
votes
0answers
450 views

nginx operation not permitted

After last reload nginx i have error nginx: [emerg] chown("/gypost/uploads/00", 1001) failed (1: Operation not permitted) 192.168.0.91:/gypost/mail/u 247G 17G 218G 7% /...
4
votes
2answers
3k views

Nginx http prefixes in upstream server

I'm trying to use nginx to proxy pass to two docker containers. Here is my upstream conf file: upstream api_servers { server http://192.168.49.4:49155; server http://192.168.49.4:49156; } This ...
1
vote
2answers
376 views

nginx load balancing images not loading

Below is my load balancing configuration.my other servers contain nginx unicorn based application setup. When i tried above configuration the images are not loading. I have total three servers 1 ...
2
votes
1answer
232 views

Strange CPU Loading peaks on web server

I have strange, very strange peaks of CPU loading on my website. normal loading about 2-3, when i have this peaks it is about 100-150 peaks may be in any time. not depends my normal loading profile.(...
1
vote
1answer
192 views

Why deployment sh script don't fails on failed nginx reloading?

I have sh script that restart nginx like the following: #!/bin/sh -e set -e error_exit() { d=$(date '+%D %T :: ') echo "$d Error: $*" >&2 exit 1 } if ! sudo service nginx ...
3
votes
1answer
584 views

nginx: redirecting to SSL based on the original request URL (not $server_name) [duplicate]

I have an nginx config that is similar to this: server { server_name my-english-site.com my-french-site.com; listen 0.0.0.0:80; rewrite ^ https://$server_name$request_uri? permanent; } ...
1
vote
0answers
200 views

What does Nginx Proxy Filter in Fail2ban really do?

What does Nginx Proxy Filter in Fail2ban really do? I am currently setting up Fail2Ban for Nginx. Almost everywhere I've read, they all have included a setting for [nginx-proxy] proxy filter. From ...