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
1answer
1k views

Rails 3 passenger nginx application spawner server error on Synology NAS

Question updated, please read UPD2. I'm trying to deploy app through passenger nginx module on DS710+ (ruby 1.9.2p0 installed). There is syntax error relative to ...
-2
votes
0answers
16 views

nginx SSL endless redirect loop

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 { ...
1
vote
2answers
167 views

Strange access requests

In my access logs i have some requests like so: [18/Dec/2014:10:07:51 +0300] "GET /favicon.ico HTTP/1.1" 301 184 "-" "Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20110814 Firefox/6.0 Google ...
1
vote
1answer
20 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
1answer
817 views

nginx says “unknown directive” even though module appears to be installed

So I ran into this problem. I was trying to use the ngx_http_realip_module module to forward the correct remote address for an nginx install behind a load balancer. Using the directive: ...
0
votes
2answers
45 views

Nginx: How to rewrite arguments passed to index.php?

I am struggling with some Nginx rewrits for url arguments passed to index.php: Old: ?topic=10126.msg36887 New: ?posts/36887/ My two questions: 1) How do I rewrite to the new argument structure ...
0
votes
0answers
12 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
14 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
29 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 ...
1
vote
1answer
93 views

Inject SSL client certificate in Nginx proxy

I have 2 Nginx instances, one is listening on 80 and has a proxy_pass https://second_nginx; The second instance is configured to listen on 443 with a self signed certificate, but also have the SSL ...
0
votes
1answer
167 views

Under nginx and codeigniter how do i redirect certain pages from http to https

I want that certain pages to be available on https but not on http. I have a Code Igniter framework there. Here is the code from nginx conf: server { listen 80; ...... #enforce ...
1
vote
1answer
400 views

How to specify multiple root certificates for nginx client certificate verification?

For a project as part of the European Grid Infrastructure (EGI) we need SSL client certificate verification for a service running on nginx. As there are several root CAs allowed within EGI, we need ...
1
vote
0answers
28 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; ...
0
votes
0answers
18 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. ...
1
vote
2answers
65 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
2answers
900 views

504 error in nginx +php-fpm : post request

I have a test server with nginx and php-fpm. Pages on the site are opening correctly, but when I want send POST request for example an "authorize on site" I get "504 Gateway Time-out error". Nginx ...
0
votes
0answers
11 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
15 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 ...
2
votes
1answer
22 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 -> ...
1
vote
1answer
32 views

Nginx Session-Binding-Proxy

I've been trying to harden a website against attacks involving Session Hijacking. The site runs with Nginx in front of an node.js app. As one of the countermeasures, the goal is to configure Nginx to ...
-9
votes
0answers
26 views

Nginx domains redirect to main [on hold]

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 ...
0
votes
0answers
13 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 ...
2
votes
2answers
1k views

Nginx - What is does the nodelay option do when limiting requests?

With the nginx HttpLimitReq module requests can be limited by IP. However, I'm not understanding what the "nodelay" option does. If the excess requests within the limit burst delay are not ...
0
votes
0answers
23 views

500 Internal Server Error Nginx on HTTP POST [on hold]

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 ...
0
votes
1answer
42 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 ...
0
votes
0answers
5 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 ...
0
votes
1answer
629 views

what does “low address bits are meaningless” mean?

I'm trying to restrict access from Internet to a login page on my blog, and only make it available from my intranet. Thus, i have defined the following location location ~/ghost/signing { allow ...
-1
votes
0answers
27 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
812 views

Error 503 Service Unavailable Varnish

So I setup a new cloud based instance with Ubuntu 12.04, with nginx, php5-fpm and varnish. Before I installed and configured Varnish, the website worked fine, virtual hosts worked. After setting up ...
1
vote
2answers
26 views

Something wrong with nginx and port 80

I've got an application at 192.168.101.120:8080. Now I want to run it throug nginx on port 80. Look at the nginx.conf: user nginx; worker_processes 1; error_log ...
0
votes
5answers
2k views

nginx: php-fastcgi running but php files not executing

I have recently set up a nginx server with PHP running as FastCGI process. The server is running with HTML files however PHP files are downloading instead of displaying and PHP code is not processed. ...
1
vote
0answers
19 views

Nginx restful url rewrite

I need to rewrite URL like this: example.com/demo/test/123/edit To: example.com/demo/test.php?a=123&b=edit It works with this rewrite rule: location /demo { rewrite ...
-3
votes
0answers
22 views

error404 /cgi-sys/defaultwebpage.cgi [on hold]

I have a Mac mini I install vagrant with nginx + php on my Mac mini I set up a hostname(*.dev.com) on my Mac mini path /etc/hosts I set up a same hostname on my vagrant If vagrant IP Address is ...
0
votes
0answers
13 views

Deploying node.js application on Ubuntu VPS

I created an real time android application backed by a node.js application. I use express, socket.io, mongodb and ubuntu for my backend. But my problem is on how I can possibly run it in production or ...
1
vote
3answers
2k views

Rails + Nginx + Unicorn multiple apps

I get the server where is currently installed two apps and i need to add another one, here is my configs. nginx.conf user www-data www-data; worker_processes 4; pid /var/run/nginx.pid; events { ...
4
votes
1answer
2k views

nginx proxy + ssl +clr “400 bad request” error

Here's the situation - there's a trasnparent nginx proxy that handles SSL certificates and does it well until we decide to add a revocation list management, required for security reasons. This is when ...
1
vote
1answer
1k views

Nginx rewrite to eliminate “www” not working

I've looked at many SE threads and done various google searches and can't figure out why i can't redirect www.mysite.com to mysite.com on my nginx server. The 1st server block does the ...
0
votes
1answer
1k views

Nginx proxy cache (proxy_pass $request_uri;)

I need to create proxy web using nginx. If I access http://myweb.com/http://www.target.com/ the proxy_pass should be http://www.target.com/ Here is my configuration: location / { proxy_pass ...
2
votes
1answer
910 views

Nginx: logging full request data?

Simply, is it possible to make nginx log all the request information (source address, protocol, headers, etc.)? Especially, in some parseable format.
-1
votes
0answers
14 views

Gitweb 404 - No projects found on ArchLinux ARM [migrated]

I have some troubles with gitweb configuration on my RPi (powered by ArchLinux ARM). As you can see in the topic title I get "404 No projects founds" error. I followed ArchLinux wiki but it didn't ...
0
votes
0answers
572 views

NetScaler Gateway VPX behind nginx

Currently we run a Citrix Security Gateway on a VM and opened a specified port on our firewall to directly connect to it via port redirection. This works quite well, but every user has to remember the ...
0
votes
1answer
1k views

Nginx failed (99: Cannot assign requested address)

OS: CentOS 6.5 (Final) Panel Version: 11.5.30 I'm using Plesk and turned on the nginx service. Now my sites are pointing to the Apache page. I have also looked at the errors within the nginx error ...
0
votes
1answer
17 views

Nginx proxy_pass entire request to remote server

I want to have phpMyAdmin running under another port and pass all requests that go to /pma/ to 127.0.0.1:8081 Thats my Nginx config server { listen 80; ... location /pma/ { ...
1
vote
1answer
19 views

Clean url with several params in nginx

I am a newbie in nginx. The question is how to rewrite url with query string to 'clean' url: for one parameter: host.com?page.html/param1=value1 <- host.com/page/value1 ...
1
vote
1answer
15 views

ProxyPass Not working (No errors)

I am attempting to forward one of my apache domains onto a different port (which is hosting an Nginx-backed rails app) In my http.conf for the particular virtual host I have: <VirtualHost ...
1
vote
0answers
4 views

How to configure nginx to dynamically read folders, user accounts/domains? [duplicate]

I have cPanel and Apache 2.4 on my CentOS 6.6 VPS. I installed Nginx as a reverse proxy. Everything works fine. I have 2 domains on the VPS & I'm able to configure them both on nginx. The ...
1
vote
0answers
30 views

Is it possible to share a basic auth session between several aliases in nginx?

The title pretty much sums it up, we have a very simple virtual host setup in nginx protected by basic auth, so it looks like that: server { listen portnumber; server_name *.domain.com; ...
2
votes
2answers
1k views

Ever increasing mem usage by php-fpm?

It seems php-fpm is allocating more and more memory, although peaks and dips in amount of requests. Couldn't post more than one image, so I put them here. As you can see in the uri of the pictures, ...
0
votes
1answer
893 views

Nginx subdomain proxypass

I want to redirect non-ssl traffic to ssl for all subdomains. I want to keep the subdomain the same. I want to specify a different proxy_pass for staging.foo.com. I only have 3 things going right now ...
2
votes
1answer
9k views

Nginx ssl - SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line

I am trying to enable ssl on a server using a certificate from 123-reg but I keep getting this error: nginx: [emerg] SSL_CTX_use_certificate_chain_file("/opt/nginx/conf/cleantechlms.crt") failed ...