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

NGINX Loadbalancer Using SSL Termination for Node.js Sessions

How can I ensure my session is passed from a NGINX loadbalancer using SSL termination? There must be some test I can perform and logs I can read. I am unsure how to continue approaching the ...
1
vote
1answer
22 views

Refused to connect to 'http://someURL' because it violates the following Content Security Policy directive: “connect-src http://someURL”

Well, that's the error which comes up from my browser console, I am working with one domain and that domain has only one sub-domain, and I still don't have access to the sub-domain. Actually I am ...
-2
votes
0answers
22 views

nginx not start , site down

today my vps not function , every web site hosted is down, i have centos 6.6 and web hosting panel (vesta) in service of vesta nginx not start, i try to deactivate the nginx for the site but the web ...
1
vote
0answers
15 views

How do I configure nginx to have a server block pointing towards a django app?

Suppose I have an nginx server, with Django apps set up as "/djangoapps/exampleapp1/" and "/djangoapps/exampleapp2/". Suppose I just registered a domain "www.exampleapp2.com". How can I point ...
-1
votes
0answers
10 views

Syncronise static data on three Nginx servers

I installed three Nginx nodes on which I do load balancing using a pfSense load balancer, and now I have to synchronise the static data on three servers, as I don't have a shared storage for them. I ...
0
votes
1answer
17 views

nginx proxy_pass rewrite of response header location

The aim of this nginx instance is to get GitLab and OpenWRT Luci to redirect through a reverse proxy. It's already working for several other websites, all which have a base url which seems to counter ...
2
votes
1answer
22 views

Nginx proxy to many container running on different CoreOS nodes

Surfing the net, I've found many tutorials about proxying to different Docker containers running on the same host, using Nginx/Confd (or Haproxy, or Vulcand). However, what I need to do it's ...
0
votes
0answers
5 views

nginx how to override/add single mime-type

I tried to add markdown rendering by putting types { text/markdown md; } into server section, but then index.html stopped to be rendered all of a sudden. I can explain this only if types overrides ...
0
votes
0answers
19 views

Nginx Echo Subrequest not working

I am new to Nginx. My requirement is I need to make a service call but along with proxy passing that request, I need to make call to another service/servlet. For this I decided to use Echo module to ...
0
votes
0answers
19 views

sec_error_unknown_issuer after new ip [on hold]

Yesterday my vps provider locked down my ip during 24 hours because of an external ddos attack. I immediately purchased a new ip, set it up in the network as eth0:0 (and added the original one as ...
-2
votes
0answers
23 views

Need to set up domain/subdomain using NGINX [on hold]

I need to set up a domain and a sub-domain in the same port. The domain is named www.just4bettors.mobi which is for a mobile site, and the subdomain must be named www.desktop.just4bettors.mobi which ...
1
vote
1answer
17 views

Nginx: alias and try_files with $args [duplicate]

When I try to use try_files with ?$args at location /api/v1 I get error 404. Without it it's working properly. Any idea? Nginx Configuration server { listen 80; server_name domain.com; ...
1
vote
0answers
23 views

Nginx: how to set host header to the server chosen (load balancing)

I have a site that works as load balancer. Site A. I have other sites that only can have one domain. So if i just redirect to them it says host name not found. So if i manually set header to ...
0
votes
0answers
10 views

adding nginx redirect with or without trailing slash [on hold]

adding a new rewrite to nginx for a url /store/ and /store is this the proper way... for with or without ending slash. See my code below rewrite ^/security(/.+)?$ https://send-to-new-site.com/blah
0
votes
0answers
27 views

nginx in front of tomcat : How to make the proxy pass work without the trailling slash / at the end

The problem I got nginx in front of tomacat like i said in the title. They are on two different servers . I need to make the proxy_pass work without the slash beause my app need to receive a request ...
0
votes
0answers
18 views

nginx & php5-fpm exited on signal 7 (SIGBUS) / 502 Gateway Timeout

if got the problem when i load a page multiple times (i.E. 10 Tabs with autoreload) only some of the pages load others get 502. it doesn't depend on the content of the page. when i open the same page ...
0
votes
0answers
20 views

Weird 502 responses of AWS ELB

My website suddenly failed to work this afternoon, responding every request with 502. I've set up 3 backend instances behind ELB, each with Nginx installed. At first, I suspected there's something ...
1
vote
0answers
30 views

NginX dropping session data when acting as an SSL reverse proxy for a sinatra application

I'm pretty much stuck at this point. I've got a website, served up on Mizuno (A Jetty variant, I think) using Padrino (A sinatra variant), on port 8080, with Nginx listening at 80/443 to allow for SSL ...
-4
votes
0answers
12 views

odd wordpress glitch on nginx [on hold]

I developed a site on mamp and bluehost Apache and now porting into AWS using Easy Engine to install wordpress and configure nginx. All is well except a custom category page doesn't seem to grab any ...
1
vote
0answers
18 views

Nginx user uploaded SSL Certificates

I'm wondering what's the best way to let users upload their SSL certificates. I have a multitenant application based on rails/passenger/nginx and I need each user to use his own domain with his SSL ...
1
vote
0answers
38 views

nginx try_files redirect using wrong scheme when behind SSL termination load balancer (haproxy)

I have an nginx 1.6.2 server running as a backend behind a load balancer that does SSL termination. All communication to the backend servers goes over HTTP. Diagram of what's going on: ...
0
votes
0answers
31 views

502 bad gateway nginx. uwsgi, flask

Ok so I developed a web app in python and it worked with the internal server: if __name__ == '__main__': app.app.run(debug = True) with no issue at all. I am now trying to start up a nginx ...
1
vote
1answer
44 views

Nginx location = not working

I have two sites that I need to serve: a static one and a dynamic one (Rails app, doesn't really matter actually). I'm thinking about the following: requests to domain.com/ => Static website ...
0
votes
0answers
13 views

uWSGI reload not picking up new code changes

I've setup a server with nginx and uWSGI to server a django application. I deployed some changes to the server this morning which weren't picked up so I assumed my reload method wasn't working - sudo ...
0
votes
0answers
16 views

Nginx+PHP-FPN slow only on the benchmarked domain

While benchmarking my website using: $ ab -n 1200 -c 150 -k -H "Accept-Encoding: gzip, deflate" I notice that while the test is running it takes several seconds to access the same page from the ...
1
vote
2answers
17 views

Trying to rewrite /directory/dir_variable/ to /directory/dir_variable/index.php

I'm trying to rewrite something like this: domain.tld/staging/base_1/ to domain.tld/staging/base_1/index.php where '1' is a variable number. but am getting a redirect cycle. *1 rewrite or ...
1
vote
1answer
21 views

nginx rewrite all to https except for a subpath?

I want all urls that are http to be redirected to https. http://example.com/blah/blah changes to https://example.com/blah/blah I have this snippet in my nginx conf that achieves this effect: ...
0
votes
1answer
17 views

Have Nginx hold requests while app is reloading

I have an nginx reverse proxy server set up to forward requests to an app running on port 5000 via proxy_pass http://localhost:5000;. This works, however when I restart the app, for about 10 sec ...
0
votes
0answers
23 views

Nginx http_referrer hostname regex?

I'm trying to redirect other websites that contain a specific word in the hostname. I use the following code in my vhost file: if ($http_referer ~* "hostname1|hostname2" ) { rewrite ^ ...
0
votes
0answers
20 views

Nginx (+Varnish) adds port 8080 to url when accessing url without slash

I am running Nginx with Varnish on Ubuntu 14. If I access a url without a slash on my test server (http://example.com/history), the page load fails and I get (http://example.com:8080/history/) ...
0
votes
0answers
28 views

Kibana 3 on nginx with ssl

I installed Kibana 3 on nginx with the nginx-auth-ldap module. And with the example nginx.conf provided by elasticsearch and added ssl support. But for some reason, when accessing kibana with https I ...
0
votes
1answer
36 views

Using Nginx as Webserver and Reverse proxy

I am trying to setup Nginx as a reverse proxy and webserver together. and I'm having issues in trying to understand how I can do it. Let's assume I am using the default Symfony2 nginx configuration ...
-3
votes
0answers
26 views

Display video on demand on Android devices

Video stream from my server not displayed on an Android device with native applications. I am not an Android expert and I would appreciate any help. Which video format is supported by an Android ...
2
votes
1answer
33 views

NGINX cache error: conflicts with already declared size 0 in /etc/nginx/nginx.conf

My current nginx for drupal config gives following error. Somehow, I am not able to enable nginx cache. Tried different config but overtime i get the same error. Can anyone help please? nginx: ...
0
votes
1answer
44 views

Reverse Proxy for PHP: Best practice?

I'm setting up NGINX as a SSL reverse proxy for three small web apps with dynamic (PHP) and static content. What would be considered best practice security-wise and performance-wise when it comes to ...
3
votes
1answer
28 views

Nginx forwarding git.example.com to www.example.com

As in the title, my website, git.mad3ngineer.net forwards to www.mad3ngineer.net. However, my ci.mad3ngineer.net uses the same system but works just fine... The website can be checked out at ...
1
vote
2answers
39 views

Nginx configuration files structure

Where do I put specific domain configuration files on an nginx server? I've seen a lot of conflicting information. Does it belong in the sites-enabled folder? If so, do I put it in the already created ...
0
votes
0answers
24 views

Updating Content Specific Caching NGINX + Wordpress

somewhat new to setting up a web server. I am using a VPS from digital ocean with nginx installed to host a wordpress site. I am trying to play around with content specific caching rules and am ...
-1
votes
1answer
33 views

Nginx allow/deny not working (403 Forbidden)

I am attempting to set some allow/deny directives within nginx for a few subfolders on my server. I am modifying the /etc/nginx/sites/enabled/default file, which is listed below: server { listen ...
0
votes
1answer
34 views

Django mail reports blocked by Gmail

I configured my Django 1.6 framework to send error reports to a Gmail account so I can check them. Before this worked well, though I had to define filters to catch the sender mail addresses I ...
0
votes
1answer
28 views

How to serve first Nginx regex server_name servers

I have a Nginx config which look like this : server { server_name sub2.sub1.example.com; listen 80; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name ...
-1
votes
1answer
46 views

502 bad gateway after upgrading PHP5-FPM

I just upgraded php-fpm and my server has gone away with a 502 bad gateway I've been searching for solutions and came across some like this: http://stackoverflow.com/a/10470827/1612432 and this ...
0
votes
0answers
58 views

Random speed on downloading files from Nginx/lighttpd

I've tried both lighttpd and nginx as webservers. All to very same result: In the morning, when the load is low, files are lighting fast to download. But later, when the load is a BIT more, server ...
0
votes
1answer
33 views

Nginx ignoring HTTP headers before Host header when using proxy_pass to Apache

When Nginx is sent the following request, Apache is unable to get the "app_version" HTTP header. I normally use apache_request_headers() to get all headers. I have also examined the contents of ...
8
votes
0answers
144 views

Why is Internet Explorer 11 unable to connect to HTTPS sites when TLS 1.2 is enabled?

Normally I don't use Internet Explorer at all. I use it only in design time for interface tests (development machine and with unencrypted http). Every week I run the SSL Labs server test which says ...
1
vote
1answer
28 views

Redirect root to WordPress subfolder under nginx

I recently got a VPS with nginx and moved my WordPress instance over. After some browsing around, I got permalinks to work. The blog is located inside a blog folder. I would like for requests to ...
1
vote
1answer
138 views

CentOS 6.6 with Nginx 1.6.2 - Suddenly can't restart nginx - nginx: [emerg] open() “/usr/share/nginx/on” failed (13: Permission denied)

This is a new install in which nginx previously started and stopped normally. I believe this error arose after enabling server blocks which tested (nginx -t) successfully. I then tried to restart ...
-1
votes
1answer
19 views

Trying to get nginx to return 301, preserving $_GET

I'm having trouble configuring nginx to return the url I want. I'd like http://domain.com/blah?abc=e9800ecf8 to return http://domain.com/createpage.php?abc=e9800ecf8, i.e. it preserves the abc ...
1
vote
1answer
21 views

nginx regex location not matching

I have the below location below, which is among a larger conf file. As reference, this works: location = /scripts/news/admin/index.js { alias /my/file/path/news/scripts/admin/index.js; } ...
-1
votes
0answers
16 views

Web server dedicated for PHP requests [closed]

I've dedicated server (8 core,32 GB) which has to manage only PHP requests (Symfony2) because all static files are in my external CDN. Which is the best configuration? 1) Apache 2.4 (MPM Event) + ...