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
13 views

Nginx as s3 proxy with private buckets

I'm trying to set up Nginx as a proxy for a static html/js webapp hosted on S3. I read a lots of tutorials and posts and I could make it work if my bucket is set as public. The reason I need Nginx as ...
1
vote
0answers
31 views

Nginx, wrong site served

I have my site on the IP 1.2.3.4 On my domain provider I have both onesite.com and anothersite.com pointing to 1.2.3.4 With Nginx, I have two sites configured: server { listen 1.2.3.4:80; ...
0
votes
0answers
16 views

How to rewrite this url in Nginx?

i would like to know how we can rewrite all outgoing url wich look like this ...
-4
votes
0answers
47 views

How to fix LogJam vulnerability in Nginx

Could you please post a detailed anser on how to fix LogJam vulnerability in Nginx? A checker can be found here: https://weakdh.org/sysadmin.html Thank you.
-1
votes
0answers
14 views

nginx: [emerg] “location” directive is not allowed here

My web panel's pages require a .htaccess file and since I'm now using Nginx, I have to convert the .htaccess rewrite to work for Nginx. I used an online converter http://winginx.com/en/htaccess and it ...
0
votes
1answer
17 views

Nginx rewrite, removing image dimensions from filename

For instance, if a request is made to an image like so... /static/images/00f37ac6291bb6e8_150.jpeg But the 150px thumbnail version hasn't been generated yet and returns a 404, I would like to have ...
0
votes
1answer
18 views

NGINX: getting subdirectories to work

I recently changed to NGINX 1.7.12 from Apache 2.4 and I am coming to love its speed and versatility. Unfortunately, I still haven’t been able to get the SERVER block working correctly. I am using ...
1
vote
0answers
15 views

Scaling AngularJS + NodeJS app on Linode

I have developed an application using AngularJS + NodeJS (together with MariaDB, Redis and Socket.io for realtime notifications) and I have deployed it on a single Linode node. Now I would like to ...
0
votes
1answer
32 views

How to check if request body is empty?

I tried to do it like that if ($request_uri ~ ^/page/submit$ ) { set $test A; } if ($request_body = '') { set $test B; } if ($test = AB) ...
-1
votes
1answer
21 views

NGINX + memcached, location not found

I want to configure nginx to read directly from memcached by key "match_1" for example. This is my server configuration server { listen 8080; server_name localhost; location /get_match ...
0
votes
2answers
26 views

Docker - scaling nginx and php-fpm seperately

I've been playing around with docker and docker-compose and have a question. Currently my docker-compose.yml looks like this: app: image: myname/php-app volumes: - /var/www ...
5
votes
0answers
56 views

Multi-datacenter Ansible load balancer template

I am migrating the management of an existing multi-datacenter setup to Ansible, but I am not sure what is the best way to model it, as I am new to it. I have three data centers D1, D2 and D3. In ...
-2
votes
1answer
48 views

Public Domain Name to Intranet

let's say 1) I have a server running in a private intranet. It uses tomcat to serve a webapp at privateserverip:8080/appname 2) I have a myapp.local domain and when I enter it toplevel with ...
1
vote
1answer
26 views

Nginx: 'no memory in cache keys zone', despite plenty of space

I'm repeatedly seeing this error in my nginx logs: [crit] 30165#0: ngx_slab_alloc() failed: no memory in cache keys zone "api-data-cache" Looking at the directory used for the cache key zone, I can ...
0
votes
1answer
20 views

Nginx and php-fpm communication issue

I have 2 nginx server and 4 dedicated php-fpm servers configured in upstream for executing PHP with 2 instances each means in upstream i have given 8 instances with ports 9000 & 9001 for each ...
-1
votes
0answers
26 views

How do I visually analyze/check DDOS attacks? [on hold]

How do I tell that a DDOS attack is happening on my servers? Is there a tool which provides visual cues to figure out what is happening or which IP is causing trouble, which IP to block. A simple ...
0
votes
1answer
57 views

Nginx Proxy not working

I'm trying to redirect all traffic from www.impactteachers.com/teach to application.impactteachers/teach. This way, our application form is also accessible from the following URL: ...
0
votes
0answers
28 views

Nginx not enabling cache of images (failing for Wordpress and Laravel) on Ubuntu

I have the following /etc/nginx/sites-available/livingtrustdiy.com: server { listen 80; server_name livingtrustdiy.com; return 301 https://livingtrustdiy.com$request_uri; } server { ...
0
votes
0answers
24 views

PHP-FPM output errors to be handled by php application with nginx

I'm having difficulty setting up a docker container with phpfpm to defer error handling to my php application. Any fatal exceptions are being processed by the xdebug stack trace ...
0
votes
0answers
39 views

Welcome to Nginx! Instead of website

I hope this is the right place to post this. I have a CentOS 6 VPS that hosts multiple sites. There are three existing sites that are currently running on it just fine, but I am now trying to add a ...
0
votes
1answer
26 views

nginx log request before processing

I have nginx server serving a lot of big files. I can see plenty of connections on the server. As it iw know, file to the accesslog is written after the request is completed. Is there any way to log ...
0
votes
1answer
19 views

Connect to websocket server without specifying port

I'm trying to create a secure node.js server without a websocket server on the same port. The port is 8080. I can access the url in the browser and I can connect to websockets when I specify the ...
0
votes
0answers
15 views

Nginx autoindex - different location & URI

I'm having trouble with nginx, autoindex and location/URL. Here is my configuration : server { listen 443 ssl; server_name test; # log access_log ...
0
votes
0answers
17 views

Random Post on 404 url nginx

I'm having a funny issue on my Wordpress lemp instalation. Here's the thing: Lets suppose you have a url of example.com/category-of-shoes which leads to a post regarding such matter. When I type a ...
0
votes
0answers
23 views

Requests to nginx+passenger timing out without error code

We are beta-ing a new Bridge Game, built on rails + html5 + javascript. After initial deployment a couple of weeks ago, and subsequent application code tweaks, we are now in a position where the app ...
0
votes
1answer
22 views

Pound SSL Wrapper Wordpress Login Issue

my Setup is like this Visitor -> Pound -> Varnish -> nginx My Wordpress site is looking fine from the front end (with https), but as soon i try to login to the backend this error comes up "You do ...
-1
votes
1answer
33 views

How to install phpmyadmin in centOS

I use a vps and it has centOS 6.5 . I installed Nginx and php and mySql clearly. But when I tried to install phpMyAdmin by these steps , in Step Three when I enter this code: sudo yum install ...
0
votes
0answers
16 views

NGINX $http_user_agent cause 404 response

The following conditional when matching a user-agent with substring 'MSIE 8' causes a 404 redirect? #Begin IE8 Hack if ($http_user_agent ~* 'MSIE 8') { #set $hack "I"; } #End IE8 Hack ...
-1
votes
1answer
41 views

Too large 127.0.0.1 connections with nginx - apache2 [duplicate]

I use nginx as proxy-server apache2 and I have a problem with netstat output: $ netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n 5 109.195.36.169 6 109.195.33.205 8 ...
2
votes
0answers
26 views

Nginx setup on aws - redirecting to port 81, cannot reverse

I've tried to setup nginx on my free AWS instance so that it can host multiple domains on single ip address (not sure if it can be managed, but I'm trying to dig in). In that process I created ...
0
votes
1answer
32 views

php5-fpm with nginx Session Not Maintained / Dropped Randomly

When running nginx with php5-fpm, session variables randomly lose their values. Since my session variables become empty, my script asks for the user to login again. However, what's weird is that the ...
0
votes
0answers
16 views

nginx 404 and 403 in my webroot directory [closed]

I have setup a webserver in a virtual machine on my laptop and I can't get nginx to work. My home DNS is put to example.home for easy access. Here are the symptoms: When I try to access ...
0
votes
1answer
23 views

what's the difference between proxy_buffer and proxy_cache module in nginx configuration

I know a little about proxy_cache that is used to make cache for static file requested from client. But proxy_buffer really confused me. Does it buffer for proxied backend servers? And I also see ...
-1
votes
0answers
15 views

nginx don't route static files

I'm trying to configure a typo3 instance with nginx, but i have problem with the extension realurl. Realurl is an extension with uses routes to make easy reading url. instead ...
1
vote
0answers
16 views

Nginx proxy to tomcat7 webapp secured with shiro

So I have a Java (Spring 4 + Shiro) web app running in Tomcat7 on dedicated server. I'm trying to configure Nginx so that my application would be reachable by simply going to www.example.com instead ...
0
votes
0answers
10 views

Using Node in Conjunction with Nginx for a Secure Web App [closed]

Background I'm trying to set up a as secure as possible website with Node as a backbone instead of the familiar PHP. The Nginx server utilizes TLS 1.2 and serves the client side web application ...
0
votes
2answers
45 views

Rate limit misconfigured bots

We have an Nginx / PHP-FPM behind a load balancer which periodically gets scraped. Many of the scrapers hit our application's 404 page quiet hard. Is there a way in Nginx, possibly with the ...
0
votes
2answers
85 views

Nginx add trailing slash without rewrite

I am trying to create redirect to add trailing slash, location / { if($request_uri ~ ^([^.]*[^/])$){ return 301 https://$host$request_uri/; } } I have no idea how to do ...
0
votes
0answers
10 views

Nginx How to set up Basic Auth for a subdirectory and its php files [duplicate]

I would like to restrict the access to a subdirectory and the access to the php files it includes. My problem is that I can't figure out if it is possible to have this running without having to ...
1
vote
0answers
65 views
+100

When do I get Nginx Cache Expired tag?

What my webserver intends to do is when it gets a request to a certain url, it sends an API call to a third party service. To prevent exceeding the API limit, I cache the result for an hour for the ...
0
votes
0answers
16 views

Multiple document root with nginx

I need to configure nginx so it serves a different software from a different document root on a domain's subdirectory as follows: http://example.com/... - main site from /var/www/main ...
0
votes
0answers
37 views

Nginx + Apache + PHP-FPM, VirtualDocumentRoot not working

I'm having a webserver with Nginx (1.7.10) is front of Apache (2.4.12), everything is fine until I used VirtualDocumentRoot for mass virtual hosting. I got this error in the log: [Fri May 15 ...
0
votes
2answers
65 views

SSL works in Chromium but not Firefox (nginx)

I'm using client-side SSL certificates to access my web server. Suddenly stopped working after several months with no changes to my nginx config, but only in Firefox. Still works fine in Chromium. ...
1
vote
0answers
26 views

How to override “Content-Type” header with PHP script on Nginx

I have some php script which returns jpeg image(1x1 pixel) with content type "image/jpeg": // return image $image_name = 'img/pixel.jpg'; $image = fopen($image_name, 'rb'); header('Content-Length: ' ...
0
votes
1answer
17 views

Meaning of ssl_ciphers line on nginx.conf

What is the meaning of the following line from an nginx.conf file? ssl_ciphers HIGH:!aNULL:!MD5; I know the ssl cipher is specifying which algorithm to use to secure the server communication and ...
1
vote
1answer
17 views

Error with Python2 as a https client with an nginx server and SSL certificate chaining

I am having trouble getting Nginx 1.8 working with my certificates so that I can use a python2 based https client. (requests.py, URLLib) I've tried using Comodo and GlobalTrust wildcard certificates ...
-2
votes
0answers
21 views

nginx dns resolve on host header name [closed]

I need to do DNS resolution on incoming HostHeader names to get an IP address and then use an that IP address in a regexp if command to make decisions within a location or server block. Is that ...
1
vote
0answers
14 views

How to correctly secure Reverse Proxy communication with actual server in LAN

I have Nginx acting as gateway and reverse proxy for requests based on host name. However, the communication with the actual server in lan isn't secured. Does the connection remain encrypted with ...
-5
votes
0answers
30 views

Block All Connections Not From CloudFlare [duplicate]

I have a simple request. I would like to only allow traffic to my server from cloudflare. My website is being pounded by attacks, and there is no legit reason someone should be making a connection to ...
-2
votes
1answer
10 views

php-fastcgi.socket does not exist

I am following this tutorial, and have gotten thus far: I have installed the following packages using apt-get install nginx php5-cli php5-cgi spawn-fcgi psmisc. Despite installing PHP FastCGI, I do ...