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

Getting a 502 Bad gateway error with nginx on ubuntu

I am recieving a 502 Bad gateway error with this config file for my ubuntu nginx server, can anyone see any faults with this? Quite new to Linux so any advise would be helpful. I am trying to get up ...
0
votes
0answers
13 views

Arguments not transfered when nginx rewrite the url to https

I have nginx frontend and tomcat backend. Now I need to encryt the specific url end with .do from client to nginx server using ssl. And js/css could be requsted with http. In order to avoid mixed ...
0
votes
0answers
20 views

PHP in NGINX directory alias not working

I have a fresh install of Ubuntu 14.04 server. I have installed nginx, php, etc.... server { listen 80; listen [::]:80; server_name testone.local; root /var/www/htmlone; index ...
0
votes
1answer
33 views

How to share a Single Domain SSL certificate across 2 ip addresses

I have a wordpress website example.com. I have a single domain SSL certificate that can be used across multiple servers. When a user visits example.com, or any subfolder expect forum , they access ...
1
vote
1answer
15 views

WordPress in SubDirectory with Nginx

No matter what I seem to do, my WordPress site works great, including all permalinks, but I can not access the wp-admin area. Whenever I try to do so, I get a 404 error. I have WordPress installed ...
2
votes
0answers
39 views

How to find size of atomic write for nginx access log buffer?

This link says: The buffer size must not exceed the size of an atomic write to a disk file. For FreeBSD this size is unlimited. How can I find size of atomic write on my server? Is there any ...
-3
votes
0answers
26 views

Multiple web apps without domain names on Nginx server [on hold]

I want to create on my nginx server multiple web applications with laravel, but none of them will need a domain name. I want to create a config file to seperate my apps like: http://...ip.../app1 ...
-6
votes
0answers
25 views

HTTP resources on https page - Nginx

I configured https scheme for my domin.com but all css/js coming through some other sub domains subdomain.domain.com on http schems. My page does not render and css/js from http protocol on https ...
-4
votes
2answers
46 views

How to configure nginx to send traffic to internal ip based on hostname? [on hold]

I'm planning on setting up a VPS "service" just for a couple of my friends to use, but I only have one IP. I'd like to set up nginx so it works like this: domain1 . com -> 192.168.1.1 domain2 . com ...
-2
votes
0answers
16 views

How to Purge Whole Domain Cache Via Curl Command? [on hold]

I am using Varnish Cache on Nginx. I want to create a php file that can purge whole domain's cache if I run it. How can I achieve that ? Thank you.
-1
votes
0answers
20 views

change root nginx if else condition [on hold]

server { listen 80; server_name test.test.com; if ($allow = no) { return 200 "The request was $uri"; } location / { root /root/serve/angel/; index index.html; } } ...
-3
votes
0answers
22 views

What situations cause nginx to mark something as 502 bad gateway [on hold]

I have an issue where something is causing my nginx server to response with bad gateway. There are some errors, but not for every request, only certain ones. How many bad requests or what other ...
-1
votes
0answers
20 views

Nginx www server and Tornado Websocket server [on hold]

I've got Nginx www server and Tornado Websocket server on my Raspberry Pi. The problem is that, data from Tornado server are visible on my site only from local network. Nginx configuration: server{ ...
0
votes
0answers
31 views

Auto scale RTMP live streams (NGINX-RTMP)

I am using Nginx-rtmp-module for live streaming. It works perfectly for 40-50 cameras on a single machine (AWS EC2 C3-large). But if i have more than 100 streams, how can I scale my servers to meet ...
0
votes
2answers
44 views

Nginx configuration for caching static files

I have some problem on configuring Nginx to correctly serve an AngularJS application. The server is configured as follow: www.example.com we have the landing page of the application ...
0
votes
0answers
11 views

Using Nginx + Apache with Ghost

Is it advisable to use NGINX as a reverse proxy for apache to run a ghost blog? Would there by any performance hit in doing so? Is it even possible to do so with ghost? If not what would be the best ...
0
votes
0answers
24 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 ...
2
votes
0answers
36 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; ...
-1
votes
0answers
25 views

How to rewrite this url in Nginx? [on hold]

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

How to fix LogJam vulnerability in Nginx [on hold]

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
1answer
24 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
28 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
25 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
39 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
44 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
22 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
35 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
1answer
103 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
30 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
3answers
31 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
29 views

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

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
59 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
31 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
33 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
45 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
28 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
21 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
18 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
24 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
25 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
34 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
19 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
28 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
42 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
1answer
24 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
16 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 ...