Nginx ("engine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

learn more… | top users | synonyms

0
votes
0answers
5 views

nginx geoip redirect for first time only leads to redirect loop

I'm trying to configure nginx to perform geoIP checks on first-time visitors only. The idea is that first-time visitors should be redirected to the page version which has been customised for their ...
0
votes
0answers
8 views

Perl scripts stopped working after Debian 8.1 upgrade

I am currently playing around on my dev server, to try and get it running the latest Debian (Jessie). I've got it all upgraded using this tutorial: ...
1
vote
3answers
2k views

Django fails to find static files served by nginx

I know this is a really noobish question but I can't find any solution despite finding the problem trivial. I have a django application deployed with gunicorn. The static files are served by the ...
0
votes
0answers
6 views

nginx continually returns 503, even after the server it's proxying recovers

I have nginx proxying a different service using proxy_pass. The backend service will ocassionally crash (i.e. the process stops). When this happens, nginx understandably returns a 503. But I have ...
0
votes
1answer
27 views

Switching from nginx to apache with wordpress

I have recently switched from nginx to apache. Everithing went fine since i checked out my wordpress website. The homepage is going well, and also the admin area, but subpages with permalinks ...
0
votes
0answers
14 views

Nginx fails to load static after putting caching configuration

I am trying to implement leverage browser caching for nginx. But when i insert the code inside conf file static files are not served by nginx showing 403 permission denied error. This is my conf file ...
0
votes
0answers
15 views

LampCMS works as a sub-directory on Apache but fails on Nginx

The Web Application: It is LampCMS within a Wordpress folder. The main web site runs on Wordpress. A requirement made us create LampCMS under this Wordpress site. LampCMS is accessed over a URL ...
0
votes
0answers
9 views

Many php-fpm processes created and they do not go away

I have PHP (5.5) using Laravel framework on NGINX with PHP-FPM. Here is what I do. I have a script myscript.php <?php while(true) { @file_get_contents('http://myserver.com/api/data'); } ...
0
votes
1answer
22 views

How to use Nginx to both rewrite and proxy_pass whilst keeping the user-entered URL

I'm a beginner Nginx user trying to proxy the following: http://subdomain.example.com/mypage/login TO http://some_ip_address/login (not just /login - the site has other contexts too e.g. /static, ...
4
votes
2answers
1k views

Deploying Django App with Nginx, Apache, mod_wsgi

I have a django app which can run locally using the standard development environment. I want to now move this to EC2 for production. The django documentation suggests running with apache and ...
2
votes
1answer
2k views

redmine gives 404 error after installation

I am using Debian squeeze with nginx and mysql. After raking db and loading default data to redmine. When i try to visit redmine in a browser, http://ipaddress:8080/redmine, I get a 404 error Page ...
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
19 views

Place nginx frontcontroller out of webroot

Just as an experiment, I was trying to remove my index.php from the webroot in nginx and directly point to app.php, as the only thing the index file does is this: <?php chdir(dirname(__DIR__)); ...
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
36 views

How to configure nginx for multi-site reverse proxy?

I'm trying to configure nginx as a reverse proxy for two websites on the same server. This is what I'm doing: upstream alpha { server localhost:49212; } server { listen 80; ...
0
votes
0answers
9 views

nginx on debian wheezy and TLS > 1.0?

Hi I already searched for some hours, but I only found solutions, where they had used older nginx/openssl-versions. My problem is: How can I activate TLSv1.2 in nginx in that way, the client will ...
4
votes
1answer
417 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 ...
-1
votes
0answers
13 views

how to configure naxsi to accept json format in rest apis?

for example one of my APIs is: Post request: /api/v0/login body: { "username":"xxx@ggg.com", "password":"eeeee" } I want to secure this API with naxsi, I could not find anywhere to config naxsi to ...
5
votes
1answer
753 views

Mirroring Traffic with Nginx

I need to duplicate/mirror the traffic comming to my server/resource. I mean, I have server A and B and N (nginx) as webserver. All the traffic comming to N/resource --> redirect to both A and B Is ...
-1
votes
0answers
12 views

nginx http substitute module

I'm trying to figure out where ./configure is. The setup guide says run the below: Installation To install, get the source with subversion: git clone ...
0
votes
1answer
33 views

What functions are preferred to be disabled to increase webserver security?

I'm looking into securing my webserver additionally and thinking I could disable certain PHP functions to prevent potential issues. Could someone share some tips regarding this or guide me in right ...
0
votes
1answer
23 views

Removing port from nginx redirect

I have a domain so www.mysite.com running app Django. In this server I created a Blog with WordPress. www.mysite.com/blog Nginx Django app: upstream django { server 127.0.0.1:8001; } server { ...
3
votes
1answer
3k views

nginx $uri is url decoded

I am using nginx as reverse proxy and I have 2 rules like: location ~ ^/indirect { rewrite ^/indirect(.*) /foobar$1; } location ~ ^/foobar { set $url ...
0
votes
0answers
32 views

Nginx 400 Bad Request on ec2 Public IP works, but domain name does not

A couple days ago, my ubuntu t2.micro ec2 instance stopped working. I just got it restarted again, but now only my public IP address given by amazon works. The domain name I bought does not. It worked ...
-2
votes
0answers
18 views

NGINX - proxy_store save images

server { listen 80; root /var/www/public_html/; index index.php index.html index.htm; server_name servertest.com; location / { ...
0
votes
1answer
15 views

Nginx “rewrite or internal redirection cycle while internally redirecting to ”/index.html"

So here is my problem: I have the same problem with every file I try to access. It always sends me back to index.html or shows me an 500 server error. The error log gives me: "rewrite or internal ...
2
votes
2answers
3k views

Mysterious error with php5-fpm

I'm having a very difficult case with latest php5-fpm (from debphp) and nginx 1.4.3 on Ubtuntu 12.04LTS. In short, I cannot start php5-fp at all, I keep getting this error in syslog: kernel: ...
1
vote
1answer
153 views

502 errors on random (not all) pages

A few weeks ago I noticed in the Google Webmaster tools that a few of my URL's were returning 502's. One such URL is http://www.sau.com.au/forums/topic/437438-around-the-bay-wrap-up/ This URL ...
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 ...
-1
votes
0answers
18 views

nginx server installation on centos6 redirecting to /cgi-sys/defaultwebpage.cgi

i'm installing wordpress to my VPS, so far i belive i have everything configurated correctly but it doesnt starts the wp-admin/install.php, it redirects to /cgi-sys/defaultwebpage.cgi everytime i go ...
1
vote
3answers
1k views

Nginx custom 404 page results in 500 internal server error

Here is my nginx config: server { # Running port listen 80; error_page 404 /404; # Settings to by-pass for static files location ^~ / { # Example: # root ...
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
21 views

Can't make nginx listen on nonstandard ports (3000, 35729)

This is on a fresh install of Ubuntu 14.04 running on a VPS. For example the following will work: server { listen 8080 default_server; root /var/www; location / { try_files $uri ...
0
votes
0answers
12 views

install php with nginx [on hold]

I'm new to all things related to webservers. Until now, I used apache. But I want to give a try to nginx. So I decided to install it, alongside PHP. This are the steps I followed (I mention that I use ...
0
votes
0answers
15 views

Will nginx route no traffic to an upstream host with weight 0?

I would like to temporarily route no traffic to a host in an nginx upstream. Rather than commenting it out, as this means nginx would be completely programmatically unaware of it, I was wondering ...
-2
votes
0answers
9 views

Varnish + nginx + WPTouch

I'm trying to get wp-touch pro to play nice with varnish. They work together with the default.vcl below. But for some reason varnish caches admin and login pages, making it impossible to save ...
0
votes
0answers
16 views

How do i make my web browser choose local virtual host over a site on internet [on hold]

I have different virtual hosts on my local machine i added them into /etc/hosts by ip 127.0.0.1 They were working fine but today when i try to access one browser was keeping connecting to internet ...
0
votes
1answer
989 views

Vagrant, nginx 404 - fastcgi sent in stderr unable to open primary script

Was googleing a lot of and didn't find solution for this. Have found few accepted answers here on stackoverflow, but they didn't helped me. I am using vagrant for development, or at least trying to ...
0
votes
1answer
784 views

How to update and add module nginx debian

How to update nginx with adding module without deleting old nginx files/configs? I installed nginx with apt-get install, i tried install by downloading tar.gz from nginx site but it doesnt gave any ...
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 ...
-1
votes
0answers
17 views

Nginx with Python and Wordpress same server [duplicate]

I have a aplication with Python/Django running in www.mydomain.com. I want to create a blog with WordPress in the same server and I want my domain looks like this: www.mydomain.com/blog In nginx how ...
0
votes
1answer
41 views

Redirect subdomain.domain.com to www.subdomain.domain.com

We have currently a wildcard vhost accepting all domain request. I want to redirect subdomain.domain.com to www.subdomain.domain.com so my wildcard will answer One exception, I dont want to ...
14
votes
4answers
20k views

Nginx config reload without downtime

I use nginx as a reverse proxy. Whenever I update the config for it using sudo "cp -r #{nginx_config_path}* /etc/nginx/sites-enabled/" sudo "kill -s HUP `cat /var/run/nginx.pid`" I face a brief ...
0
votes
0answers
20 views

Nginx Proxy - How to check images are cached?

On nginx server, i have config location ~* \.(gif|jpg|jpeg|png|ico|wmv|3gp|avi|mpg|mpeg|mp4|flv|mp3|mid|js|css|html|htm|wml)$ { root /var/www/cache; expires 365d; } i check the folder ...
0
votes
2answers
83 views

ELK stack: Can't load Kibana 4

I have installed Elasticsearch, Logstash, Kibana and Nginx following this guide, exept I used the latest version of everything. ...
3
votes
6answers
17k views

How do I make Nginx redirect all requests for files which do not exist to a single php file?

I have the following nginx vhost config: server { listen 80 default_server; access_log /path/to/site/dir/logs/access.log; error_log /path/to/site/dir/logs/error.log; root ...
0
votes
0answers
15 views

404 Not Found or 500 internal server error using nginx try_files configuration

I'm trying to move my project from Apache to nginx. I use WT-NMP. I'm converting .htaccess to nginx configuration by adding this in nginx.conf. location / { try_files $uri $uri/ /index.php/$args; ...
8
votes
3answers
4k views

nginx connection timeout & client closed connection issue

I have this nginx server running on AWS & it was working all fine until recently when couple of users started complaining about the website not opening until they made some 10 attempts to access ...
0
votes
1answer
37 views

Nginx redirect failure for icingaweb2

I'm trying to configure IcingaWeb2 using Nginx, and having some issues with it. The suggested Icinga Nginx configuration is: location ~ ^/icingaweb2/index\.php(.*)$ { # fastcgi_pass 127.0.0.1:9000; ...
2
votes
2answers
4k views

403 Forbidden when trying to access a folder in document root of nginx

When I access index.php, it works fine. But on localhost/pset7, it gives a 403. Here is the permission log, -rw-r--r--. 1 root root 51 Jul 31 14:21 index.html -rw-r--r--. 1 root ...