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 goes to the wrong site when requested site is not listening on port 80

I had both production (www.myexample.com) and development (dev.myexample.com) on a single server, using server blocks and separate directories, with both listening on port 80. This worked fine. Now ...
0
votes
0answers
17 views

Nginx 403 Forbidden Error After Basic Auth

I created auth for protect my phpmyadmin. But If I enter right login details, its shows me 403 forbidden. sudo nano /etc/nginx/conf.d/default.conf location /phpmyadmin { auth_basic "Admin ...
-3
votes
1answer
20 views

Unrecognized Service Nginx ERROR

I freshly created droplet on digital ocean, centos 6.5 64 bit. I did all things below. After make install, it seems like nginx doesn't installed my server. I am getting Unrecognized Service Nginx ...
0
votes
0answers
43 views

In Wordpress, why the domain name is changed by the IP address?

Today I have installed and configured a Wordpress in a new hosting. I changed de WP_HOME constant with the domain name and everything seems to be well done, all the links are pointing to ...
2
votes
1answer
31 views

nGinX Forbidden still triggers request limit

I have some "deny" rules before the request limit config. If a blocked user (by the deny rules) is ddossing the site he still triggers the request limit and therefore creates thousands of log entries. ...
-1
votes
0answers
20 views

dynamic sub-domains: advice needed (debian 8 running NGINX)

I need your advice regarding architecture. Say I have a domain mydomain.com I'd like to have dynamic sub-domains: *.mydomain.com I will need anything that's not www.mydomain.com to be routed to a ...
5
votes
2answers
20 views

Does Nginx `if_modified_since` only work on static resources?

I can't seem to find enough documentation. I have an app that generates some dynamic responses, but could still benefit from the Last-Modified header -- so I send it. However, turning on ...
1
vote
0answers
11 views

nginx: Use geo module with allow/deny directives

Reading nginx's ngx_http_access_module's documentation, I came across this: In case of a lot of rules, the use of the ngx_http_geo_module module variables is preferable. How can I use allow/deny ...
1
vote
0answers
16 views

Varnish keeps getting MISS when Nginx is backend server

I am experiencing a really weird situation where Varnish works fine with hitting directly to application server (Play server), but not working with Nginx as web sever. Working: Varnish:6081 => ...
-2
votes
0answers
11 views

Ubuntu + Nginx + Mono [on hold]

Can anyone help, how do I setup Mono web server to process my web services. My .aspx web pages are served properly but when I try to execute a web service than its gives me 500 Internal Server error. ...
1
vote
1answer
18 views

FastCGI cache is always a MISS

So, I've setup FastCGI cache like this: location ~ \.php(/.*)?$ { fastcgi_cache RWI; fastcgi_cache_valid 200 60m; set $nocache 0; if ($request_method = POST) { set ...
0
votes
1answer
21 views

Nginx SSL cant connect to site

I just bought a SSL certicate for my website and tried to get it working with my nginx install, but uppon connection the browser refuses the connection with the website. Here is the relevant part of ...
0
votes
0answers
9 views

nginx sends 404 instead of waiting for fastcgi

Our nginx is configured to send thumbnails from a folder. If they don't exist, nginx has to pass the request to fastcgi to generate the thumbnail and send it to the user. If the requested doesn't ...
1
vote
1answer
13 views

Redirection with subdirectories urls in Nginx

When with my browser, I do a call to http://myhost/tiles/yellow/1/2/3.png, I would expect to get content from http://myhost/cache/yellow.png My configuration is the following location /cache/ { ...
5
votes
2answers
64 views

How to make redundant load balancers?

I understand that the purpose of load balancers is to balance load between your servers and keep track of instance health, etc. But what if load balancer itself fails? How do you set up redundant load ...
3
votes
0answers
23 views

Protect Piwik on Nginx with basic authentication, but allow access piwik.js

I got nginx running on my server and recently installed Piwik with this config: server { listen 443 ssl spdy; server_name analytics.example.org; root /srv/www/analytics.example.org; index ...
-3
votes
0answers
26 views

error 404 new installation of wordpres in localhost with nginx hhvm

I have problems with wordpress and nginx on localhost. The phpinfo test runs within the default folder nginx user,,,, When I try to install wordpres says, error 404 If I make a test page ...
0
votes
1answer
15 views

Nginx refuses to read new directory in /home

I'm on CentOS6.6, installed "Akeneo" and all went well. Installed into /home/pim so the actual location for nginx to use is the web directory where app.php is located. Doing a namei on ...
1
vote
0answers
19 views

Change Nginx document root from /usr/share/nginx to /etc/nginx

I've tried many things, STFW, RTFM but I still have this problem. The thing is: I have a Nnginx installed in an AWS machine (other fella installed it, not me) and I MUST serve several virtual hosts ...
-3
votes
0answers
15 views

Can Nginx Web Server beat Apache's Performance and Reliability? [on hold]

I need to run my website on the Nginx server before I wa using Apache , PHP & MySQL framework, nowadays heard of this Nginx , I need to run 3 Web sites which is having web application & hell ...
0
votes
1answer
25 views

Two differents directories with Nginx

I have two directories on my server, the directory1 with others directories inside, and the directory2 with a single file index.php. I want to access to my index.php with http://server/ ...
-1
votes
0answers
12 views

Nginx ip_hash load balancer and external auth via SAML2

We are trying to make work a system, consisting of two application hosts and one nginx load balancer before them with ip_hash balancing method enabled. The problem is that we need to use an external ...
2
votes
1answer
25 views

configuring ssl on nginx - is this ciphers list up to date?

I have bought a certificate from Comodo and I'm following an article on their site on how to configure the certificate on my nginx. The question is, is this configuration, mainly the ciphers list, up ...
-2
votes
0answers
16 views

How to know if nginx is running or not using this ps statement? [on hold]

I am trying to test if my nginx is going to run automatically on startup or not. These are my config files /usr/local/etc/nginx/nginx.conf: worker_processes 1; events { worker_connections ...
0
votes
0answers
26 views

Nginx TCP Fast Open Issue

I have configured Nginx and Apache on one of my servers. The nginx server listens on port 80 and Apache on port 81. Nginx works as a reverse proxy. In nginx I configured TCP Fast Open: server { ...
0
votes
1answer
22 views

Unable to open JPEG files with Nginx

I am serving a static page with assets. Unfortunately i am not able to open images, whereas JS and CSS files are going through quite fine. I simply receive 403 (Forbidden) when trying attempting to ...
1
vote
1answer
27 views

No Input File Specified with Nested Docroot

I have the following nginx config for 2 different domains: server { listen 80; root /srv/users/serverpilot/apps/myapp/public; index index.php index.html index.htm; server_name ...
0
votes
0answers
15 views

Nginx extensionless PHP rewrite not working

I have been trying to rewrite my php pages so that they display without their extensions in the browser. For example, a link on my server at www.example.com loads a page called about-us.php and in the ...
1
vote
0answers
20 views

nginx rewrite with php interpreter [on hold]

First off, Im new to nginx, I'm switching from apache. I setup a server using the ajenti control panel. I got php working just fine. however when I try to do a rewrite rule I get some strange ...
0
votes
0answers
22 views

Nginx Varnish 4.0 SSL Wordpress configuration redirects mydomain.tld to https://127.0.0.1

I have the following stack: (redirect http to https =>) https nginx -> varnish -> nginx http -> php5-fpm When I open my.url.com I get instantly redirected to https://127.0.0.1 Without varnish, ...
0
votes
1answer
30 views

nginx Browser Caching does not work

I have the following problem. I'm using a nginx server. To serve my images correctly I've added following location rule: location /images/ { alias /srv/mysite/images/; autoindex off; } ...
2
votes
0answers
8 views

nginx error log :r eturned busy again while sending response to client,

I got lots of errors in my nginx errorlog as following: 2015/04/28 20:05:32 [alert] 67449#0: *29938935 sendfile(/var/www/images/201504/13/210123jpt6cpjj6r1g2upt.jpg) returned busy again while sending ...
0
votes
0answers
20 views

configuring a vhost in nginx to forward query parameters [closed]

I'd like to forward query parameters like example.com?p=1&z=2 to a meteor app. But how to configure a working vhost in nginx? It shouldn's be a redirect. Only forwarding of the parameters.
2
votes
0answers
45 views

Init script has permissions issues, but running with /bin/sh resolves them? [closed]

Can someone tell me what's going on here? As far as I knew, these ways of executing an init script are identical. box:~# whoami root box:~# /etc/init.d/nginx restart nginx: [emerg] open() ...
0
votes
1answer
9 views

Nginx subdomain issue nginx tries to get files from the subdomain's parent httpdocs

I am trying to make a subdomain (for the purposes of this question: grace.myexample.com) using nginx. The configuration is as follows: server { listen 10.10.185.163:80; server_name ...
1
vote
0answers
18 views

Nginx, reverse proxy and caching only some of the routes

I have a RESTful API running in the UK but somehow it's so slow for AU users. So what I would like to do, put an nginx proxy on a AU server and cache some of the routes for 1, 10 and 60 mins and don't ...
-3
votes
0answers
75 views

Why do I keep getting “403 Forbidden - nginx/1.6.2 (Ubuntu)” when visiting any of my sites? [closed]

Why do I keep getting "403 Forbidden - nginx/1.6.2 (Ubuntu)" when visiting any of my VPS hosted sites? I have recently changed to nginx installation from Apache2 on my Ubuntu setup on my ...
1
vote
1answer
18 views

How to restrict nginx server to a single ip on a multi ip server

I have multiple websites running under a server with two IPs. How do I configure nginx to listen at just one ip? For example: IP: 192.168.10.10 with nginx (multidomain) IP: 192.168.10.11 - etc... ...
2
votes
0answers
30 views

nginx, separate robot access log and human access log

I'm trying to separate the robot access log and human access log, so I'm using below configuration: http { .... map $http_user_agent $ifbot { default 0; "~*rogerbot" 3; ...
1
vote
0answers
49 views

How to configure HHVM with Nginx compiled from source?

I installed Nginx 1.8 (compiled from source) on Debian 7: cd /opt/ sudo wget http://nginx.org/download/nginx-1.8.0.tar.gz sudo wget http://labs.frickle.com/files/ngx_cache_purge-2.3.tar.gz sudo tar ...
1
vote
1answer
51 views

nginx: How to log TLS error (if unsupported ciphers / protocol)

I'm in the progress of switching to 100% https. Server is running nginx+libressl. Before going https:100% I'm interested in seeing which clients would no longer be able to connect to my site. E.g. ...
0
votes
1answer
32 views

Why this nginx rewrite rule add trailing slash?

I've the following rewrite rule on location /, and it enforces trailing slash! location / { rewrite ^(\/.*) https://example.com/ar$1 permanent; } each, time I curl mydomain.com, I got the ...
0
votes
0answers
23 views

lighttpd: Translate nginx try_files to lighttpd

I'm struggling while translating the following nginx rule to lighttpd: try_files $1 $uri $uri/ /abcdefg/index.php$is_args$args; Can someone explain me, how this would look like in lighttpd? Thank ...
0
votes
0answers
18 views

Thorough search: nginx mainline & GeoIP repository for CentOS? [closed]

I am looking for nginx repository that contains package built with --with-http_geoip_module and has mainline version of the package. I have searched for a while, and found several CentOS ...
0
votes
0answers
19 views

wsgi nginx error: permission denied while connecting to upstream

There seem to be a few questions on stackoverflow and serverfault about this but unfortunately nothing has worked for me. I'm getting a 502 bad gateway on nginx, and the following on the logs: ...
0
votes
0answers
22 views

Is it good or bad to have dynamic virtual hosts configuration in Nginx?

I have a dozen sub-domains hosted in a single server using Nginx. Currently I am using a single configuration like this: server { listen 80; server_name *.example.com; root ...
0
votes
1answer
43 views

Best way to manage multiple domain with SSL in single droplet?

Firts of sorry about my poor english, but I'll do my best. Currently I manage 2 domain on my $5 DigitalOcean droplet and have use Cloudflare as my DNS manager with Flexible SSL configuration, ...
0
votes
1answer
16 views

Nginx forward ssl to ISPConfig lxc container

I am having issues with https connexions to the ISPConfig admin panel (port 8080). My setup is relatively standard. I own a physical host, which routes all traffic on common ports to an LXC container ...
0
votes
2answers
20 views

Nginx & PHP-FPM: Query parameters won't be passed to PHP

I am currently setting up a machine for local development using Vagrant. Everything runs as it should, expect query parameters aren't passed to PHP on subpages. That means on www.example.com/?a=b, ...
0
votes
0answers
35 views

nginx + fastcgiwrap = 502 Bad Gateway

I'm trying to execute a cgi script on my web server. I'm running Debian 7.8 (wheezy), with nginx 1.8.0 and fastcgiwrap 1.0.3-3 (both installed via aptitude). Here are my nginx settings (taken from ...