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

Nginx cannot connect to .sock file

2014/10/25 03:42:06 [error] 2324#0: *708 connect() to unix:/tmp/steam.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: xx.xx.x.xxx, server: steam.uwot.me$ I ...
0
votes
1answer
34 views

With nginx serve a custom 404 page with header 404, without changing the browseraddress

How do I force nginx to serve a custom 404 page while responding with a 404 header, without changing the address of the browser so the user can easily retype? I tried this at my testsite (added after ...
4
votes
2answers
51 views

Redirect users connecting with SSLv3 within nginx

I was looking to drop all support for the SSLv3 due to POODLE, but found that there are still some people coming from old browsers for the likes of IE on Windows XP. How do I detect these SSLv3-only ...
1
vote
0answers
20 views

How to use a custom variable for the scheme in a rewrite rule in nginx

Is there a way to get nginx to treat a custom variable the same as it treats the $scheme in a rewrite rule? For instance: rewrite ^/redirect http://example.com; # and rewrite ^/redirect_with_scheme ...
0
votes
2answers
35 views

“nginx is not running” - but it actually is

Running Ubuntu Server 14.04.1 LTS Checking nginx status says it's not running: $ sudo service nginx status * nginx is not running However, it is, as the websites it's powering are working, and: ...
-1
votes
1answer
25 views

Apache mod_rewrite to Nginx rewrite

I have a virtual private server with whm/cpanel. I have installed nginx_admin plugin. The plugin has created virtual host files (example.com, *.example.com and manage.example.com) In my old apache ...
-14
votes
0answers
36 views

Messed my localhost ubuntu completely [on hold]

I was running apache 2.4.7 on my ubuntu local machine then for testing purpose I installed EHCP on it, after that I didn't feel comfortable with EHCP so I removed it and tried installing nginx that ...
1
vote
1answer
18 views

API and main page as two separated processes

SITUATION I created an REST API for my mobile application and now I want to create a website. API so far is very very simple, just for a couple requests like 'get list of contents', 'update some ...
0
votes
1answer
17 views

Nginx forward all requests to another domain

I have been struggling to get this whole setup to work. I've found bits and pieces on the net but nothing that solves all of my requirements. I need to do this to make IE8 work, so unfortunately my ...
0
votes
0answers
11 views

django dev server and gunicorn +ngnix different response

I have a Django based web app which performs tasks of ~30sec. If I call the task method using the Django dev server I get the correct result, whose is specifically an XML response. If I call the task ...
-2
votes
0answers
23 views

how to setup nginx with fcgiwrap for perl? [on hold]

i'm trying to set up nginx for perl im using antix, a debian based distro i installed both and configured some files followed lots of tutorials some with spawn-fcgi, others without closest i got was ...
0
votes
0answers
31 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
34 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
20 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 ...
-3
votes
0answers
30 views

merge nginx server config from different files [on hold]

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
28 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 ...
-1
votes
1answer
28 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 ...
0
votes
1answer
13 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
25 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
40 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
28 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 example.com; rewrite ^(.*)$ ...
2
votes
1answer
36 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
23 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
20 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
17 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
41 views

Protect server from uploads [on hold]

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
16 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
25 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
18 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
18 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
58 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
41 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
96 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
37 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
49 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
18 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? [closed]

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
18 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
32 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 ?
9
votes
1answer
245 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
65 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
37 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
21 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
15 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 ...