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

-2
votes
0answers
30 views

Random Nginx 400 Bad Request

I just installed fresh new server (Centos 6.4), I have worked with my website and suddenly i get 400 Bad Request - Nginx (After some time the website worked again) the weird thing I have no errors ...
0
votes
2answers
109 views

using nginx with SNI

By now I've not used SNI with nginx yet. But as IP address pools are quite filled and commercial XP support is about to cease (finally) I'm thinking about converting a few sites to SNI. I'm aware of ...
0
votes
1answer
24 views

configure nginx with 2 locations while 1 answers to specific url request

I appologize for the weird title :) what I have I have two web applications running on the same server (an OSClass installation and the Vanilla Forum). One of them is supposed to be the master of ...
0
votes
1answer
48 views

SSL Certificate implementation for a stack that has varnish and multiple NGINX webservers

My current stack has Varnish -> NGINX (2 servers) running Drupal -> MySql. All static content is cached and served by Varnish over HTTP. However when a user signs-up and wants to purchase a plan the ...
-1
votes
2answers
39 views

Where will load fall using Nginx, Varnish, and HAProxy? [duplicate]

We are looking into scaling our servers and I am not sure where load will fall as visitor count increases. I have one HAProzy load balancer, that proxies to two Varnish Nginx static content servers. ...
0
votes
1answer
28 views

rewrite rule on location in nginx

When I write the location in, it works, when I use the same location as a rewrite rule, it doesnt!!! I dont understand the logic. Can someone please explain? location /v3/ { alias ...
0
votes
2answers
15 views

nginx fastcgi rewrite: primary script unknown

I have following nginx configuration: location / { try_files $uri $uri/ index.html =404; if (!-e $request_filename) { rewrite ^/(.+)$ index.php?url=$1 last; } } ...
2
votes
1answer
54 views

How to setup a subdomain on nginx? [closed]

I have setup GitLab on my unbuntu ubuntu 12.04 lts server in following path /home/git/gitlab/. I am using nginx server. This is my gitlab status root@c27-76:/etc# sudo service gitlab status The ...
0
votes
1answer
36 views

Setting up DNS on reverse proxy

I have a backend that used to be my front end. Now my front end is an nginx proxy server. It just serves as an http and an IMAP/SMTP proxy. The backend services apache,mysql,dovecot/postfix. Since I ...
1
vote
1answer
31 views

nginx infinite 302 Found redirect loop

I am using nginx to map multiple domains to google app engine. in this specific case i map multiple domains to the same tenant. there is a configuration in my code that knows which domain is the main ...
1
vote
0answers
18 views

nginx redirects requests from apache proxy to real server address

Description: [server 1] <-|-> [server 2] [Apache] <-|-> [nginx <--> gunicorn <--> django] Apache is running on a server 1 which silently redirects just one subdomain to ...
1
vote
0answers
20 views

“gitlab-shell self-check failed” after installing GitLab

So I installed GitLab and nginx and now i get a 502 Bad Gateway error when accessing it. I went through with the check sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production and found out I ...
-1
votes
1answer
21 views

Proxy to the same subdomain with nginx

I just bought the domain xappspot.com, and what I'd like to do is proxy request to it to appspot.com. For example: http://json-time.xappspot.com/time.json -> http://json-time.appspot.com/time.json ...
0
votes
1answer
19 views

Which Nginx and which config file is used

I am trying to install Phusion Passenger module for Nginx. There was Nginx installed in /usr/sbin/nginx. The installer gem downloaded Nginx sources and compiled them with Passenger support into ...
-2
votes
4answers
40 views

nginx is not serving the www version of a static site

I can not configure nginx to serve (redirect?) the www version of my site. The non-www version works perfectly. I suspect this is a dns issue, but I don't have enough experience to know that. Here is ...
-2
votes
1answer
25 views

nginx refuxing connection SSL

I have a site that I am trying to get SSL working on. This is my first time ever doing so. My server config looks something like: server { listen 80 ssl; server_name {site_name}; ...
25
votes
8answers
16k views

My server is still vulnerable to heartbleed even after I update OpenSSL

I have an Ubuntu 12.04 server. I have updated the OpenSSL package in order to fix the heartbleed vulnerability. But I am still vulnerable even, even though I have restarted the web server, and even ...
4
votes
1answer
252 views

Heartbleed, which specific services must be restarted?

Trying to figure out exactly what services should be restarted after patching openssl against Heartbleed. At least one post mentions restarting: sshd, apache, nginx, postfix, dovecot, courier, ...
0
votes
0answers
37 views

Accessing OwnCloud over VPN doesn't work on android and chromebook?

Here is my setup. I've got a Cisco ASA 5505 (latest IOS). Behind it, I have a (Ubuntu 12.04) server running nginx, php-fpm, OwnCloud (all latest versions). My desktop also sits behind the ASA and is ...
0
votes
1answer
22 views

available variables for NGINX

I want to serve a raw file if it's being hotlinked, but rewrite the url if someone is visiting the file in their browser. I've seen this hotlinking example a few times: location /pictures/ { ...
0
votes
2answers
55 views

nginx reverse proxy or squid forward proxy (transparent)?

I have to implement a proxy server in front of a running production server to route and secure the production-server. On the production server multiple node.js applications listening on different ...
0
votes
1answer
47 views

An upstream response is buffered to a temporary file

I have a rather large and slow (complex data, complex frontend) web application build in RoR and served by Puma with nginx as reverse proxy. Looking at the nginx error log I see quite a few entries ...
0
votes
1answer
25 views

nginx default root returns 404 on port 80

I have a problem when trying to reach my server only via the IP on port 80. If I go to the IP I get the nginx 404 error page. This is what my default config looks like: # You may add here your # ...
0
votes
2answers
29 views

nginx redirect with slashes in url

I am doing a RYO QR code management system for our marketing endeavors by having all the QR codes hit a designated url structure that I will then forward via nginx to their designated locations. I'm ...
0
votes
0answers
14 views

best logic to Load balancing YiiFramework web app

I'm going to launch a Yii framework app next days, and i'm currently searching the best way to deploy it in order to scale and support high traffic. I use Amazon RDS to host the DB, and 2 Memcached ...
0
votes
0answers
5 views

set up (VirtualBox + CentOS) with (nginx + PHP + MySql) on MacOS [migrated]

I'm trying to set up (Virtual Box + CentOS) with (nginx + PHP + MySql) on MacOS, the future I can coding on MacOS then throw file to the share folder with (Virtual Box + CentOS) and execute on ...
1
vote
1answer
17 views

Rewrite nginx rule for for a directory to another domain/sub domain

i have setup the following nginx rewrite rule . But doesn't seems to be working, * location /images { rewrite ^(.*)$1 http://sub.domain.com/$1 permanent; } * for images i'm trying to ...
0
votes
0answers
29 views

Strange Nginx Issue

We are facing a strange issue on our servers. We have servers with 1GB RAM and some drupal sites are running on it. Generally all sites are loading fine but sometimes we are unable to access any ...
0
votes
0answers
5 views

How do I preserve a UNIX socket across reboots (RasPi, Arch, chroot) [migrated]

I've set up nginx and php-fpm under Arch Linux on a RasPi. nginx was set up in a chroot as described in the ArchWiki. Everything runs fine when php-fpm.conf and nginx.conf are set up to listen to ...
1
vote
1answer
35 views

Nginx htaccess rewrite specified folder

I tried to convert this htaccess rules to nginx: apache # Necessary to prevent problems when using a controller named "index" and having a root index.php # more here: ...
0
votes
0answers
47 views

Nginx websocket 502 bad gateway

I'm trying to use nginx as proxy for websocket nodejs server, but I'm always getting 502 bad gateway. my domain config: upstream server { server 127.0.0.1:8090; } server { listen 8085; ...
0
votes
0answers
19 views

How do i configure nginx to do image filtering?

I'm making my own image server and i'm trying to get the nginx HttpImageFilterModule to work. basically i want it so that: images.domain.com/original/path/to/image will get the original image ...
0
votes
0answers
56 views

Prevent Bruteforcing Without Use of MySQL [migrated]

I was looking into ways of preventing users from bruteforcing login scripts. I found two good ways: -Use reCaptcha -Check database before verifying user info to see how many requests the user has ...
0
votes
0answers
25 views

How to keep directives from location block after rewrite?

When rewriting locations I notice that directives in an initial location block before rewriting are not set. In this example only the header X-Bar: Baz will be set when requesting the URI /foo: ...
0
votes
2answers
33 views

NGINX is not forwarding a header value when using proxy_pass

I have the following setup and configured to send all /api requests to a different server: location /api { proxy_pass https://myapp.herokuapp.com; rewrite ...
0
votes
1answer
40 views

Do I have to configure daemon tools for Nginx or does Nginx handle its shutdown in a smarter way?

I use daemon tools with gearman I was thinking whether I should configure daemon tools for Nginx or does it handle its shutdown (in case of memory issue, etc..) automatically?
0
votes
1answer
24 views

Does using nginx as a reverse proxy require backend services to be public

The title might not be the best explanation. If I have nginx setup as a reverse proxy, listening on a public address, do the backend services sitting behind nginx need to be listening on a public ...
1
vote
0answers
41 views

HTTPS works, HTTP does not

I use NGINX 1.5.12 on Ubuntu 13.10 and HTTPS works fine and the pages are served (both HHVM and PHP5-FPM) trying to load the website in HTTP fails and WGET returns this: HTTP request sent, awaiting ...
0
votes
0answers
33 views

Strange messages in Nginx access.log

I was looking at my Nginx server's access.log just now and came across a bunch of messages that I don't understand. I used an IP lookup site and they're mostly from Asian IPs (Pakistan, India, Taiwan, ...
1
vote
1answer
64 views

how to stop a php-fpm process that started with a cron job but won't die

and thank you beforehand for reading this. I'm pretty new to linux and have just migrated from a shared hosting to a vps for my shop. I set up nginx with fpm and varnish, and some cron jobs to import ...
1
vote
1answer
34 views

Access log of nginx: why are foreign URLs logged?

My access log is full of such entries: 178.207.40.219 - - [03/Apr/2014:17:34:37 +0200] "GET http://win.mail.ru/cgi-bin/auth?Login=nutyck@bk.ru&Domain=mail.ru&Password=241716 HTTP/1.1" 403 168 ...
1
vote
2answers
41 views

Nginx Redirect via Proxy, Rewrite and Preserve URL

In Nginx we have been trying to redirect a URL as follows: http://example.com/some/path -> http://192.168.1.24 where the user still sees the original URL in their browser. Once the user is ...
0
votes
0answers
33 views

Unable to install nginx from source in provisioning script

I'm using Vagrant to build a reproducible virtual machine for one of my projects. This virtual machine needs a basic LEMP stack, and I'm using a shell script to provision it after it's created. The ...
0
votes
1answer
27 views

make nginx not log “no user/password was provided for basic authentication” in error logs

I've added password protection to a lot of my domain via nginx by adding: auth_basic "Restricted"; auth_basic_user_file /usr/ssl/htpasswd; to the nginx vhosts. I log all errors ...
0
votes
0answers
36 views

nginx service won't start after reboot + won't give output for service nginx status or start

A few weeks ago I configured an ec2 ubuntu server for my rails app. everything worked great. the database is on RDS and I use nginx and passenger for the rails app. anyway everything worked great ...
0
votes
1answer
45 views

Dynamic URL in nginx configuration

I am quite new to managing http server. How should I configure nginx to achieve behaviour like this: When there is a request for example.com/foo, nginx should serve index.html from /var/www/foo ...
0
votes
2answers
49 views

PHP exec “unable to fork” intermittent error on CentOS VPS

Using: PHP 5.5.10 nginx 1.5.10 Centos 6.5 a xen-based 4GB VPS My site uses encrypted paypal buttons. This encryption is done by the following code: $openssl_cmd = "($OPENSSL smime -sign -signer ...
-1
votes
1answer
59 views

Bind nginx on the same port for tcp and http [closed]

I have compiled nginx with the tcp_proxy_module by following this guide : http://stackoverflow.com/questions/12102110/nginx-to-reverse-proxy-websockets-and-enable-ssl-wss What I want to do is to be ...
0
votes
2answers
28 views

How to backup sql relations for server re-installation?

I am in need to re-install the nginx ubuntu 12.04 server I'm using in another machine. I've already got all the scripts (php,js,html, etc) so every data in the server is secured, but how can I do the ...
0
votes
0answers
98 views

nginx : no live upstreams while connecting to upstream

502 bad gateway error displayed when switching between site pages and some times on home page but not for the first request on the home page it is only when another page redirect to it. and it happens ...