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
0answers
5 views

web server on a proxmox container using dns server on proxmox

Some background: I've got a little problem here. I have Promox installed on my primary server on which I've configured manually my DNS server with BIND9 with the domain example.com and works fine ...
0
votes
0answers
6 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
0answers
14 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 ...
0
votes
0answers
21 views

nginx can't disable SSLv3

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
28 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
13 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 ...
0
votes
0answers
18 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 ...
0
votes
2answers
41 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 ...
0
votes
1answer
21 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: httx://origin1.com/m3ugen/segsrc/jet480.mp4 And this server responds with 302 and ...
-2
votes
1answer
27 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
0answers
19 views

/bin/sh: fork: Cannot allocate memory

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 ...
-1
votes
0answers
12 views

Why block wget Download Agents [migrated]

I noticed that some nginx configurations block download agents using wget like this: if ($http_user_agent ~* LWP::Simple|wget) { return 403; } Why block wget? If I use the above code in my ...
0
votes
1answer
15 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: ...
0
votes
2answers
26 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 ...
0
votes
2answers
27 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 ...
-1
votes
0answers
16 views

nginx setup with versioned application

I have tried many many configurations to get nginx to work properly but all the time i just cant get it. this is the web server structure root admin v1 assets css vt.css ...
0
votes
1answer
45 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
0answers
16 views

Unable to start unicorn as a service

I'm on DigitalOcean VPS and used the 1-Click Ruby on Rails on Ubuntu 14.04 Image and this guide to setup my rails app: ...
0
votes
0answers
36 views

nginx 403 Forbidden on CentOS (Vagrant) [migrated]

What I have checked so far: Logs - they are empty, booted a new VM. Permissions: $ namei -l /var/www/awesome/ f: /var/www/awesome/ dr-xr-xr-x root root / drwxr-xr-x root ...
-1
votes
0answers
22 views

How do you troubleshoot Load Balancing performance?

What tools and techniques would you use for analyzing and tuning the performance of a load balancer and the servers behind it? Background I have an ec2 m1.medium ubuntu server running a web-service. ...
0
votes
1answer
45 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 ...
1
vote
1answer
22 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
26 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
27 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
0answers
14 views

Debugging a Node.js EMFILE Error

I have a Node.js API that gets heavy traffic. In my logs, I regularly see the following error: events.js:71 throw arguments[1]; // Unhandled 'error' event ^ Error: accept ...
0
votes
2answers
17 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 ...
3
votes
0answers
39 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 ...
0
votes
0answers
26 views

502 http code when reloading nginx upstream servers

I'm having trouble load testing a web application running in docker. I'm running 2 containers of the same application, In hopes that when I bring one down the traffice will relay to the next server. ...
0
votes
1answer
23 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
49 views

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

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
56 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
45 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% ...
0
votes
2answers
35 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
votes
2answers
60 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
0answers
36 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 ...
1
vote
1answer
48 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 ...
1
vote
1answer
24 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
votes
0answers
11 views

Fail2Ban Nginx-Noscript filter for Wordpress and Joomla sites

Below is my No Script Nginx filter used in fail2ban settings. My questions is when having a site that runs on Joomla or Wordpress, is it really wise to block "php" from executing? Shouldnt that block ...
0
votes
0answers
12 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 ...
0
votes
1answer
21 views

nginx server, multiple users editing their own files via SFTP

I'd like to have a Debian server set up so that different users have their own domains that only they can edit, e.g.: /home/ + /bob/www/ + oldsocks.com/ + nosepickers.org/ + /joe/www/ + ...
1
vote
1answer
35 views

Varnish 4 Working Config (optimized) for Wordpress (default.vcl)

I have successfully set up varnish 4 on my nginx 1.6.2 it is working but as per the test on http://www.isvarnishworking.com/ it shows Varnish appears to be responding at that url, but the ...
0
votes
0answers
26 views

Single http/https server block in nginx with upstream https and upstream http

Our current nginx setup handles http/https with a solution similar to the one specified in this answer nginx.conf http { upstream backend { server backend.com } upstream ...
0
votes
1answer
31 views

nginx suddenly trying to bind on the wrong port

I'm running on a server that has Apache on port 80. I also have nginx installed, and just one conf file in /etc/nginx/sites-enabled which has listen 8888; specified. This works perfectly fine. Now, I ...
0
votes
2answers
59 views

How to tune a web server and prep it for lots simultaneous visitors?

I have another related question but I'm deviating from it since I'm changing my server to use nginx instead of Apache. Related: Server problems, running out of RAM, really high load average I'm ...
0
votes
0answers
12 views

EC2 Bad Gateway with torquebox and nginx

I set up an EC2 instance with torquebox and nginx. Torquebox starts without any errors, but I cannot access it at port 8080. Not even if I add a VPC rule to open that port. I get Gateway timed out if ...
-1
votes
2answers
26 views

How to point CNAME to Digital Ocean droplet

Having an issue trying to point a CNAME to my Digital Ocean droplet I created a CNAME on DNSimple and pointed it to the IP address of my Digital Ocean droplet: ironman4x4.adamgeorge.com I've tested ...
-1
votes
0answers
23 views

Nginx. How to cache phpsessid? [closed]

Please, prompt me how to cache pages with phpsessid? Website set many different cookies. I can manage the page cache by them. However site send phpsessid for all user, even for user who not signed in. ...
-2
votes
2answers
26 views

Installing ngx_pagespeed with nginx 1.6.2 (Backport) on debian 7 (wheezy)

I am struggling to install nginx 1.6.2 with module ngx_pagespeed 1.9.32.1-beta Can anyone please help me to install this on my debian 7. Any working tutorial i have tried ...
1
vote
1answer
28 views

Nginx: How to limit request rate based on user agent

Trying to get the following behavior working in nginx A default rate limit of 1r/s for each ip when using a browser. A rate limit of 10r/s for bing and google spiders. Reject bad bots. Unfortunately ...
0
votes
0answers
57 views

Nginx cannot connect to .sock file

2014/10/25 03:42:06 [error] 2324#0: *708 connect() to unix:/tmp/steam.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: xx.xx.x.xxx, server: steam.uwot.me$ I ...