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

nginx on fedora fastcgi not working

I'm running nginx on Fedora Server 22 and fastcgi scripts are not working. If I'm viewing a php site from my server, for example http://minefight.org/phpinfo.php it's displayed correctly. But with ...
-1
votes
0answers
6 views

How does no trailing slash redirect work in nginx?

I have the following setup in place: nginx, port 80 (hosting provider) -> nginx, port 8000 (me) When I enter: http://example.com/admin I get redirected to: http://example.com:8000/admin/ ...
0
votes
0answers
7 views

Which Variable Stores Nginx Source Port Toward Upstream

I'd like to log the source port, i.e. Nginx' own source port (as client) used to communicate with upstream. Could not find it in the documentation, but would make send to have it.
0
votes
0answers
3 views

Accessing an nginx webserver on CentOS7 VM hosted on Virtualbox in Windows 10 [migrated]

Setup: A single CentOS 7.1 VM running on a Windows 10 Pro server (preview version 10074), inside Virtualbox 5 beta 4 (also tested on 4.3.8). Using nginx/1.9.0, to serve static HTML files. The VM is ...
0
votes
0answers
4 views

Codeigniter in subdirectory on Nginx 404

I'm trying to setup Codeigniter in a subdirectory of my domain. Currently i only get an 404 From codeigniter on the index page, as soon as a want to go to /welcome/index i get a 404 from nginx. My ...
1
vote
0answers
8 views

WordPress Nginx Browser Cache Expires on Extentionless URLs

Struggling a bit with the following. Adding expires for JS and CSS, plus other static files is easy: # Directives to send expires headers. location ~* \.(?:css|js)$ { expires 28d; ...
0
votes
0answers
17 views

nginx dynamic tcp proxy configuration

We need to dynamically configure nginx TCP proxy. For example, Setup tcp proxy on some random port, i.e. a1.mydomain.com:12345 -> somehost:someport Later on: Turn off tcp proxy ...
0
votes
0answers
22 views

Nginx - reverse proxy pass packets to localhost

Say for example I have nginx proxy setup like such: server { listen 443 ssl; server_name foo.com; #SSL and logging settings omitted location /datapath1 { ...
1
vote
0answers
7 views

No Module Named OS - NGINX/UWSGI/NGINX

Have looked at many related posts and most point to an outdated version of python that is cause the 'no module named os' during the uwsgi boot. I've run print sys.version_info And it shows python ...
0
votes
0answers
7 views

Passenger+Nginx instances fail to keep rails' uniqueness true

I have multiple Nginx+Passenger instances conf here and many models (more than 40) that has validations on uniqueness. e.g. class Ssid < ActiveRecord::Base validates :name, :presence => true ...
0
votes
0answers
4 views

Can't seem to get fastcgi_cache_use_stale to work

So I have two browsers open and am requesting a page: http://localhost/test.php Once every 10 seconds the cache expires and when I refresh the page it takes 5 seconds to load the script, store in ...
2
votes
1answer
36 views

When shoud I use ssl_session_cache paramter in nginx ssl settings

What do I benefit from ssl_session_cache set in nginx.conf when I using https? See here.
0
votes
0answers
17 views

“unknown directive” when installing Phusion Passenger on Debian 8 with nginx

I try to install Phusion Passenger on a Debian 8 (amd64) which already has an installed nginx (the Debian default nginx package). I use the official install how-to: ...
0
votes
1answer
19 views

VirtualHost's behind an nginx reverse proxy fail to resolve properly

I have a load balancer pair in front of 4 web servers which run nginx on port 80 and proxy to apache on port 8081 for non-static content like php code. I'm running several domains in this ...
-3
votes
0answers
13 views

How to redirect one exact url to another url in NGINX [on hold]

I had scan everywhere in this website on NGINX rewrite rule but all of them handling url with wildcards. How about only one particular url case? For example, redirect: http://example.com/ to ...
0
votes
0answers
9 views

NGINX + uWSGI + Flask. Some requests very slow

We're running a fairly large Flask application and finding that at random times we'll end up with a very slow request (sometimes a minute or more) I presume the issue is related to lazy-loading ...
-2
votes
0answers
10 views

nginx limit requests by url parameter

I have proxy server running nginx and its proxying requests to a few backends. Usual URL format is something like this: /search?login=test&token=12345&keywords=travel At every second there ...
1
vote
1answer
21 views

PEAR Mail error seems to crash the server (php-fpm) : 504 Bad gateway

I've been running on this issue for a few days. I haven't made configuration changes, apart from the usual system/security updates. Server runs on Debian Wheezy PHP 5.4.41-1~dotdeb+7.1 Nginx ...
0
votes
1answer
17 views

Nginx not displaying CSS, PNG & SVG

I have been looking through the hundreds of questions about this for a couple of hours now, but I haven't been able to find a single one that's the exact same as mine. Up until a week ago, all sites ...
-2
votes
1answer
35 views

NGINX Load balancing or stronger hardware? Please explain

I have a web application and expect it to be getting many concurrent users. I have seen engineers use load balancing to achieve optimal efficiency but I still don't see how buying more servers is ...
0
votes
2answers
28 views

Log rotation on NginX in Configuration file

I've tried this tutorial to rotate log file without external software, but it seems it doesn't work, my configuration on the server { block: if ($time_iso8601 ~ ...
0
votes
0answers
15 views

Logstash not saving anything for Nginx

I have a rather simple setup for Logstash as follows: /opt/logstash/patterns/nginx: NGUSERNAME [a-zA-Z\.\@\-\+_%]+ NGUSER %{NGUSERNAME} NGINXACCESS %{IPORHOST:http_host} %{IPORHOST:clientip} ...
0
votes
1answer
23 views

Logrotate - how change it so that it never deletes logs and will create a .gz every 6 months?

I read the man logrotate, but it's still unclear to me. My questions are mainly related to the NGINX webserver logs. This is my current logrotate.conf: # rotate log files weekly weekly # keep 4 ...
0
votes
0answers
22 views

CORS in Nginx 1.2.1 (Debian 7)

I am using Debian 7 and Nginx 1.2.1. Http headers module is enabled by default with Debian packets (https://wiki.debian.org/Nginx). I am trying to add links to facebook, twitter and google plus ...
1
vote
0answers
29 views

nginx - redirect https://subdomain.example.com to https://example.com

I want to redirect https://subdomain.example.com to https://example.com. Here's what I'm trying: server { listen 443 ssl; server_name subdomain.example.com; return 301 ...
0
votes
0answers
14 views

Rails app with nginx passenger: recv() failed (104: Connection reset by peer) while sending to client

I've searched both StackOverflow and ServerFault, but almost every Q/A is about "while reading response..." for the 104: Connection reset by peer, and not "while sending to client". This is what my ...
0
votes
1answer
31 views

nginx proxying requests to wrong backend

Why would going to https://robert.bob.com/norbert/ go to backend1 instead of backend2 with this configuration? server { server_name robert.bob.com; rewrite ^/(.*) https://robert.bob.com/$1 ...
1
vote
0answers
11 views

Django + gunicorn + nginx concurrent users on default configurations [on hold]

I am currently setting up nginx+gunicorn to serve a django app that is going to be used by at most 60 users following THIS tutorial. The app is pretty basic, 6 django forms made out of 10 fields and ...
0
votes
0answers
13 views

CloudFlare + Nginx + ngx_http_realip_module

We are currently using ngx_http_realip_module to convert CF ip's back to the users'. It works well for the most part but some ips in our access.log are still from CF. Current config in http {}: ...
0
votes
0answers
11 views

Nginx with proxy_protocol is not accpting requests from haproxy in TCP mode with send-proxy

I have haproxy and nginx. I want make this setup accept HTTPS connections and I want HTTPS request being decrypted on nignx, not haproxy. In haproxy I've created frontend and backend for HTTPS ...
1
vote
0answers
32 views

Gitlab Omnibus, can't view most commits (500) and very slow

I'm running GitLab 7.9.2 c46d4f5 (Omnibus) on Ubuntu 14.04 On a little over half of our commits when someone navigates to a commit gitlab returns 500 We're sorry, but something went wrong Also, on ...
1
vote
0answers
36 views

Correct nginx set up to handle subdomains

I have an nginx instance with the following config: server { listen 80; server_name mySite.com; location / { root /usr/share/nginx/html; index index.html index.htm; ...
0
votes
1answer
31 views

What should be the right logs permissions for NGINX on CentOS?

on /var/log/nginx/ I have access and error logs. Some are .log errors and others have .gz I think I messed up with the permissions. Some files are created by root/root, other files are created using ...
0
votes
0answers
29 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
1answer
35 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
22 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
36 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
20 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
44 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
32 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 ...
-8
votes
0answers
27 views

HTTP resources on https page - Nginx [on hold]

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 ...
-5
votes
2answers
53 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
17 views

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

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

change root nginx if else condition [closed]

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 [closed]

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

Nginx www server and Tornado Websocket server [closed]

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
2answers
50 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
52 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
13 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
29 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 ...