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
1answer
30 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
7 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
411 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
751 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
9 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
30 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
20 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 ...
-1
votes
0answers
16 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
13 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
148 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
13 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
20 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
11 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
8 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
984 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
783 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
16 views

Nginx with Python and Wordpress same server

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
40 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
75 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. ...
0
votes
0answers
11 views

Unable to convert Apache's 'Alias + Directory derivative containing rewrite rules' to 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 ...
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
12 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
36 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 ...
0
votes
0answers
16 views

ngnix proxy_pass HTML resources

I'm setting up a reverse proxy that connects to different localhost ports with different services. This is the NGINX site configuration: server { listen 0.0.0.0:80; root /var/www/; index ...
0
votes
1answer
26 views

Nginx conflicting server name for subdomain

I currently have a vhost running on Nginx for foo.domain.com and everything works great. I created a new file for a new sub-domain I want to add called bar.domain.com. I use the same settings for ...
4
votes
3answers
5k views

multiple sub_filter rules for a reverse proxy on nginx?

with no evil plans I am trying to mirror a site under other domain, while changing a few strings on the fly. I set up nginx on a new host to serve as a RP to the master site. This allows to set one ...
7
votes
2answers
2k views

Sharing unix socket via docker volume - permission denied

I try to share my php5-fpm socket via a volume with my nginx webserver. Fpm and nginx are running in different containers and I want to get them working via a shared volume where I place the socket ...
8
votes
4answers
10k views

Increase PHP-FPM's max upload/post size

I'm running php5-fpm under Nginx on Ubuntu 14.04. I want to increase the max upload size. I have edited my /etc/php5/fpm/php.ini to have the following lines defined as below: upload_max_filesize = ...
0
votes
1answer
984 views

How to increase nginx connections

I am facing the problem of nginx max connection issues. I am not able to increase max active connections(520) made by nginx. Some time it is using whole writing (516) operation connections. and due to ...
0
votes
0answers
14 views

nginx redirects URL to itself

I want to do some redirection based on user agent. Here is what I have done until now: server { server_name share.example.com default_server; access_log off; root /opt/snapshots; ...
0
votes
0answers
16 views

How to setup NGINX Reverse Proxy for Mulitple Domain with diffirent Hosting

Recently, I've started working on my NGINX reverse proxy project. There following websites which is hosted on different website Hosting with different IP / DNS. Example.com foo.net Takesrs.com ...
0
votes
1answer
3k views

checking and reading cookies with nginx

I can't find much ressources on how to manage cookies with nginx… I've seen that two variables are relatives to cookies, that is $http_cookies and $cookie_COOKIENAME. Anyway, i absolutely doesn't ...
0
votes
0answers
10 views

How to configure NGINX to servce Python file and also Django file?

I have the following NGINX configuration: server { listen 8888; root /var/www; index index.html index.htm; location / { try_files $uri $uri/ /index.html; } } ...
-1
votes
0answers
20 views

How to configure nginx reverse proxy for ftp [duplicate]

I am trying to configure nginx reverse proxy to point to an FTP server. I've tried this: server { listen 21; location / { proxy_pass http://66.55.147.67:21/; } } with and ...
0
votes
0answers
21 views

nginx does not allow access by subnet

I have the following conf file in /etc/nginx/conf.d/app.conf. I am trying to limit access to /path1 and /path2 url to /16 subnet range. When I try to access froma machine in the subnet I get 404 only ...
0
votes
1answer
34 views

Nginx randomly refuses SSL connections

I am running the website https://telerandom.com (NodeJS server, port 9576) behind an Nginx reverse-proxy. It usually works, but on occasion, it begins to refuse all SSL connections from certain users ...