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

learn more… | top users | synonyms

1
vote
1answer
2k views

Streaming to HLS server with ffmpeg and nginx-rtmp-module

I am trying to stream my desktop screen to a HLS server (nginx RTMP module), but I don't know how to go about this. I have tried ffmpeg -f x11grab -i :0.0 -f hls http://192.168.1.68/tmp/hls but ...
0
votes
0answers
15 views

Pages from specific web server fail to load on Android browser

I have a weird problem I can't get a handle on. No page from the site http://www.donegalnow.com will load in the default Android browser. All pages from the same site load using Chrome for Android and ...
0
votes
0answers
10 views

Gitweb 404 - No projects found on ArchLinux ARM

I have some troubles with gitweb configuration on my RPi (powered by ArchLinux ARM). As you can see in the topic title I get "404 No projects founds" error. I followed ArchLinux wiki but it didn't ...
0
votes
0answers
11 views

WSGI, Ngnix, Python3, Debian Wheezy: what pkgs to install, how does it all fit in?

I'm working on a web-site. I would like to add some database functionality eventually: for this, i need to understand SQL, python-sqlite3, python-wsgi spec, python-uWSGI server and how all this is ...
0
votes
0answers
10 views

Repository not found error for private git server

I am trying to set up a private git server with http(s) access on nginx. When I try to clone a repo, I get an error: $ git clone http://git.example.com/git/MyRepo.git Cloning into 'MyRepo'... ...
1
vote
1answer
41 views

Plesk (or similar) admin panel for NodeJS hosting

I am wondering if there any Plesk-like control panels to offer NodeJS hosting. I am trying to find out if it is possible to replace Apache and PHP with NodeJS and NGINX for vhosts, while MySQL ...
4
votes
1answer
4k 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
9 views

Nginx Modsecurity Apache Include Equivalent

I just switched from apache to nginx and so far I've been pretty happy. However, I've been having some issues with modsecurity. Back when I used apache I could use the following to add every rule I ...
0
votes
1answer
15 views

Propagating visitor IP through nginx

I have a node.js site fronted by nginx. So that when request gets to the site the IP in the request is 127.0.0.1 Is there anyway to modify the request while it is under nginx control so that node.js ...
0
votes
1answer
18 views

Low TPS using Virtualbox + Ubuntu + Nginx + PHP-FPM + Silex

I am trying to understand why I get such a low TPS rate on my development environment. I am using the following: Mac OS X Mavericks VirtualBox Ubuntu 14.04 Nginx PHP5-FPM Silex I did not tweak ...
0
votes
2answers
25 views

What file to add to nginx certificate

I got a RaspberryPi on which I want to host Owncloud. So I followed this tutorial and it works well except the SSL part. I don't want to use self signed. I set my own subdomain and it works without ...
0
votes
0answers
8 views

Low TPS using Virtualbox + Ubuntu + Nginx + PHP-FPM + Silex

I am trying to understand why I get such a low TPS rate on my development environment. I am using the following: Mac OS X Mavericks VirtualBox Ubuntu 14.04 Nginx PHP5-FPM Silex I did not tweak ...
0
votes
0answers
17 views

Find issues in PHP site hosted under Nginx and PHP-FPM, no log error

I'm setting up a Wordpress site under Nginx 1.6.2 + PHP-FPM (PHP 5.5.18). This is the configuration for WP site: server { root /var/www/html/jurisprudencia.dev; index index.php ...
0
votes
0answers
15 views

nginx is still linked to old openssl

We're running CentOS 6.5. We recently updated via yum: OpenSSL to OpenSSL 1.0.1e-30.el6_6.4 nginx to nginx-1.6.2-1.el5.ngx However, I noticed that even though nginx was configured to use TLS v1, ...
0
votes
1answer
31 views

Images and styles do not load in GitLab

I've installed gitlab on arch and now when I connect to it using localhost, everything displays fine If I use my domain, it works but displays no icons or images and the stylesheet is messed up
0
votes
1answer
49 views

Host multiple website using nginx on the same IP [duplicate]

I've set up a Raspberry Pi to act as web server, so I've installed nginx with php5 and I bought two domains: domain1.co.uk Domain2.it I have a static IP which is linked to these two domains, so if ...
0
votes
1answer
47 views

nginx not accessible from public IP, but is on 127.0.0.1

I am trying to set up nginx as a reverse proxy with HTTP Authentication to a site running on IIS. I have modified the http.sys bindings, as well as my IIS site bindings so that nginx can successfully ...
0
votes
1answer
87 views

How to show file in browser instead of downloading?

I'm using Owncloud (behind Nginx) to share a file. When I generate a share link, the link points me to the download page or if I append "&download", it immediately starts downloading the file. ...
0
votes
1answer
65 views

nginx proxy_pass and virtual hosts within LAN returns 404

I hope this makes sense. Basically, I have set up a local server on my MAC using nginx, with these rules for the proxy_pass: location /engine/rest { proxy_pass ...
0
votes
0answers
42 views

301 redirect DNS issues related to Nginx change

I think I screwed up something in my Nginx configuration. Here is how I can explain it: I own a domain lets call it abc.com Before all the issues happened DNS was configured in the following way at ...
0
votes
0answers
33 views

php-fpm and how it's related to php

I have a php-fpm setup with nginx and php 5.5.18... i have compiled the php from soruce with the following configuration './configure' '--disable-all' '--prefix=/opt/php/v5.5.18' '--enable-json' ...
0
votes
1answer
127 views

Why can't nginx access puma socket on CentOS 7?

So I have a Ruby on Rails app in /var/www/ owned by nginx with 755 permissions. Said app is intended to be deployed via puma. Like so: rvmsudo -u nginx bundle exec puma -e production -d -b ...
0
votes
1answer
77 views

Nginx, php-fpm, virtual hosts and premissions

I have apache-mpm-itk + php_module setup and user's folders/files belongs to them. But I want to migrate several accounts to nginx + php-fpm. What should be the right permissions on folders/files if ...
1
vote
1answer
252 views

nginx 403 Forbidden on CentOS (Vagrant)

What I have checked so far: Logs - they are empty, booted a new VM. Permissions: $ namei -l /var/www/awesome/ f: /var/www/awesome/ dr-xr-xr-x root root / drwxr-xr-x root ...
1
vote
1answer
954 views

Nginx location $request_filename not set right with rewrite rule

When I write the location in, it works, when I use the same location as a rewrite rule, it doesnt!!! I dont understand the logic. Can someone please explain? location /v3/ { alias ...
1
vote
1answer
59 views

Nginx slow downloads even with low disk io

I run a small video streaming website and i've been noticing some problems with videos on my site. I have multiple 1gbit servers and the servers are only going at 1/4 port speed. When I try to load ...
1
vote
1answer
327 views

Port forwarding on Ubuntu Server 12 and Virtual Box

I need advice on how to forward to port 80 and how to make my VirtualBox service accessible to outside world. I can access the web server with my host computer and with putty. I'm following a ...
0
votes
1answer
264 views

Nginx redirect all requests trying to reach a folder

How can I redirect all requests trying to reach a folder? for example, I would like to redirect: somedomain.com/folder/subfolder/index.html somedomain.com/folder/subfolder2/something.html ...
0
votes
1answer
75 views

Nginx service stops every one hour

I have a DirectAdmin server configure with nginx service as reverse proxy. Everything runs pretty good for several months and years. Since yesterday, DirectAdmin send me each hour on the 17th minute ...
0
votes
1answer
49 views

different ssl_protocols for seperate domains

I tried to configure one server for a specific domain to use TLSv2.0 only. Others should use TLSv1, TLSv1.1, and TLSv2.0. The configuration is valid, as nginx loads correctly, but the site with ...
0
votes
1answer
1k views

nginx rewrite move from risky if statements to try_files. Can anybody help convert? (short)

I am trying to clean up my nginx rewrite rules for my vBulletin forum which has some modifications and additional software within the same site which causes problems. I have things working as they ...
1
vote
1answer
113 views

Set up a catch-all inside a location with fallback to index.php

I'm struggling with nginx config. I have a server block where I want all requests to go to index.php?tags=$uri, unless $uri exists (like index.php?a=b or /?a=b). I would expect: try_files $uri ...
1
vote
1answer
291 views

nginx: how to allow more than one session per client

Nginx by default waits for session to be closed until it opens a new session. this is a problem if a user tries to download more than one archive at once. How to disable or upper the limit? what ...
0
votes
1answer
60 views

nginx wget download fails (timeout)

I have generated a 10GB file using fallocate. Now when trying to download that file using wget -O /dev/null example.com/10gb.bin it stops at ~72% and says "Connection closed at byte X". Retrying. ...
0
votes
1answer
42 views

Minimal nginx configuration for localhost?

I need to serve myself a few static HTML documents for test purposes (playing around with Mozilla addon development, need certain content to develop against). I thought I can just install a small ...
2
votes
1answer
229 views

Configuring nginx to retry a single upstream server

I'm using nginx as a reverse proxy and I would like it to wait some number of seconds and retry a request if the upstream server isn't responding. This way I can restart my upstream server and instead ...
0
votes
1answer
51 views

Passing parameters in nginx load balancing

So I basically followed this tutorial and set up a load balancer on my nginx server. upstream backend { server backend1.example.com; server backend2.example.com; } Now all the incoming request ...
0
votes
0answers
14 views

In Nginx Configuration, if I am doing a reverse proxy, is there a way to filter layout of the webpage to-be-displayed, i.e., a logo?

Is there a way to filter, for instance, a site logo, when using a reverse proxy in Nginx configuration? How would I go about doing this? Thanks in advance...
2
votes
2answers
650 views

Nginx can't connect to uWSGI socket with correct permissions

I'm trying to connect Nginx to uWSGI so I can run an application written in Ruby (where I am not able to use passenger). This is my virtual host configuration: server { listen ...
3
votes
3answers
4k views

How to I get variables from location in nginx?

The location from nginx conf: location ~/photos/resize/(\d+)/(\d+) { # Here var1=(\d+), var2=(\d+) } How to I get variables from location in nginx?
0
votes
0answers
129 views

Rewrite or internal redirection cycle while internally redirecting to “index.php”, request: "GET /etc/lib/[some-folder]/[some-php-file].php

Finding this error in my error.log Rewrite or internal redirection cycle while internally redirecting to "index.php", request: "GET /etc/lib/[some-folder]/[some-php-file].php I guess someone ...
0
votes
1answer
35 views

how to monitor network/cpu/memory/disk usage by each Rails app

I run many Rails app on linode VPS I want to charge my customers by their usage, Is there anyway to monitor each Rails app's usage ? I need these information network/cpu/memory/disk usage Any ...
16
votes
5answers
15k views

How do I start nginx on port 80 at OS X login?

I installed Nginx using homebrew and after completing the installation the following message was displayed: In the interest of allowing you to run `nginx` without `sudo`, the default port is set to ...
1
vote
1answer
2k views

How can I open Port 80 with Netgear wireless router wnr2000v3

I am trying to set up a home server. I realized that my ISP was blocking port 80. I called them and paid them for a static ip and now they are not blocking port 80. When I connect the server directly ...
3
votes
3answers
1k 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
1answer
54 views

Configuring /etc/hosts to run an application

I am using nginx, until now I was running my php applications on /usr/share/nginx/html which is the default document root when nginx is installed on centOS and like systems. Now I had to create ...
0
votes
1answer
48 views

PHP read permissions messed up

I'll try to be as clear as possible. On my server which runs on ubuntu 14 i installed mutlicraft (a minecraft control panel). After uploading the server i noticed that the server wont run. Thats ...
0
votes
0answers
91 views

Node.js Express NGINX : static file paths break with name spaced proxy_pass

So I was accessing my server at domain.com:3333 but just switched it it to domain.com/nodeapp using upstream and proxy pass in my nginx config. The redirect works just fine, but now the links to ...
0
votes
1answer
114 views

PHP User in NGINX not Accessing File, Permission with Group

I know that nginx sets the user for php as www-data. Therefore the user www-data needs access to the entire structure as described in this blog post. To express my issues I will have to define some ...
7
votes
3answers
2k views

Mac firewall blocking nginx (port 80) from external side

I installed nginx using ports and started it with sudo. Accessing the nginx welcome page from localhost works perfectly, however accessing it from an external computer fails. Doing an nmap on the ...