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
2answers
82 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
68 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
54 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
101 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 ...
1
vote
0answers
43 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 ...
2
votes
1answer
170 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 ...
0
votes
0answers
70 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
22 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
77 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
1answer
55 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
44 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
23 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
42 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
83 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
85 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
33 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
60 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
33 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: ...
1
vote
2answers
66 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
116 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
vote
1answer
126 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
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
32 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
2answers
72 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
31 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
34 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
39 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
25 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
37 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
55 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
78 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
56 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
58 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
94 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
78 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
40 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
69 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
59 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
59 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 ...
2
votes
1answer
44 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
23 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
23 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
41 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
2answers
119 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
1answer
52 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
42 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 ...