nginx (pronounced “engine x”) is a lightweight web server and a reverse proxy server

learn more… | top users | synonyms

0
votes
1answer
8 views

LAMP Setup on CentOS at DigitalOcean

I'm following this tutorial. I got some issues start from step four: Configure Nginx to Process PHP Pages. After I typed this $ sudo vi /etc/nginx/conf.d/default.conf. I can't find server { listen ...
0
votes
0answers
12 views

Safari won't open a URL with special utf8 characters over https, but http works fine

My https switch is almost complete. Everything works flawlessly on every browser except Safari (both iOS and OSX). Some URLs contain Polish characters, such as żźćąłóń. Apparently in some cases ...
1
vote
0answers
7 views

How do I use allow/deny in conjunction with set_real_ip_from?

My nginx backend server should only accept requests from my frontend, 1.2.3.4. However, I also want nginx to log the correct IP address, so I use set_real_ip_from. But by doing this, the allow rule in ...
0
votes
0answers
71 views

NGINX client cert authentication in Pydio

Let me explain my problem. I've a Pydio setup with NGINX as webserver.(https://github.com/kdelfour/pydio-docker) I've some client certs. They work. A part of my config (added part) looks like follow: ...
0
votes
0answers
39 views

Ftp proxy using nginx

I'm trying to set-up a simple ftp proxy using Nginx. Right now my configuration is like this: server { listen 21; server_name 52.49.13.91; location / { proxy_pass ...
0
votes
0answers
24 views

How to upgrade php-fpm on OSX Yosemite 10.10.04?

Currently I have this on my machine Milans-MacBook-Pro:local vaske$ brew install php56 Warning: homebrew/php/php56-5.6.11_2 already installed Milans-MacBook-Pro:local vaske$ php -v PHP 5.6.11 ...
1
vote
0answers
16 views

Session-based load-balancing with nginx and nodejs?

As I understand it, load-balancing with nginx is typically based on requests, i.e. each request is forwarded somewhere different, be it to remote machines or to instances of a local service. However, ...
0
votes
0answers
17 views

Use /etc/hosts entry for nginx proxy_pass

I'm currently linking together a couple of Docker containers so I can create a reverse proxy using Nginx and the services running on those containers. An entry looks like this: location / { ...
0
votes
0answers
43 views

How to make nginx connect php-fpm with 127.0.0.1, not server's public ip?

I found error 'WARNING: [pool www] child 3715 said into stderr: "ERROR: Connection disallowed: IP address 'x.x.x.x' has been dropped." ' in php-fpm's log, where 'x.x.x.x' is my server's public ip. ...
0
votes
0answers
13 views

Using nginx to map addresses

I'd like to achieve this : Having a nginx load balancer which will map adresses to servers example : nginx-server-adress => domain.com:3000 nginx-server-adress/wordpress => ...
0
votes
1answer
42 views

Nginx: redirection to (private ip) virtual machines

I want to setup a set of web services for my colleagues from my laboratory; simple things like wiki, cms, git, etc, so that we can document our projects better. I'm an physicist, not CS, so sorry if I ...
0
votes
0answers
13 views

how to configure naxsi to accept json format in rest apis?

or example one of my APIs is: Post request: /api/v0/login body: { "username":"xxx@ggg.com", "password":"eeeee" } I want to secure this API with naxsi (Nginx Anti XSS & SQL Injection), I could ...
0
votes
1answer
12 views

How do I move a CMS installation from root to subdirectory (nginx)

I've inadvertently installed Wordpress into the root of my Ubuntu nginx server. How do I move this installation from root to a subdirectory called /blog? ex. mysite.com/blog What I have now: server ...
1
vote
0answers
48 views

Nginx and Seafile - Configuration

I have Seafile with Nginx running on a Raspberry Pi. Now I want to know how to realize the following URL-Structure (everything on HTTPS/Port 443): https://example.com/seafile Seafile ...
0
votes
1answer
26 views

Serve a file in location directiv with nginx?

I have various files in the directory '/var/www/something'. The normal root of my nginx server is '/var/www/html'. Now I want to serve only the file '/var/www/something/file.exp' as ...
1
vote
0answers
23 views

Find web server architecture [closed]

I am programming mostly small webs with php and mysql with 10 000 visitors per day. Now I have a web with 50 000 visitors per day and this number still increases. Visitors will load from 50 to 80 ...
1
vote
1answer
79 views

SSL stopped working

My SSL suddenly stopped serving my site. It could have been because I installed nginx on my server, then uninstalled it using apt-get purge nginx* For about 30 minutes it was serving pages ...
0
votes
1answer
41 views

how can I restrict access to a folder or file to prevent users from opening it

I have some files and one folders that are private. I don't want the users able to see them. I want to show them a message contained 'this file (or folder) is limited and you can not open it'. until ...
0
votes
0answers
14 views

Setting up nginx and apache httpd

Suppose I have nginx + php (fastcgi) running on domain.local:80/443 and Apache HTTPD server running on domain.local:8000/4430 Is there a way to configure nginx to reverse_proxy http(s) requests to ...
0
votes
1answer
34 views

Cron Error : chdir failed (/usr/share/httpd): - Using Nginx

(CRON) ERROR chdir failed (/usr/share/httpd): No such file or directory I checked the log and found the following error. Why does cron tries to change the directory? I am not using httpd. I am ...
0
votes
0answers
9 views

Preserve port information on redirect response ngnix

I have a service say service1 behind nginx with following configuration upstream service1 {     sticky path=/service1 expires=31536000;     server ...
0
votes
0answers
45 views

Unexpected error with git-http-backend over Nginx and fcgiwrap

Original question I'm trying to setup a git repo for remote access through HTTP. Thing is, even a simple git clone is not working. This is the error message: /var/log/nginx/error.log 2015/07/03 ...
0
votes
2answers
58 views

VirtualBox shared folders returning file not found when loading over HTTP

Hi I have a VirtualBox image which I am starting with vagrant and mounting two shared folders. The folders mount without a problem and are visible when I SSH to the guest machine, but when I try to ...
1
vote
0answers
64 views

502 bad gateway after putting up firewall nginx

My server was working, then I added a firewall for a bunch of ports! And now I get the error: 502 Bad Gateway nginx/1.4.6 (Ubuntu) Nginx server { listen 80; server_name 45.79.80.140; ...
0
votes
0answers
89 views

Failed to start nginx on CentOS

I installed nginx on Centos7, I'm unable to start the service: #service nginx start Starting nginx (via systemctl): Job for nginx.service failed. See 'systemctl status nginx.service' and ...
0
votes
0answers
13 views

Service overloaded while loading forum page

I have problem with one site on my machine where I have installed ispconfig. Sites with low PHP count works fine, but site like forum(MyBB V3) mainpage.com/forum/ <- this link return error below. ...
0
votes
0answers
21 views

Nginx: how to configure lots of very similar server blocks

Nginx is going to serve a lot of (mostly wildcard) domains, and each server block (aka virtual host) has differs by local port (upstream, proxy_pass) and domain name (server_name). Is there any ...
0
votes
0answers
38 views

nginx regexp rule to block all urls containing a '.js?foo'?

I'd like nginx to deny all requests to static files followed by ?foo, like /path/to/somestatic.js?foo or /another/path/to/my.css?bar This is a trick that application layer ddos attacks seems to use ...
1
vote
1answer
39 views

How to block all IP addresses in a range?

In nginx, I know that to block all IPs in the range 5.121.66.xxx, one can use this directive: deny 5.121.66.0/24; Now, I'd like to know how a range like 5.121.yyy.xxx (where yyy in 1-255) can be ...
0
votes
1answer
51 views

Docker and DevOps Tool? [closed]

We are working on moving our infrastructure from Amazon Elastic Beanstalk (which we have had lots of problems with) to just rolling our own "simple" thing. However, we quickly notice that there is a ...
1
vote
1answer
136 views

Nginx does not forward correct client IP when using Virtualbox NAT

I have this nginx configuration upstream xxx { server 127.0.0.1:12123; } error_log /home/web/.log/error.log; server { listen 4567; server_name mydomain ...
1
vote
0answers
81 views

Nginx + Passenger not working — client requests hang until timeout

I'm running on an EC2 instance with Amazon Linux installed and Nginx was installed via passenger-install-nginx-module. The full install process followed was similar to this. The primary difference was ...
0
votes
0answers
5 views

Registering with Consul Cluster?

Right now when I add Consul Agents to our infrastructure I need to know the ip address for an existing Consul instance. Which is kind of sub-optimal from devops perspective. How would one usually ...
0
votes
1answer
27 views

AWS + Nginx Auto Register

We would like to run our nginx instance inside our docker swarm running on EC2. However, we would need them to be auto-registered with preferably R53 directly or possibly ELB. Is that possible? Or ...
1
vote
1answer
206 views

Nginx cannot serve css files because of MIME type error

My Setup: It is a nginx/gunicorn setup for django webapp. Here is my nginx config file: worker_processes 1; user ubuntu nogroup; # for systems with a "nogroup" # user nobody nobody; # for ...
1
vote
2answers
57 views

nginx two sites configuration conflict

I have nginx configured for one of my domains. It works as a frontend to Wildfly application server. One day I decided to configure beta tests environment on the same machine. So I added another ...
0
votes
0answers
27 views

Configure nginx to forward SSL to Apache

I'm trying to configure NGINX as a reverse proxy for Apache, and I want Apache to handle the SSL part of things, but I keep getting 204 (no content). Here are my configuration files so far: ...
1
vote
1answer
84 views

Accessing an nginx webserver on CentOS7 VM hosted on Virtualbox in Windows 10

Setup: A single CentOS 7.1 VM running on a Windows 10 Pro server (preview version 10074), inside Virtualbox 5 beta 4 (also tested on 4.3.8). Using nginx/1.9.0, to serve static HTML files. The VM is ...
0
votes
1answer
47 views

How can I tell which web server Zimbra 8.0.6 is running?

This Zimbra installation was setup by personnel no longer here. Before we proceed to update the suite to a current version, we're first trying to understand what/how it's doing, while lacking any ...
0
votes
0answers
24 views

Wrong nGinx virtual server chosen for a request

I'm trying to make nGinx to proxy a request to a standalone MoinMoin (Python Wiki) web server. So far I have used two virtual servers: server { listen 80; server_name my-domain.com ...
0
votes
0answers
34 views

Can't access webserver using nginx ports over vpn

I'm using nginx within my company network and everything works correctly, but when I try to access it over my VPN connection I'm unable to connect to my web server, and I have nothing in the logs to ...
0
votes
0answers
61 views

nginx + php5-fpm displays 502 Bad Gateway

After an update php5-fpm stopped working. It shows blank page, and after restarting nginx 502 Bad Gateway. In nginx log there is following line: 2015/05/27 20:27:08 [error] 3034#0: *40 recv() failed ...
2
votes
1answer
52 views

Rewriting URLs of by Nginx; Will it make future problems? [closed]

What will happen if URL of Discourse be rewrited via nginx? this way: example.com/category/hello --> example.com/hello Will it make next problems in the sense of "not working" during future updates ...
0
votes
0answers
27 views

Getting nginx 404 error on uploaded files

I am using PHP (5.3) to upload jpeg files, create folders for those files and store them. I have a development version and a live version both running on the same server (CentOS 7, Apache, Plesk 12). ...
0
votes
0answers
32 views

Passenger issue with Rails routes

I have been tasked with getting a Rails 2.3.14 app running with Phusion Passenger 5.0.7 standalone in FreeBSD 9. Setup is all complete and done, the issue I am facing is Passenger doesn’t seem to ...
1
vote
0answers
325 views

nginx serving AngularJS app returns 404 Not Found

I am experiencing problems on configuring nginx to serve static angularjs files. This is my situation, I want the landing page of my application under domain.com and the AngularJS app under ...
1
vote
0answers
43 views

Can't get nginx as a proxy server working

I'm trying to setup my home server to send requests for certain domain names to other computers on my home network (I only have one IP address.) I'm using Nginx to do this, but I'm not having any ...
0
votes
0answers
102 views

nginx gives 404 and 403 in all the files in webroot

I have setup a webserver in a virtual machine on my laptop and I can't get nginx to work. My home DNS is put to example.home for easy access. Here are the symptoms: When I try to access ...
0
votes
2answers
191 views

How can I disable nginx from Gitlab bunlde?

I've installed a Debian/Jessie server with an apache 2.4 service I downloaded and installed the bundle package of Gitlab for Debian 8 (Jessie) I activate unicorn and configure a virtualhost in apache ...
0
votes
1answer
76 views

raspberry pi ip address and port forwarding on Arris router

I am trying to host a website on my raspberry pi using nginx. I am extremely confused about port forwarding or even which IP to use in my pi's configuration. Right now, I can access my site ...