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

learn more… | top users | synonyms

3
votes
1answer
7k views

nginx doesn't log anything

I'm running a FreeBSD 9-Stable server, with nginx. My configuration is here: user www www; worker_processes 5; error_log /var/log/nginx/nginx-error.log; events { worker_connections 1024; } http { ...
0
votes
1answer
11 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
15 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 ...
4
votes
1answer
5k views

Subversion over https + WebDAV on nginx

I wonder how do I create SVN repo and let users access it over http[s] + WebDAV on nginx I did not find any good tutorials describing this process whilst there are a lot of answers on this scheme but ...
8
votes
1answer
6k views

Why a listen 443 default_server; nginx rule override already configured rule (http rules working normal way)?

I have an nginx and different subdomains: a.mydomain.com b.mydomain.com c.mydomain.com Nginx has 4 rules: 1) rewrite rule: server { listen 80 server_name gl.udesk.org; root /nowhere; ...
1
vote
0answers
8 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
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
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
49 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
1answer
2k views

how can I uninstall NGINX because it causes havoc with my yahoo homepage

I am using windows 7 for pc. How can I remove NGINX? It's interfering with my access to e-mail.
0
votes
0answers
181 views

ansible playbook handlers not starting nginx service through notify statement even when changed is true

I've started trying to learn how to use Ansible. I'm following an Ansible Tutorial from Servers for Hackers, and I'm trying out the examples on a VirtualBox virtual machine running Ubuntu 12.04.5 LTS ...
0
votes
0answers
26 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
18 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 / { ...
1
vote
1answer
96 views

how to reload nginx - systemctl or nginx -s?

Is there a difference between calling systemctl reload nginx and calling nginx -s reload ? I know that, besides systemd, there are other init systems like SysV and Upstart. So maybe this ...
0
votes
0answers
46 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. ...
1
vote
2answers
1k views

OSX Yosemite can't bind brew nginx to port 80

Installed nginx and php-fpm via Homebrew. I've disabled native Apache 2.4 that comes with OSX by running: glfx:~ glfx$ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist ...
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
48 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
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
1answer
208 views

Can I facilitate Nginx to multiplex an Icecast stream?

The headline basically says it, I have Nginx connect as a reverse proxy to one of my Icecast2 streams. Now it would be nice if, for every new connection to Nginx, it would not proxy a new connection ...
1
vote
0answers
53 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
28 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 ...
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
1answer
81 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 ...
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 ...
5
votes
1answer
10k views

Nginx rewrite rule to remove path node

Let's say a user tries to access a given image on my website using the following url: http://www.mywebsite.com/blog/image1.jpg?someParam=100 i need a rewrite rule to this, removing the 'blog' node ...
1
vote
2answers
1k views

Nginx-Remove WWW from HTTPS

I would like to ask for some help with the following Nginx configuration, so that URLs such as https://www.mywebsite.com get rewritten as https://mywebsite.com. I am currently using the following ...
0
votes
1answer
42 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
35 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
2answers
61 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 ...
0
votes
0answers
47 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 ...
1
vote
0answers
70 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; ...
2
votes
1answer
3k views

How to troubleshoot Upstart Unknown job error

I set up nginx according to instructions here and it all went well but I am unable to start with $ start <my app name> I created /etc/init/nomilkfor.me.conf (this is the domain name) and this ...
0
votes
0answers
96 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 ...
3
votes
3answers
2k views

How to remove double slash in URLS served by nginx?

I need to replicate the following Apache rewrite rules in nginx config. What is the nginx equivalent to : RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2 [R=301,L] Target environment is ...
0
votes
0answers
14 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
41 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
40 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
2answers
201 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
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
141 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
86 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 ...
1
vote
1answer
215 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
58 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: ...