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

nginx: act as an in line reverse proxy (listen on one nic, servers on other nic…)

I have used nginx with great success with the nginx host using a single nic. The question here is: How to handle with the nginx host will have two nics, one on the 'public' network (visible through ...
-1
votes
2answers
30 views

Is it possible to make Nginx listen to different ports?

I created one Nginx with one Linux Azure VM, is it possible to make nginx listen to different ports so that when I change the port number, the content would be different. I found there would be a ...
0
votes
3answers
24 views

Nginx Site File Location

I'm attempting to deploy a new (first-time) Nginx server on Ubuntu. I am following DigitalOcean's tutorial, found here. As the tutorial suggests, I am place each site on the host inside ...
0
votes
1answer
25 views

Nginx cannot show the right web page

I created one html file under one user file, and I want Nginx to serve this html file. But the website always show the default one. I am new to Nginx, I want someone help me with this. Any ...
-1
votes
0answers
15 views

How to multiple forward for one request in nginx

I have some config: server { listen 192.168.1.3:81; location /dlr { rewrite .* /rf/sms/status/ break; proxy_pass http://192.168.1.1/; ...
0
votes
2answers
37 views

Nginx: [emerg] “server” directive is not allowed here in /etc/nginx/nginx.conf:76

The Nginx configuration is just like the default: I couldn't find any clue about this error. Can anyone help me? Any help would be grateful. Thank You.
2
votes
0answers
15 views

nginx with php and two node.js routes

I have two routes i want to pass two node processes(websocket route, angular app), while a 3rd route needs to pass to a php application that acts as a rest api to the angular app. i'm not terribly ...
-2
votes
0answers
16 views

NGINX configuration: redirect ALL except wildcard [on hold]

Please help me with NGINX configuration. If request is /api/*.php, I should parse it as normal script. Everything else should be redirected with 301 redirect. How to do it? Thanks.
0
votes
1answer
37 views

Suspicious web activitin in nginx logs

I'm seeing some strange entries in my NGINX logs: 2.71.139.98 - - [26/Dec/2014:12:36:24 +0000] ...
-2
votes
1answer
26 views

nginx subdomain with fastcgi [on hold]

I want to use seafile with nginx. For testing I install it into a VM and accessing it via IP-Address. I take this description seafile with https to make it running. it works, when in the nginx.conf ...
-1
votes
0answers
15 views

Nginx/HAProxy for failover [on hold]

I want use either Nginx or HAProxy to provide a failover mechanism for our system. The system must work as follows- It must act as a reverse proxy to route the client requests to the backend servers ...
1
vote
1answer
87 views

My nginx main file within /usr/share/nginx/main on aws is 5.2GB in size

I am deleting all cache files and unused files since my AWS instance reaches 100% capacity nowadays. My setup is Nginx serving though php5-fpm with opcode cache. I have enabled access_log main in the ...
0
votes
0answers
16 views

How to suspend Nginx requests during backend upgrades

I'd like to have Nginx suspend (hold) http requests for short periods of time, while I upgrade or restart the backend service, do a database migration, or some other administrative task, without ...
2
votes
1answer
45 views

nginx domains using SSL cert listening but inaccessible

I have multiple domains and multiple domains using SSL certs running under nginx. All domains are basically using the exact same config, substituting for names of course, except for the HTTPS-enabled ...
-2
votes
0answers
32 views

PHP-FPM 5.6 with NGINX is downloading app.php of Symfony 2 and throwing 403 forbidden

I've been trying to set up development environment in Vagrant using CentOS 7 + Nginx 1.6.2 + php-fpm 5.6.4 Everything went smooth and worked, until I installed Symfony 2 project with this folder ...
1
vote
1answer
36 views

Nginx rewrite part of URL

i'm trying to make a redirects from URL's with option ID to URL's with option URL_key i've assigned. I have two column table with ID i'd like to substitute and URL_key as substitute. 11337 bar ...
0
votes
3answers
21 views

aws ec2 security group and centos ip tables

I try to change the SSH port from 22 to another port (218). In AWS EC2, I shall add the rules in security group or in IP Tables? Is there any guideline/references recommended for EC2 Security ...
0
votes
0answers
34 views

using nodejs https module with ssl certificate proxy with nginx without adding ssl certificate in nginx

I am using nodejs https module with nginx proxy. I have multiple ssl certificate and I want to run all https sites using node without adding all certificates in nginx ssl server. Is any way to proxy ...
0
votes
1answer
20 views

Vagrant, nginx 404 - fastcgi sent in stderr unable to open primary script

Was googleing a lot of and didn't find solution for this. Have found few accepted answers here on stackoverflow, but they didn't helped me. I am using vagrant for development, or at least trying to ...
-4
votes
0answers
26 views

Nginx php config? [on hold]

I am using Varying Vagrant Vagrants for local Wordpress development. It is an Nginx PHP setup. How do I configure the date/time for a central timezone? Viewing the phpinfo it shows date.timezone has ...
2
votes
0answers
41 views

Multiple Domains Name on one server with Nginx

I'm struggling to configure two different domains name on my dedicated server... I've already one DN configured like this in the vhost DOMAIN_1.net.conf : server { listen 127.0.0.1:8080; ...
2
votes
0answers
25 views

Do we get a access.log entry for content served from cache in nginx

For a configuration that looks like http { proxy_cache_path /etc/nginx/cache keys_zone=one:10m; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; server { ...
1
vote
0answers
17 views

why basic auth loops when using nginx and monit

I was trying to configure nginx so that http://example.com/monit will access http://127.0.0.1:2812, which is the url monit is listening. Two authentication was set, via nginx(nginx.conf file) and ...
1
vote
1answer
35 views

Rewrite a url to a a new URL and then send the new URL to a PHP script

I have URLs that contain a cache busting string. I want to rewrite these URLs without the cache busting string, and then send the rewritten URLs that match a certain criteria (e.g. audio/video files) ...
1
vote
1answer
24 views

How to pass variables through try_files?

Consider this configuration (given /foo doesn't exist): server { set $x 1; location = / { set $x 0; try_files /foo @l; } location / { try_files /foo @l; ...
1
vote
1answer
46 views

nginx location and root settings dont work

I am trying to rewrite every file after cdn.minora.me/forum/ to another directory: server { listen 443 ssl; listen [::]:443 ssl; ssl on; ssl_certificate ...
0
votes
0answers
22 views

nginx rewrite keeping subdomain

I have a nginx server and several domains connected to it. I would like to replace all http request with a https request to one specific domain (for which I have a certificate). Example: Say I have a ...
0
votes
1answer
31 views

nginx: WSS Load Balancer: Failed server not taken out of rotation, why?

Using the current nginx, 1.6.2 to load balance wss (websockets) to two servers. We use some stickyness, as you see below. This config works great, until one of the upstream servers goes off line. ...
1
vote
1answer
32 views

Why are my config settings inherited to the subdomain server block?

I use nginx with a ssl wildcard certificate like that: /etc/nginx/sites-enabled/example.com server { listen 443 default_server ssl; server_name 192.168.0.1 example.com; include ...
0
votes
0answers
44 views

nginx hhvm bad gateway

I do have an issue with Nginx 1.6.2(compiled) and HHVM 3.4.2. Everything is installed 'fine' when I run hhvm info.php it returns 'HipHop'. But when I visit the website I get an 502 bad gateway, so ...
-3
votes
1answer
39 views

Strange folders in Pagespeed cache folder. Did I get hacked? [duplicate]

I have a Centos7 server with nginx and google pagespeed. I wanted to clear pagespeed cache for a reason but i saw lots of chinese site caches in my pagespeed cache folder like baidu.com, ly.com, ...
1
vote
0answers
24 views

Nginx: proxy graphs from remote munin server

I'm trying to create, under a series of nginx hosted domains, a /graphs folder (so I'm trying to use proxy...) at which graphs from a remote munin server would be shown. The munin server is graphing ...
-2
votes
1answer
32 views

cannot access localhost with nagios and nginx

I have followed this link to install nagios, I already have nginx up and running. The problem is I keep getting user name and password to authenticate. When I remove the auth_basic_user_file ...
-4
votes
1answer
78 views

Redirect loop using cloudflare's Flexible ssl

I am trying to implement Flexible SSL provided by CloudFlare to my site. Here is my nginx config: # PHP-FPM upstream; change it accordingly to your local config! upstream php-fpm { server ...
1
vote
1answer
31 views

Nagios + Nginx: CSS and image issues

I am having trouble configuring Nagios on Arch Linux served by Nginx. The Nagios services run without hitches, but the serving via Nginx is broken. As you can see from the screenshot, the fonts are ...
0
votes
0answers
24 views

No input file specified nginx subfolder

I've searched many results in this site has same title as my question, but I can't find a suit for me, this is my problem : I installed nginx on ubuntu Everything is ok now, but when I tried to ...
0
votes
0answers
19 views

Blocking access to dirs in an nginx template when it runs in front of apache2 leads to an error

I'm using VestaCP which uses nginx in frontend for static and apache on the backend for dynamic content. I have issues with attacks to wordpress so decided to block wp-admin/ to all but the ...
0
votes
0answers
31 views

Create re-direct based on incoming URL format

We are currently using JIRA for our bug tracker. For reasons that would take pages to explain, what I'd like to do is take an incoming URL that looks like 'http://myco.jira.com/jira/browse/ (e.g. ...
0
votes
1answer
23 views

Can nginx test for a hard links or symlinks and redirect the browser client to the _real_ URL?

Imagine nginx is serving a folder of static images created by rsnapshot: /rsnapshots/hourly.0/imageA.png /rsnapshots/hourly.0/imageB.png So if I go here: http://example.com/hourly.0/imageA.png, I see ...
2
votes
0answers
22 views

File upload through Nginx with proxy_pass to Gunicorn is slow (Ubuntu 14)

I previously was running Ubuntu 12 where I had Nginx receive large file uploads, and then proxy_pass it to gunicorn / django (port 8000). This worked fine once I figured out I needed to set ...
0
votes
1answer
42 views

How to proxy requests from Nginx to SSL server

My curl request looks as follows: curl --header "Authorization: Basic BASE_64" https://example.com --tlsv1 -k (I need to explicitly provide TLS and skip verification) and it works. I'd like to ...
-9
votes
0answers
32 views

Nginx domains redirect to main [closed]

The main working domain is example.com that serves a django application How would direct example.org, example.net, example.info to the working example.com The best approach that does not break down ...
2
votes
1answer
31 views

Changing proxy_cache_valid value based on GET Query

I'm currently trying to setup a nginx cache that should cache a location for a long time but if query parameters are present for only a few minutes. So basically: http://example.com/mypath -> ...
0
votes
0answers
16 views

Avoid accessing a webpage with redirection in Nginx

What I need is to configure Nginx in front an application. The app has 3 sections, the first is the login page, then after login the user is served with "page2" but what we need is to avoid this ...
0
votes
0answers
33 views

500 Internal Server Error Nginx on HTTP POST [closed]

I need your kind assistance to solve this problem after a long research. my script is unable to send post request it's getting 500 internal server error (nginx). This error occurs while $_POST ...
1
vote
0answers
34 views

nginx subdirectory to subdomain icingaweb2

I currently have icinga2 set up with the new icingaweb2 ui. it defaults to the subfolder /icingaweb as follows: location ~ ^/icingaweb/index\.php(.*)$ { # fastcgi_pass 127.0.0.1:9000; ...
1
vote
2answers
78 views

Setting wordpress and gitlab, can activate only one of them at a time

I'm trying to set up a website (website.com) on an Ubuntu 14.04 machine. When '/etc/nginx/sites-available/wordpress' is present, I can run the gitlab server on website.com/gitlab (as intended) When ...
0
votes
0answers
6 views

Nginx directive for redis_connect_timeout doesn't work as expected

I'm using the Nginx HttpRedis, HttpRedis2, and HttpSRCache modules so that I can use Redis for caching. This works well, but I have problems when my Redis server is unavailable. If the host itself ...
-1
votes
0answers
36 views

Multiple SSL and non-SSL hosts on one server with NGINX and redirects

I am running a webserver on VestaCP, and I am having a little difficulty with NGINX and SSL. On one host I have 2 SSL sites which share a wildcard certificate and 1 SSL site with its own certificate, ...
0
votes
1answer
48 views

Multiple node.js apps on the same server

I have nginx hosts an instance of static site generated by jekyll. I added a nodejs app on port 4000 and do according to this tutorial on DigitalOcean server { listen 80; root ...