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

learn more… | top users | synonyms

0
votes
0answers
11 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
8 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
24 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
4 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
7 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
18 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
23 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
20 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
57 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
27 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
12 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
17 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
7 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
36 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
44 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
44 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
51 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
9 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
12 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
27 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
35 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
45 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
94 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
55 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
19 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
92 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
39 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
23 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
58 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
35 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
18 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
27 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
35 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
45 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
23 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
29 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
248 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
35 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
73 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
125 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
64 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 ...
4
votes
1answer
94 views

Simple Nginx config doesn't work

I am a developer with absolutely no server experience, this project I'm working on is my first foray into the world of servers. Basically I have to host an API online, on a Linode server running Nginx ...
0
votes
1answer
32 views

cannot view website from outside LAN

I am trying to host a website using a raspberry pi and nginx. I have everything set up, and can even access my website while directly linked to my lan. I cannot, however, access it outside my ...
0
votes
1answer
37 views

index when serving 2 merged directories in nginx via try_files

I have two directories containing static files that I serve with nginx using the try_files directive. (One filled with generated pages by pelican, one with static content.) However I can't get the ...
0
votes
0answers
36 views

Setup https and http on wordpress nginx

[root@serv01 nginx]# cat nginx.conf # For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation: ...
1
vote
1answer
47 views

What's the recommended way to use/install webapps on Arch Linux? [closed]

I'm trying to figure out the best way to robustly setup webapps on my Arch Linux + nginx server. The way I used to do it before was to download and unpack e.g. latest version of dokuwiki/wordpress ...
0
votes
0answers
46 views

WordPress won't load unless iptables is disabled

I am running CentOS 6.6 using nginx. WordPress will not load unless iptables is disabled. I tried to add the 9000 port for fastcgi, but that did not work. I am guessing it has something to do with ...
0
votes
0answers
12 views

Is there a way for Nginx to load certificates from URL?

I want to store the SSL certificates for Nginx externally to the server. Thus it would load its SSL certificates not from the file system, but probably via HTTPS from some URL. Is this possible?
0
votes
1answer
321 views

Exclude a single file from an nginx location match

I have a location on nginx like this: location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ { return 403; error_page 403 /403_error.html; } I have a php script that combines ...