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

learn more… | top users | synonyms

0
votes
1answer
17 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
3 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
1answer
180 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 ...
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 ...
1
vote
0answers
15 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
18 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
22 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 ...
7
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
1answer
55 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
19 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
9k 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
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
16 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
6 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
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 ...
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 ...
1
vote
0answers
41 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
43 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
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
2answers
121 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
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
90 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 ...
2
votes
1answer
44 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 ...
1
vote
0answers
54 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
87 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
37 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
55 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
33 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
17 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 ...
4
votes
1answer
89 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
0answers
26 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
33 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 ...
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
28 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
241 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
72 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
1answer
36 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
1answer
62 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 ...
0
votes
1answer
31 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 ...