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

Clear nginx cache via HTTP request?

I have the usual proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=drupal:16m; proxy_cache_key "$scheme$host$request_uri"; to establish proxy caching. How should I ...
0
votes
0answers
12 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
votes
0answers
12 views

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

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
11 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
0answers
9 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
10 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
1answer
70 views

How Can I Check nginx load?

How can I check the current load on my nginx server?
5
votes
1answer
2k views

Varnish “FetchError no backend connection” error

Varnishlog: 0 CLI - Rd ping 0 CLI - Wr 200 19 PONG 1340829925 1.0 12 SessionOpen c 79.124.74.11 3063 :80 12 SessionClose c EOF 12 StatSess c 79.124.74.11 3063 ...
0
votes
1answer
34 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
2k 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
1answer
74 views

Clear NGINX cache using FTP

I have an NGINX server set-up to handle caching for a website (running elsewhere). Works like a charm, however we want to administrators to have an option to flush the cache from their backoffice. I ...
2
votes
1answer
136 views

Nginx or Varnish caching with multiple versions of a site

I have a website (https://mediacru.sh) that has a few versions. There's the normal desktop site, the same site with a dark theme, and the mobile site. They all share the same URLs. The theme is ...
0
votes
0answers
7 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
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 ...
0
votes
1answer
2k views

install nginx on suse linux enterprise 11

I need some help getting ngnix installed on Suse Linux Enterprise 11. This is my first time trying to do this so I am likely missing something basic. Thus far I have: wget ...
0
votes
0answers
18 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 ...
2
votes
1answer
29 views

Nginx + GUnicorn + Flask + www-data user - file lockdown

I have some pretty basic questions about I am deploying a Flask application in Gunicorn (19.0-1) on Ubuntu (14.10) in combination with Nginx. Since this app sits along side to Web2Py, I followed a ...
2
votes
3answers
2k views

Ruby on Rails Process Stuck at 100% CPU

Environment: Ubuntu 10.04 LTS, Passenger, Nginx 1.0.6, MySQL, Ruby 1.9.2, Rails 3.1 After some amount of time, the server ends up with a gradually increasing number of processes that are stuck at ...
0
votes
1answer
13 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
0answers
15 views

nginx location within named location?

I'm trying to filter the request to my website. So I'm using below configuration: location / { if ( $ifbot = "1" ) { return 482; break; } return ...
0
votes
2answers
12 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
23 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 ...
0
votes
0answers
16 views

Website showing the default nginx page [on hold]

My website is showing the default nginx page. The ip of the vps on which the site is hosted is also showing the default nginx page. My site is thefeedy.com I am missing out a step and need help. The ...
-1
votes
0answers
9 views

NGINX + PHP5-FPM stop responding after some time [on hold]

I have some strange issues using nginx and php5-fpm. I'm running a server on my raspberry pi and it works flawlessly, but after some time the site takes ages to load and shows a 502 or 504 error. I ...
0
votes
0answers
20 views

How to redirect all http traffic to https [duplicate]

I am using nginx and would like all http traffic to become https using nginx. can someone post an example for nginx config file? Here is mine. it's not working and i don't have a lot of nginx ...
0
votes
1answer
257 views

Method request in nginx

my Nginx report in error log with 2012/07/24 13:00:16 [notice] 19056#0: *3275841 "^(GET|HEAD|POST)$" matches "GET", client: 42.114.191.177, server: _, request: "GET /template/images/loading.gif ...
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. ...
0
votes
1answer
13 views

Nginx proxy to upstream dedicated static file server [on hold]

I'm in the R+D stages of the most important project of my life. I'm a single person on a a stretched thin income, so i can't quite afford a wildcard ssl certificate, and ssl is an requirement, however ...
1
vote
1answer
115 views

Nginx, check for request method without using IF?

I am trying to optimize my Nginx config but ran into an issue I don't know how to fix. I have a folder /images on my server from which I deliver various static files for a website. The same folder ...
0
votes
1answer
14 views

PhalconPHP and AngularJS on Nginx

I am trying to run a combination of PhalconPHP and AngularJS of a Nginx webserver with the following file structure: /root /api index.php index.html PhalconPHP is located in the API folder ...
0
votes
1answer
889 views

How do you get multiple ports working with nginx proxy_pass and Node Express?

I have multiple node instances running each on a different port. (8000, 8001, etc.) I also have nginx running on port 80. What I am trying to do is allow a user to enter my site via a single domain ...
3
votes
1answer
11k views

How to change the Nginx default folder?

I setup a server with Nginx and i set my Public_HTML in - /home/user/public_html/website.com/public And its always redirect to - /usr/local/nginx/html/ How can i change this ? Nginx.conf - ...
0
votes
0answers
9 views

Nginx proxy rewrite to a different host

I've been banging my head against the wall trying to get this working. I'm hoping someone can point me in the right direction. I am trying to use Nginx to reverse proxy to a set of servers in a ...
1
vote
1answer
11 views

Nginx alias with trailing slashes

I have a sub-site working under a parent website like this: http://example.org/sub-site (http://example.org/sub-site/ works too) Everything seemed to work well, including : ./sub-site/sub-section ...
0
votes
0answers
23 views

ModSecurity + Nginx “SecRule” startup error

I've installed Nginx (1.8.0) + ModSecurity (2.9.0) from source on OpenBSD (5.6), without problems. But when I try to configure modsecurity with the default config, upon starting nginx I get: ...
1
vote
1answer
1k views

Getting 502 bad gateway after updating php to 5.5

On my ubuntu 12.10 server I upgraded php to 5.5. After getting 502 errors on my wordpress site I did some googling and discovered I need to change my nginx configs to match the passing of php scripts ...
0
votes
0answers
7 views

How do I start nginx (+ passenger) with an RVM system-wide install on nginx?

My nginx installation was working with an RVM installation for single-user, but when I switched the RVM installation to a multi-user (system-wide) installation, /etc/init.d/nginx start gives a ...
0
votes
1answer
1k 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 ...
5
votes
3answers
2k views

Do you need separate ipv4 and ipv6 listen directives in nginx?

I've seen various config examples for handling dual-stack ipv4 and ipv6 virtual hosts on nginx. Many suggest this pattern: listen 80; listen [::]:80 ipv6only=on; As far as I can see, this achieves ...
0
votes
1answer
463 views

Nginx Rewrite Rule For File Within Folder Not Working

My problem seems trivial but after several hours of testing, researching and fiddling I can't seem to get this simple nginx rewrite function to work. There are several rewrites we need, some will ...
1
vote
2answers
867 views

Session lost in tomcat uing nginx as proxy

I have several applications in a tomcar server. I am using nginx for proxy so i can achieve acceding the application from a subdomain tomat:8080/app1 > app1.mydomain.com tomat:8080/app2 > ...
0
votes
0answers
28 views

nginx - Allow any http-traffic that is not x-forwarded-for

In my nginx configuration, only a few whitelisted IPs are allowed (based on x-forwarded-for header), and rest all are blocked via deny all rule. Since nginx is running behind an AWS load balancer, I ...
0
votes
2answers
1k views

NGINX location clause for only root domain

How do I only redirect too sub1.example.com when hitting $request_filename ~ /sub1 on example.com. For example if I'm on sub1.example.com, hitting /sub1 wont redirect me back too sub1.example.com but ...
-1
votes
0answers
14 views

Proxy a URL in a path/location in nginx

I want to create a location block like this location /proxy/ { proxy_pass $url; } So I can reach arbitrary servers (and add headers, etc.) using something like this: ...
0
votes
0answers
19 views

Unable to access server after hosting panel installation [on hold]

I cannot seem to be able to install any hosting panel on my VPS. I tried with several panels, last of them being Sentora (I've run the installation script on a fresh minimal install, as required in ...
0
votes
1answer
35 views

How to config Nginx runs php on sub directories?

I have 2 versions of portfolio website for 2 languages. I put them in 2 dir in the same root dir. /root/ |----vi/ |----en/ |----index.php Then I config nginx as below: server { ...
-2
votes
1answer
31 views

nginx (latest) is not working together with spawn-fcgi

My OS: Debian 7 (latest) x64 My Domain: www.DeadalusHD.com My nginx-vhost: server { listen 80; ## listen for ipv4; this line is default and implied listen [::]:80 default_server ipv6only=on; ## ...
0
votes
0answers
24 views

Handle redirects on proxied server

Hi I'm trying to make mirror for website.ru at website.com It should display website.com in browser and proxy_pass all traffic to website.ru. Here is my config: server { listen 443; ...
1
vote
2answers
28 views

nginx log when specific referrer is present

Because someone steals content from our website, I need to create additional log file, that logs only if http_referrer contains specific domain. Currently I have this: if ($http_referer ~* ...
0
votes
1answer
1k 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 ...