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

Use nginx as reverse proxy for outgoing mail

We have a production server running a singlepage web-app and a separate proxy server, for security reasons. Every request to our web-app is handled by our reverse proxy (nginx) on the proxy server. So ...
0
votes
1answer
22 views

nginx logging to access.log.1 instead of access.log, logrotate failing?

I have an nginx instance that is set to log access to /var/log/nginx/access.log and errors to /var/log/nginx/errors.log, but as soon as logrotate runs each week, the file gets moves to *.log.1 and the ...
0
votes
0answers
16 views

JS and CSS file are not loading due to missing forward slash

My client moved to new server which nginx & percona server. Problem is the forward slash is being removed from end of the url. as you can see in the picture: therefor the design files such as ...
-2
votes
0answers
13 views

merge nginx server config from different files

The nginx.conf: *** include myapp.conf; server { listen 80; location / { root xxx; } } *** myapp.conf: server { listen 80; location /mybusiness { proxy_pass http://the-backend; ...
-4
votes
0answers
23 views

NGINX setting up multiple Gmail addresses properly

I have a NGINX server set up, and everything works, including PHP and PHPmyadmin. But now I want to be capable of sending emails with PHP forms. I got this somehow working with sendmail for only my ...
-3
votes
0answers
29 views

NGinX > Allow visits only via domain, block by IP address

I have a Dedicated Server with 2 IP's eth0 = 1.2.3.4 eth0:0 = 1.2.3.5 I am trying to block people from accessing my server via my IP address. Ideally I would like them to only be able to access it ...
-1
votes
1answer
21 views

nginx proxy keeps getting bad gateway

I am running a CentOS7 virtual machine and trying to proxy it to a subsonic server which is running on Windows Server 2012. When I was using apache it was working without issues but I am currently ...
-3
votes
0answers
22 views

Recompiling Nginx on live server on centos [on hold]

I have found some related questions but they don't exactly answer the question. It's a live server (high traffic) so we need to minimize downtime. Centos 6.5, AWS Need to recompile Nginx to include ...
0
votes
1answer
10 views

increase nginx active connection more than 65535

currently I'm doing setup for nginx to accept C1M, I do in my Virtual BOX with Centos 7.0 and RAM 10G. Here my sysctl.conf configuration. fs.file-max = 9999999 fs.nr_open ...
0
votes
0answers
21 views

Upgraded to Ruby version 2.1.2, passenger still on 1.9.3

I installed Ruby 2.1.2 using RVM, and changed the nginx.conf file with the appropriate passenger_ruby and passenger_root paths, but my Rails application is still running on Ruby 1.9.3. Why is my Rails ...
0
votes
2answers
36 views

Nginx silently dropping header lines that exceed 1128 bytes

I have Nginx set up as a reverse proxy to a uWSGI application (a Django app). Due to the nature of the content that the Django app is hosting, sometimes the URLs get long. Really long. Because of ...
-2
votes
0answers
21 views

NGINX Adding Duplicate Query Parameters

I am running NGINX 1.4.1 and have the following setup: I am not allowing WWW server { listen 80; client_max_body_size 4M; server_name getfetcher.com; rewrite ^(.*)$ ...
2
votes
1answer
33 views

Nginx resolver address from /etc/resolv.conf

Is it possible to set resolver address in nginx proxy configuration from /etc/resolv.conf? It can be useful for example in docker or in virtualenvironment.
0
votes
1answer
21 views

Nginx proxy_pass based on file extension and query string

I need to proxy_pass static assets (.js .css) based on file extension and query strings. For example: domain.com/foo.css - go to upstream1 domain.com/foo.css?V=1234 - go to upstream2 Reason is I ...
0
votes
1answer
19 views

Restricting subdomains using regex in nginx

I'd like to know how to limit(not rate limiting) subdomains effectively. Here's my example where the redirecting of invalid subdomains is handled by an if statement with regex matching. server { ...
0
votes
0answers
16 views

Nginx redirection to url writen in requested file

I need to setup dynamic redirections. For example, a user open a link : http://www.example.com/2/3/4/ and see the page on the following address: http://www.example2.pl/something. I know about ...
-1
votes
0answers
40 views

Protect server from uploads

I have NGINX let's say with root /home/leonel/www In the www folder i have the upload.php and dl.php file User uploads to upload.php and upload.php moves the uploaded file to a subfolder of the ...
0
votes
0answers
15 views

Shibboleth/Nginx run on non-standard port

Our team runs all our Nginx installations on 8443 instead of 443 for the obvious reason that you don't need to be root to listen on the port, and so the process can be started and stopped with lower ...
0
votes
0answers
15 views

How to invoke a custom nginx module for any request? Is handler always needed? Can filters be invoked directly instead?

I am trying to write a nginx module which will filter out GET requests for any resource whose size is greater than say 1000KB. I followed the tutorials, the module compiles and installs fine. However ...
0
votes
1answer
24 views

Https Nginx with Apache on :8080

I don't know if it is a dumb question. However, i got a debian server with nginx listening on port 80, nginx also forward all non-static content to apache2 running on 127.0.0.1:8080 I want my site ...
0
votes
1answer
17 views

Nginx - Separate location for /

I'd like to use nginx to have one location used for just the root url (https://example.com/) and serve all other file from a different location. Eventually I want to use this to do authentication on / ...
0
votes
1answer
15 views

VPS with no X server - need a remote WWW GUI to manage FTP accounts remotely [on hold]

I have a Linux VPS server with no graphic interface, and I do not want one. I need a way to manage the FTP accounts via graphical interface using the browser, remotely. One solution can be to ...
0
votes
1answer
55 views

Nginx dynamic proxy_pass doesn't resolve properly

I'm having problems configuring nginx, I've searched the web for solutions and I have some bits and pieces but I'm still not able to come up with proper configuration. I have registered a domain, ...
0
votes
1answer
39 views

nginx proxy_redirect websockets, not proxy

I have been able to successfully set up nginx as a load balancer to proxy websocket requests (with SSL), however, really I think I need to be able to redirect them. My desired configuration is to ...
-1
votes
0answers
20 views

Is cache exists nginx [duplicate]

I'm trying to set up debugging header Is-From-Cache, but I don't know how to detect if cache exists and nginx is taking it. May there is some kind of bulit-in variable $is_cache_exists?
3
votes
2answers
94 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 ...
1
vote
2answers
34 views

How to make NGINX redirect from http to https?

I want to redirect from http to https in an NGINX server block. Following an answer in a related post I tried adding another server block in the following NGINX config file, but got a 'conflicting ...
0
votes
1answer
40 views

nginx reverse proxy for websockets with SSL

I am trying to configure nginx (installed via macports) on my osx development machine. I am trying to reverse proxy localhost:12346/trade to a websocket connection which is available on port 12346 at ...
0
votes
1answer
17 views

Nginx + LimeSurvey:

I'm trying to secure my Limesurvey 2.0.5 admin page (running under Ubuntu 12.04, Nginx 1.19, PHP5.3.10, PHP-FPM). The admin page should only be accessible from a specific subnet so in my conf i used ...
-3
votes
0answers
36 views

What is the most appropriate control panel for virtual hosting behind Nginx? [on hold]

I have several domains on Digital Ocean hosting which runs behind Nginx server. I am using it mainly for python aps, but I would like to setup them with PHP as well. Python apps run behind Gevent ...
0
votes
1answer
27 views

Control redirect from a html file and not in Nginx configs

I've got a case where I need to setup a nginx server that only will serve sites (about 800) with static content. Many of the sites will initially have no real content themselves and should just be ...
0
votes
1answer
16 views

How to deny requests in nginx when there is no referer?

In nginx access.log I see many lines like: 1.2.3.4 - - [19/Oct/2014:22:48:11 -0400] "POST /someurl/suburl HTTP/1.1" 200 19967 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) ...
-1
votes
1answer
31 views

Debug Nginx caching

I want to determine when I am getting cache hits or misses. Preferably, this would be a header, like X-Cache: HIT or X-Cache: MISS How can I do this with Nginx (a reverse proxy for the upstream ...
-1
votes
1answer
19 views

Does Nginx respect maxage from upstream server?

I see the proxy_cache_valid directive, but that confuses me. In HTTP, doesn't the upstream server specify this with Cache-Control and maxage? How do I get Nginx's cache to use maxage ?
8
votes
1answer
230 views

Passing SSL protocol info to backend via HTTP header

After Poodle vulnerability was revealed recently, our team decided to move on from SSLv3. But before complete removal, they want to warn the daily users that their browser use deprecated SSLv3. So, we ...
0
votes
2answers
63 views

php not working on nginx fresh install on centos 6.5 [on hold]

Got me a fresh install of centos 6.5 on virtualbox (under my lynx distro - mint). I've created a new user with public_html under the user's home directory, added simple php file and set up all ...
1
vote
1answer
36 views

Adding virtual host to nginx using IP and folder

I want to test this website for which I don't have a domain yet, and wanted to be able to access it via something like this: http://123.123.123.123/testsite I thought that on my testsite.conf file I ...
2
votes
1answer
17 views

nginx location conflict for 2 ember-cli apps under one domain

I'm trying to setup 2 ember-cli apps under one domain on nginx. http://example.com/ http://example.com/bar App 1 is stored under /var/www/foo, and App 2 is stored under /var/www/bar. First prize ...
0
votes
0answers
14 views

Varnish + Nginx and Wordpress, POST redirect not working?

I am having trouble with Varnish not redirecting to the right URL's of Wordpress backend. When I POST the username and password on the login page, it doesn't gets properly redirected, so I GET the ...
0
votes
1answer
35 views

Nginx: multiple domains not working

I'm trying to have multiple sites on the same server. I have a DigitalOcean VPS with Debian and Nginx. Whatever I go to site1.com, site2.com or site3.com, the site shows the site1.com content. Also, ...
1
vote
1answer
25 views

How to deny POST to a url in nginx

Some of the sql heavy urls on my app (say /members) are being attacked by botnets. So I'd like to disable anybody to post to these urls, while allowing others to GET them. I tried to make a nested ...
0
votes
1answer
30 views

Nginx Passenger Node Application URI Rewrite

I have a node application that accepts all routes starting at /. The Nginx / Passenger configuration for it is: server { listen 8889; server_name localhost; location / { root ...
1
vote
1answer
18 views

Can the execution time of PHP scripts be logged on Nginx

I have some issues with our clients reporting some of our web pages being slow. This could be for a number of reasons but I want specifically to log the execution time of each page, without having to ...
0
votes
1answer
27 views

Pass PHP5-FPM errors back to error page script?

My nginx has an error_page setup that throws 500 errors to a PHP page. I wish to display/log any PHP errors that cause this error page to show. When I say display, I mean show in-browser depending on ...
12
votes
1answer
365 views

How to mitigate POODLE but keep SSLv3 support for old clients

How do I mitigate the POODLE attack, but still keep support for old clients such as IE6 on Windows XP or an e-mail client. I've noticed that google does this: ...
1
vote
1answer
33 views

Securing REST APIs with NGINX

Hi I have an API behind NGINX. The API is configured to require authentication for all actions. I want to have an NGINX proxy in front of it to pass authentication parameters for some of the actions ...
0
votes
0answers
83 views

uWSGI appears to be losing requests

I'm seeing the following in the uWSGI logs, specifically ...The work of process 43017 is done. Seeya!: [pid: 43017|app: 0|req: 103/114] 207.140.171.16 () {50 vars in 847 bytes} [Fri Oct 17 12:59:49 ...
0
votes
1answer
52 views

Simpler solution to this nginx config?

When I setup a website with ssl, I almost always have this boilerplate nginx config (instructions in comments): # Redirect both (http/https) non www. to www. server { listen 80; listen ...
0
votes
0answers
15 views

Can't login users on Varnish 4

I am testing this wordpress varnish 4 config https://github.com/nicolargo/varnish-nginx-wordpress/blob/master/varnish/varnish4-wordpress The site is being cached and served, but seems that the ...
0
votes
1answer
33 views

How to remove language part of $uri for purpose of try_files in nginx 1.6?

I have a site with language prefixes in $uri, for example: http://www.example.com/en/some/content http://www.example.com/ru/novost Sadly, due to limitations of framework I'm using, files are also ...