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
9 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
11 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
16 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
0answers
10 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 ...
0
votes
0answers
28 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 ...
-8
votes
0answers
24 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 ...
2
votes
1answer
21 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
12 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
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
0answers
26 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
64 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
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 ...
-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
41 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 ...
1
vote
2answers
157 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 ...
0
votes
1answer
37 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 ...
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 ...
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 ...
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 ...
-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 ...
-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 ...
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 ...
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
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; ...
-7
votes
0answers
28 views

how to set up a cookieless sub domain to serve static contents? [on hold]

I am in search of developing a cookieless sub domain to serve my static contents in the web site. As I am a newbie to this field it look like a tough task for me. Can any one help me to find a ...
0
votes
1answer
17 views

Can't get 404s for Wordpress pages with permalinks and nginx

I have nginx 1.6.2 serving a wordpress site, with php-fpm. Permalinks are setup the following way: /blog/%postname%/ nginx serves correctly the site pages (/, /products, /contact...) as well as the ...
2
votes
0answers
33 views

how to prevent loadbalancer from going offline?

i plan to setup a load balancer for a webproject but there is a major issue in my head: a typical loadbalancer would be: (provided by nginx upstream) Server #1 accepts all requests and forwards them ...
-1
votes
1answer
22 views

Setting apache2 as default web server on ubuntu

So on my ubuntu server I have both apache2 and nginx installed for testing purposes. However, currently nginx is set as default (nginx is the one that starts up when the server is restarted), but I ...
1
vote
1answer
31 views

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

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

Nginx Location Rewrite Rule matching GeoIP Header value

I'm looking to write a simple rewrite rule where I basically am trying to say the following If the requested URI is text/index.html (or test/) and the GeoIP Organization equals "My GeoIP Value" then ...
0
votes
1answer
25 views

nginx, web page degraded when root path is changed

I'm setting a wordpress up with nginx. Everything's seems ok : server is up phpinfo() test is ok the worpress install routine is showing up The only trouble is the root statement in the web server ...
-2
votes
2answers
52 views

nginx force ssl exception

I am using Ubuntu 14.04 with nginx installed and SSL installed on main domain, which works fine. I have even parked 5-6 other domains with main domain. If I go to any of those domains, I get an SSL ...
-1
votes
1answer
17 views

How can I forward all http traffic to https using nginx and Plesk 12 [closed]

This question has great answers for how to forward http to https on nginx, but Plesk (I'm using Plesk 12) introduces 2 gotchas. 1) it overwrites each domain's nginx.conf periodically - not helpful. ...
0
votes
1answer
19 views

Move from default server block on nginx

Hello I setup my server and running Ubuntu server 14.04 with Nginx & php-fpm When I set everything up I used the default server block /etc/nginx/sites-available/default With my files ...
0
votes
0answers
37 views

Nginx proxy to Go dramatically reduces performance

I just finished coding up a small Go script listening with the Go http package. I wanted to put nginx in front of it (I need to serve static files in a subdir as well), but noticed that req/sec and ...
0
votes
1answer
59 views

nginx config and error message

I believe I have an error in one of my nginx configs. I have tried: $ sudo service nginx restart * Restarting nginx nginx [fail] $ After some googling i then tried the following: $ sudo service ...
-1
votes
0answers
19 views

How to exclude ip's from Nginx ngx_http_limit_req_module

I try to limit ip's connections using on main Nginx config file this: limit_conn_zone $binary_remote_addr zone=alpha:8m; limit_req_zone $binary_remote_addr zone=delta:8m rate=30r/s; and on my ...
0
votes
1answer
22 views

Nginx reverse proxy configuration for multiple domains

I have multiple accounts/domains on my server. I'm using cPanel with Apache 2.4 and wanted to use Nginx as a front reverse proxy. I changed Apache port, installed Nginx and it works fine but for one ...
2
votes
2answers
35 views

Apache to Nginx Conversion (Newbie)

I've got a Nginx Web Server Setup with PHP and I want to move on Nginx and I want to convert these .htaccess rules to nginx.conf file: RewriteRule ^blog(|/)$ /data/core/site/blog.php RewriteRule ...
1
vote
1answer
20 views

Thawte SSL123 SHA-2 Intermediate Certificate Chain, Broken?

I attempted to upgrade my one Web site, running nginx, from a SHA-1 SSL123 certificate to a SHA-2 one. Thawte's Web page with intermediate CAs has "RSA SHA-2 (under SHA-1 Root)" and "RSA SHA-2 ...
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 ...
2
votes
2answers
36 views

Nginx - redirect old .php?id=… to SEO friendly url doesn't redirect as expected

I'm migrating a website with old-style /category.php?id=4 URLs to /category/seo-friendly-slug URLs. rewrite ^/category.php?id=1$ /styles-de-bieres-belges/pils permanent; rewrite ^/category.php?id=2$ ...
1
vote
0answers
13 views

Nginx error on installing vestacp

I am trying to install vestacp on fresh dedicated server running ubuntu14.04 with nginx installed, however i have tried to remove this using... sudo apt-get remove nginx sudo apt-get purge nginx ...
3
votes
0answers
89 views

nginx & php-fpm [debug] 11: Resource temporarily unavailable

New Development The core php error logs are below, but the site specific error logs show this. The memory on my php.ini file is : memory_size 1024; so it's not php's memory limit. I've also ...
1
vote
1answer
66 views

Nginx 10k concurrent connections

We are not able to handle more than 3k concurrent request in nginx (Connecton time out). We change also the ulimit to 20000. Following are my nginx.conf and sysctl.conf files: user www-data; ...
3
votes
0answers
30 views

How to enable certain SSL cipher while having disabled the group?

I would like to enable the SSL cipher EDH-DSS-DES-CBC3-SHA (also known as TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA) in my nginx SSL environment to support IE8 on Windows XP. The base SSL ciphers for nginx ...
0
votes
0answers
23 views

Rails Passenger 403 forbidden

Unable to run my rails app. Have configured it using official documents. Have tried placing an index file in public folder. It works. Have tried to run rails app in production machine under ...