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

HTTP Digest authentication on proxied server

I have a 1.) client, a 2.) nginx powered proxy server and 3.) some servers which addresses are unreachable for the client, the proxy handles the communication from the client to these servers. ...
0
votes
1answer
62 views

New SSL, Safari can't open the page b/c server unexpectedly dropped the connection (subdomain)

After much googling and Serverfault browsing I still have an SSL problem : Safari can't open the page at all, Firefox gives a "secure connection fail" after 5mn of inactivity (not browsing or ...
0
votes
0answers
16 views

How set root directory to share remotly with proftpd

I have done install and configuration proftpd and create user in fedora but after i use ftp client i can't access the root directory like nginx webserver folder ftp cilient only display/access public ...
1
vote
1answer
29 views

Ubuntu Nginx after blocking ip address, still showing up in logs

I have a server that keeps trying to brute force hack via xml-rpc post on a wordpress site. I've blocked the ip address in nginx.conf and noticed that I kept getting these errors in the log file, and ...
0
votes
1answer
37 views

OpenVPN and nginx port sharing : Adress already in use

I have an instance of nginx running on ports 80 and 443, and I would like to use openvpn with the port 443 in sharing. So in my server.conf I have this port 443 port-share 127.0.0.1 4433 proto tcp ...
-1
votes
1answer
45 views

HTTPS certificate not working on WWW, but is on NON-WWW

I bought an SSL certificate from SSLMate and it's working fine on my Nginx server when I access http://example.com, but not when I access http:// www.example.com I believe the problem has to do with ...
0
votes
1answer
28 views

Reverse Proxy with Nginx showing default screen

I'm trying to setup a reverse proxy to my JIRA instance using Nginx. server { listen 80; server_name jira.domain.com; location / { proxy_set_header X-Forwarded-Host $host; ...
0
votes
2answers
34 views

CloudFlare giving error 522 without HTTPS

I've set up Let's Encrypt (with nginx) on my server, following the tutorial I've linked in the comments. I've also set up CloudFlare with the following DNS settings: http://i.imgur.com/Z7PRD6l.png ...
0
votes
0answers
24 views

nginx basic auth on a file doesn't work

location = /admin { rewrite ^(.*) /admin.php?$1; auth_basic "Administrator login"; auth_basic_user_file /srv/www/test.domain.io/wvb_landing/.htpasswd; } It doesn't work. ...
0
votes
0answers
30 views

Nginx load banlance: how to configure interface to let servers work together? [closed]

I've ask this question, and @gf_ says: Imagine four machines: [m]achine 1 hosts nginx and got two network interfaces: One connecting to the public internet, one connecting to a private network, ...
0
votes
1answer
30 views

Nginx load banlance: why ip in upstream is always inner ip?

I saw many tutorial using inner ip to define upstream: upstream MyUpstream { server 10.0.0.201 weight=3; server 10.0.0.202 weight=2; server 10.0.0.203; } As you can see, 10...* is inner ip. I don't ...
0
votes
0answers
19 views

Rewrite permalinks in subdirectories

I have multiple wordpress websites currently in my root /data. I added the following to enable permalinks: location / { try_files $uri $uri/ /index.php?q=$request_uri; } Most of these sites ...
0
votes
0answers
76 views

Setting up a sub-domain to point to a flask application on same digital ocean droplet (with uwsgi and nginx on Ubuntu 15.10)

I have a domain called abc.com which points to a static html page, in /var/www/abc.com/public_html. I want to host a Flask application on same droplet (different port maybe?), which is accessible ...
0
votes
1answer
66 views

nginx fails to start on boot with systemd on Ubuntu 15.04 and 15.10

nginx will not start on boot, but starts fine manually. The logs say something like nginx: [emerg] host not found in upstream "{some hostname}" in /etc/nginx/conf.d/some_site.conf nginx: ...
0
votes
1answer
48 views

is it possible to terminate SSL with Nginx and cache https responses from the backend?

Looking to terminate SSL from backend service at nginx and offload to clients as http. Cache all responses for performance and offline scenario. With the setup below I'm not able to cache, what's ...
0
votes
0answers
35 views

Ajenti nginx 403 on main server domain

Hi guys i bind dns my server on domain.com , and i 'm using ajenti-v too for controll websites and now I wanna use my main domain.com as php website too so i create website account and setting but ...
1
vote
2answers
35 views

Nginx correct SSL Certificate order

I got the following files: priv.key // This is my priv key and contains one -----BEGIN ENCRYPTED PRIVATE KEY----- section req.csr // This is my certificate request file cert.pem // This is my ...
0
votes
1answer
26 views

nginx: String Replace plus sign with hyphen

I am trying to rewrite hundreds of URLs, and I've gotten pretty close except for one scenario. Some URLs look like this: /city/?sl_city=CityName&directory_nonce=45ad967e02 But some have a + as ...
0
votes
1answer
78 views

Centos 7 nginx php upgrading

My currently running website works great and it currently using php 5.4.45 FPM/FastCGI, however I would like to upgrade to php 5.5.9+ for an api documentation subdomain that has that php requirement. ...
2
votes
2answers
52 views

Nginx : Alternative to if inside location blocks for caching headers based on a variable

I'm trying to use Nginx page caching instead of Wordpress caching. The caching seems to work fine, but I'm having trouble setting conditional caching headers based on a variable - whether a user is ...
0
votes
0answers
24 views

IPTables Reverse Proxy Breaking PHP-FPM | nginx/php-fpm/iptables/centos

Information: I have been trying to make a reverse proxy on my server using iptables rules. I use nginx to reverse proxy on SSL to port 8080 where I run another nginx server. The problem: IPTables ...
0
votes
1answer
31 views

Accessing server file system through URL

I have an ec2 instance. Since it was started I was able to access the instance through the public DNS (in the browser) just fine. I initially set the instance up as I needed to host a php script that ...
0
votes
0answers
50 views

Multiple Gunicorn daemons for Django projects with Nginx result in 502 Bad Gateway for one

I want to run two Django applications on the same server, with Nginx and Gunicorn. I can run them separately, but not both at the same time: When I try, one is OK, but for the other one I receive 502. ...
0
votes
1answer
45 views

Redirect Error after redirecting https to http

I have redirected all https requests to http. Here you can see what I have done in the nginx config file: * #redirecting https to http:: server { listen 443 ssl; listen [::]:443 ssl; ...
0
votes
1answer
56 views

Nginx - redirecting all requests after a URL path to a PHP script

In our existing Apache setup, we have a .htaccess file in a folder which redirects all requests to a PHP handler. For example: www.example.com/gallery/user01/xyz.png For this URL request: The ...
1
vote
1answer
68 views

Nginx: possible to generate redirect based on proxy_pass response?

Currently I have a system with a number of different nodes and I want to do the following: Proxy pass a request (A simple GET) and receive a response with a body that contains a URL Redirect the ...
1
vote
2answers
110 views

sketchy nginx access log entries

There were quite a few entries as below in the nginx access log. How do I know the outcome of these scripts and if my server is compromised or no? 162.232.183.48 - - [14/Jan/2016:10:54:57 +0000] "GET ...
0
votes
0answers
45 views

Nginx on front of Varnish

I have Nginx(1.9.9) on front of Varnish(4.1.0) on the same server. //nginx upstream varnish { server 127.0.0.1:8391; keepalive 16; } location ~ \.php$ { proxy_pass http://varnish; ...
0
votes
0answers
25 views

Disable nginx fastcgi_cache when disk is full

When there is no disk space, nginx is still able to work correctly. It can serve static files, and it can pass the request to a fastcgi server (such as PHP), and it can serve the dynamic response to ...
0
votes
0answers
41 views

Collectd dynamic (regex match) “Instance”

I thought I had seen, but subsequently cannot find information on how to use the regex matches in Instance. For example I have an nginx matcher which has the following, I'd like to replace 61: and ...
1
vote
2answers
55 views

Nginx reverse proxy for elasticsearch - inserting filters

I've got an elasticsearch instance, with an Nginx reverse proxy sat in front of it, implementing a URL level access control mechanism - approximately as described in this article This is giving me ...
0
votes
1answer
31 views

url rewrite, nginx throw 404 errors, nothing in error logs

below rewrite works fine: rewrite ^/city/restaurants$ /city/listings/restaurants permanent; but this doesnt work rewrite ^/city/restaurants$ /city/listings/restaurants last; rewrite ...
0
votes
1answer
87 views

Configure basic python 3.5, flask, uwsgi, nginx app

Not sure where I am going wrong here, all I get is a 502 bad gateway. (server ip is 104.197.13.112) The code for all the configuration files and basic app are in a github repo. github repo nginx ...
0
votes
0answers
16 views

What user should own a website's files? [duplicate]

I'm building a website on a Debian server using Nginx. My root web directory will be /srv/http and my websites will go inside of it (e.g. /srv/http/ecom1, /srv/http/ecom2, etc.). Who should own the ...
-1
votes
2answers
43 views

How to alias directories in nginx?

I for the life of me cannot figure out how to make aliases for locations. Basically, I have /var/www on my server, which could contain any number of folders (for different applications). One of those ...
1
vote
1answer
78 views

nginx / ssl: Always redirect to one of two https subdomains [duplicate]

My webserver supports the following two subdomains: https://www.example.com https://en.example.com I want to create my nginx config so that: http://en.example.com$request_uri => ...
1
vote
1answer
57 views

nginx: Redirect https traffic without subdomain to subdomain (non-www to www)

My current ssl certificate covers the subdomains www.example.com and static.example.com So if a users try to access my site via https://example.com I want to redirect him to https://www.example.com . ...
1
vote
1answer
32 views

Nginx subdomain configuration not being picked up/working

I'm trying to setup a server block for a subdomain, but nginx doesn't seem to pick up the configuration (properly). What it does is just pickup the first configuration block available and set it as ...
2
votes
1answer
44 views

Nginx doesn't have permission to access files with the same ownership

i've just installed nginx on an Archlinux box and encounter this problem: Nginx is configured to run as "nginx", a new user/group that I added, in /etc/nginx/nginx.conf: user nginx nginx; For ...
1
vote
1answer
24 views

rstudio-server on Nginx reverse proxy

I run locally a service, rstudio-server. This service can be accessed on my machine local IP, port 8787. Now, I would like to access this service from my server with this address: rstudio.example.com ...
1
vote
1answer
36 views

nginx add path to url while proxy_pass

I have following proxy_pass in nginx: upstream svnserver { server 10.0.1.90; } server { server_name svn.domain.com; listen 443 ssl; root /var/www/html; error_log ...
2
votes
0answers
45 views

Set CORS headers on nginx

Addresses like http://vpsxxx.ovh.net/g/search?q=ok or http://vpsxxx.ovh.net/so/questions/34738694/how-to-move-items-on-the-screen-for-a-game-using-javascript are proxied well, when trying them from ...
0
votes
1answer
52 views

NGINX port proxy not working

I am trying to make it so that instead of typing "www.example.com:8080", I just type "www.example.com". I am using NGINX but I cannot seem to get it working. I have found many helpful articles online ...
0
votes
3answers
50 views

NGINX Reverse proxy not loading resources

I'm trying to put a reverse proxy in front of a few internal web services. Nginx is setup and working properly to serve request. If I only serve one location / in my conf file, it loads that ...
-1
votes
0answers
25 views

Understanding SSL and Nginx

I'm a bit of a newbie when it comes to setting up SSL, and I'm hoping someone here can answer my question. I have a web app I've written that accepts client requests through a RESTful interface, and ...
0
votes
0answers
13 views

Conditionally change url/host header being passed to passenger based app on nginx

I have a Sinatra app running with nginx/passenger. In particular occasions I want to change the url Sinatra receives to a mapped variable. I saw passenger_set_header, but it seems to throw an error in ...
1
vote
1answer
37 views

Protecting a location by IP while applying basic auth everywhere else

I want to achieve the following results: Apply basic authentication to ANY location, file, path Remove basic authentication for an IP/CIDR range whitelist Prevent ALL access to a specific directory, ...
1
vote
1answer
34 views

Slow HTTP Throughput with NGinx

I had an issue the other day and you guys were very helpful. I've been racking my brain on this one for over a week. Basically, I have several nginx servers reverse proxying a python application ...
-1
votes
0answers
19 views

nginx: rewrite relative paths and exclude some paths

Here again the bloody regex: i want to rewrite from : /city/listings/restaurants to /city/restaurants *i.e: i want to remove listings from url* **** pls note "city" and "restaurants" always ...
0
votes
0answers
25 views

Redirect lang set in url with Nginx regex

I can't find the way to redirect the lang set in url with Nginx. I tried this: location ~ ^/(en|fr|de)/cloud/signup { return 301 $scheme://cloud.$host/$1/home/new; } Also this: location ...