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

-3
votes
1answer
19 views

php5-fpm works for a bit and then stops (nginx/wordpress) [closed]

I'm running wordpress on an nginx/php5-fpm setup and every few minutes, php stops working. When someone tries to subscribe, it works at first and then it stops and takes the user to a 500 server ...
0
votes
3answers
55 views

Passing multiple https domains through Elastic Load Balancer

I just moved a site from one domain to another. It's still on the same servers behind an AWS Elastic Load Balancer. I also changed the certificate on the load balancer to one for the new domain. The ...
0
votes
0answers
41 views

Nginx Codeigniter have double slash in url

im new to nginx and have the following problem: i tried to remove index.php, and config nginx to work properly with CI and done the following config server { listen 80; listen [::]:80; ...
1
vote
0answers
54 views

Nginx proxy with varying source address

I have a working nginx configuration to proxy all requests to a server from a range of source IPs. I currently have 20 source IPs set up, and the configuration is quite massive. I removed the other 18 ...
0
votes
1answer
28 views

Nginx .php scripts restriction in subfolder

I would like to deny external (from web) access to some PHP files related to MoxieManager. Whole MoxieManager is in www/moxiemanager folder, where www is accessible from web. Now I tried this ...
-1
votes
1answer
21 views

Change URL in Nginx Config

How can I change url to go to only one location rather than request coming from. URL : www.example.com/blog is going to /var/www/blog (which is correct) www.example.com/blog/abc should go to ...
0
votes
2answers
51 views

Nginx serve plain file if exists else serve /index.php

I want Nginx to serve any requests for static files on its own, but if the file doesn't exist, then serve index.php which will handle it all Currently my configuration looks like this, server { ...
0
votes
0answers
28 views

Gunicorn Flask Deployment with Supervisord doesn't find command on boot

I am deploying a Flask application with Gunicorn, Nginx and Supervisord. Here is my config file for the application: [program:apwd-flask] command = /home/aaron/dev/apwd-flask/venv/bin/gunicorn ...
0
votes
1answer
22 views

Wordpress Subfolder issue with Nginx Configuration

I am using wordpress and it's a multi-site subfolder config. - www.xyz.com is pointing to /var/www/project (Working) - (Wordpress blog) www.xyz.com/blog is pointing to /var/www/blog (Working) - ...
0
votes
1answer
32 views

Multi-site Subfolder Nginx Configuration

I have Nginx server. Currently, I have two projects: www.xyz.com -> /var/www/project/public; (This is working) www.xyz.com/blog -> /var/www/blog; (Error: This webpage has a redirect loop) How can ...
-1
votes
2answers
38 views

nginx 1.8.0 ssl configuration root location behaving unexpectedly

I bump into this problem. I recently install nginx 1.8+ on a centos 6.7 along with PHP-FPM (5.3+). The installation was fine and setting up the virtual host was okay too but when I create a secure ...
-1
votes
2answers
28 views

How to host multiple apps on one server and point multiple domains to them?

I am trying to figure things out and I am confused. I know some things but not enough. I know that domains actually point to the IP address of a server. So if I want to have two apps, they both have ...
0
votes
0answers
17 views

How to debug “host not found in upstream app_server”?

I created a fresh django (digitalocean) droplet on ubuntu 14.04, pointed my domain registrar to the DO nameservers, used sslmate to purchase and store the relevant ssl files on the server, and updated ...
-1
votes
1answer
19 views

Why is my nginx reverse-proxy not caching anything?

I'm following this sample configuration from the Nginx docx. Reverse-proxying works fine except that it isn't caching results. Here is my nginx.conf: user http http; worker_processes 1; events { ...
0
votes
1answer
25 views

How to set up NGINX reverse proxy while preserving relative urls of static resources?

I'm attempting to set up a reverse proxy using proxy_pass in NGINX. The page loads fine but all the static assists (js, css, imgs) that use relative urls break because it prepends the host name of the ...
-2
votes
1answer
29 views

SSL proxy nginx cannot reach server by domain name

I am having an odd issue. I configured a SSL proxy with Nginx serving a website in HTTP which is on 127.0.0.1:1195 (example.com is in my hosts pointing to 127.0.0.1). For some reason : ...
1
vote
0answers
32 views

Which permissions should I set to dhparam.pem?

I am generating Diffie-Hellman parameters for the ssl_dhparam directive in the SSL configuration of nginx. The file dhparam.pem is created with the command openssl dhparam 2048 -check -out ...
0
votes
1answer
58 views

ssl nginx wrong path

i am trying to configure ssl on nginx server but it show me the wrong directory.. http on port 80 is ok, https on 443 no this is my formazioneturismo.com.vhost fastcgi_cache_path ...
0
votes
0answers
78 views

Cannot start Debian 8 (Jessie) after installing PHP 7

I've just installed PHP 7 on my VirtualBox VM (host Windows 7, guest Debian 8). Links: german how-to on got-tty.org, Dotdeb blog article "PHP 7.0.2 for Jessie", Dotdeb blog article "Instructions". ...
0
votes
2answers
31 views

Drupal 7 login does not work on NGINX after enabling SSL with Letsencrypt

I followed the excellent Digital Ocean tutorial and the SSL cert verifies as valid. However the Drupal login to access the admin no longer activates and the page just reloads to itself. I enabled ...
-1
votes
2answers
45 views

Making php use specific network interface / IP

TL;DR: Is there a runtime or php.ini directive for IP/network interface? Setup: Debian, NginX, php-fpm The machine has multiple IPs configured in the network interfaces. Each virtual host in NginX ...
0
votes
1answer
52 views

Prevent nginx proxy_pass 302

I have two server blocks defined on my server to perform various redirects. In the simplified example below a 302 redirect is issued. I would like to proxy this request transparently to the user. How ...
-1
votes
1answer
29 views

NGINX wont start: localtion directive is not allowed

Nginx is not starting or restarting, and gives the error: "nginx: [emerg] "location" directive is not allowed here in /home/admin/conf/web/nginx.conf:100". I understand that this is because a ...
0
votes
2answers
79 views

What is wrong with my nginx reverse proxy configuration, with single server (and more later)

I'm trying to get an nginx reverse proxy setup working. I have two web servers set up, once with nginx, and one with apache2. I'm currently not able to get it working with just the nginx server, so ...
0
votes
2answers
17 views

Nginx - Caching/processing of data when uploading a file over a reverse proxy

I am running multiple Virtual Machines (Proxmox) which each have limited storage amounts. As I am also running a File-Uploading service, I am interested if a Reverse Proxy needs more than 30GB of ...
0
votes
0answers
43 views

Zimbra Admin Page White Screen

I'm having an issue where my zimbra admin page (https://zimbraurl:7071/zimbraAdmin) is only showing a white page, F12 is giving me this error. I'm running version 8.6.0_GA_1191, I've gone though ...
0
votes
2answers
24 views

Uninstal the nginx configured with RTMP - ubuntu

I configured the nginx according to the vultr , Then i had to remove it , so i removed it using sudo apt-get --purge remove nginx and after that sudo apt-get autoremove . No error till now . But now ...
0
votes
2answers
54 views

Requests made to a website with a different domain/url in log files, hacking attempt?

in one of my websites I am logging all url requests made to the server. I log that data for stats purpose to improve the website. The logs look like http://example.com/search 2016-01-12 ...
-1
votes
1answer
177 views

port 80 is open by iptables but Connection timed out

I have nginx on my server, I run the script below to add rules to iptables: #!/bin/bash ip=/sbin/iptables services='22 25 53 80 443 5432 8000 8080' $ip -F; $ip -t nat -F; echo -e "Opening port 22 ...
0
votes
1answer
39 views

nginx accept HTTP & HTTPS requests on two different ports

I have one nginx server setup(two config files) with two gunicorn web servers setup and running. One gunicorn is production and the other is staging. I want nginx to serve http requests to xyz.com ...
0
votes
1answer
23 views

nginx + php5-fpm + mysql too many queries per second?

I have a VPS Debian running a nginx webserver and 2 node.js servers, one with socket.io for suplying data for my website and another one for a bot. The socket server runs a lot of queries but I try to ...
0
votes
2answers
37 views

NGinx + Wordpress at sub URL converts domain to localhost

When I go to http://niklasrosenstein.com/blog everything is fine, but if I click on a link or go to some page lik http://niklasrosenstein.com/blog/shop I end up on http://localhost/shop. What am I ...
0
votes
1answer
38 views

Nginx: possible to resolve DNS dynamically in location block?

Currently I am using Nginx with Kubernetes. In my Nginx conf file I have the following proxy pass: location ~ /myPath/([\w-]+)/resources { rewrite ^/myPath/([\w-]+)/resources/(.*)$ ...
0
votes
0answers
19 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
65 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
20 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
44 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
47 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
29 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
38 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
1answer
31 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
20 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
82 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
49 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
42 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
27 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 ...