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

learn more… | top users | synonyms

0
votes
0answers
4 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, ...
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
1answer
21 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
0answers
16 views

Block empty user-agents nginx? [migrated]

My site was under attack and I noticed all the user agents are blank. How can I block this with my nginx? I have no idea what to block, if this is an empty user agent or what.
0
votes
1answer
37 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
27 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
66 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. ...
3
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 ...
0
votes
1answer
34 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
31 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
27 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
48 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
33 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
134 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
863 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
40 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
318 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
73 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
45 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
110 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
284 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
45 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
38 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
216 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
50 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
8 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
456 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
3k 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
67 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
25 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 ...
15
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
928 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
45 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
26 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
68 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
73 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 ...
1
vote
2answers
2k views

unable to connect to localhost:80 after installing nginx

I just installed nginx by doing sudo yum install nginx and I'm unable to connect to it on port 80. I tried stopping iptables by doing sudo service iptables start and was still unable to connect. I'm ...
1
vote
2answers
364 views

Running nginx as the current user

On my linux PC, I'd like to run nginx as whatever user I'm logged into when I start it, and I'd like it to look for config files in the home directory of that user. Is there a way to install nginx to ...
0
votes
0answers
40 views

OS X MySQL '/tmp/mysql.sock' error after sudo chown -R myname usr

On OS X 10.6, when installing NGINX I inadvertently (hastily, stupidly) ran sudo chown -R myname usr, and think I repaired it with Applejack (app, run from command line). However, Running the ...
1
vote
1answer
941 views

Error install nginx version 1.6.2 in Ubuntu 14.04

My server is Ubuntu 14.04 the info.php is blank :( I do not really know what's happening I want to install the latest version of nginx I followed these steps: install nginx apt-get install ...
0
votes
2answers
64 views

Rapsberry webserver nginx - How to publicly acces FTP vsftpd

I have set up my Raspberry Pi to run Nginx for my webserver. My public IP shows the first website, the domain folder, I made on it, this happens on port 80. Now I have set up vsftpd as my FTP server, ...
0
votes
0answers
1k views

Homebrew does not completely uninstall nginx

I installed yesterday nginx on my machine using brew install nginx Today I would like to remove the software, therefore I tried brew uninstall nginx which has been correctely executed. In fact ...
2
votes
2answers
1k views

Nginx Reverse Proxy Apache Benefits

Can anyone explain why putting up nginx and reverse proxying Apache is faster than just plain Apache? I've already moved all my static files to s3 (I heard nginx is better at handling static files), ...
0
votes
0answers
73 views

Nginx on OSX 8 (Mountain Lion) won't start - dyld: Library not loaded

I recently decided to ditch MAMP for NGINX as it's what I use in production. So far I have: Installed XCode's GCC module. Installed Homebrew Installed NGINX What I've tried: Uninstalling ...
1
vote
1answer
25 views

Raspberry Pi getting same IP

So I connected my Raspberry Pi ( with Raspbian on it ) to my router to give it an internet connection for it's own, then I added an ACCEPT rule in iptables on port 80 and started up nginx. I used lynx ...
0
votes
0answers
27 views

How do I make my vagrant site visible to all users on the network?

I'm running a website using Vagrant/VirtualBox/Ubuntu 14.04/Nginx. It's running on IP 192.168.33.10 but I can only access it if I edit my Windows hosts file to make the guest hostname point to that IP ...