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

learn more… | top users | synonyms

0
votes
0answers
11 views

nginx reverse proxy not passing requests to subfolder

I have a domain (example.com) and a subdomain (sub.example.com) both hosted on the same server. I want to proxy a request so any file requested on http://sub.example.com/api/ will be requested on ...
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
339 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
8 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
79 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 ...
0
votes
1answer
185 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
0answers
8 views

Nginx 403 error [migrated]

I am having trouble with converting .htaccess files to nginx. I have 3 .htaccess files. The first .htaccess file is located in the document root and is as follows: Options +FollowSymLinks ...
0
votes
2answers
46 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
977 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), ...
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
0answers
30 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
19 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
12 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 ...
1
vote
1answer
498 views

How to redirect to other server? (apache and nginx)

i have an Apache server running for two sites on port 80. Let's say the domain is example.com and I have an other domain example2.com. When a user visits example.com, I want it to serve those files ...
0
votes
0answers
8 views

VARNISH ESI when passing url to nginx back end

I am using esi to load a banner into my index.php page, but when a user is logged in i send traffic to nginx by using return (pass), but nginx can not parse the esi part and i get the page without the ...
0
votes
0answers
46 views

How can I give priority in nginx for certain ips?

I want to download files from one server to another, my problem is that in peak time my servers are in high network load and the speed is not so great. How can I give priority in nginx for certain ...
0
votes
1answer
82 views

Nginx backend shutdown without losing sessions

So I'm having reverse proxy server, where Nginx working as proxy server and loadbalancer. My biggest problem, that I have 2 app backends, which I need sometimes to shutdown. When I write after server ...
0
votes
0answers
43 views

Trying to remove 1152 samples, but the queue is empty

I am streaming mp3 files,using this command : ffmpeg -re -i 'INPUT.mp3' -map_metadata -1 -map 0:0 URL I create a loop which stream files,and there is no problem with reviving stream,just from ...
2
votes
2answers
785 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
15 views

Setting up nginx on Fedora 19

So I had nginx set-up with the default site. I decided I wanted to change because my website is at /var/www/server.nyro.net/... so before I changed again, I went to 127.0.0.1 to see if everything ...
0
votes
0answers
51 views

Apache vs nginx Memory Consumption with PHP

I want to start by saying that I know the debate regarding PHP performance under Apache and nginx is still a bit undecided, as PHP is generally the bottleneck on performance. I have my application ...
0
votes
0answers
9 views

PHP-FPM: if “part of PHP”, then how to run as separate proxy to Nginx?

In writeups of PHP-FPM, websites tell me that it's been a part of PHP since 5.3.3. What does this mean? If I have PHP 5.3.8 installed on my server and already being used inside Apache (to which ...
0
votes
0answers
49 views

Moving to a complete Nginx/PHP-FPM environment from Apache

I am sure this is a question many beginner sysadmins like me have, and many more advanced people have already put this in place: CURRENT PLATFORM: Nginx proxying to Apache, which manages PHP ...
0
votes
0answers
184 views

How to upgrade Nginx and install php-fpm on CentOS

I want to upgrade Nginx via Yum, and also install PHP-FPM as usual. Most blog and online resources use the EPEL and REMI repos, but they're not working on my server. My OS info: Linux ...
0
votes
0answers
35 views

How to host multiple nodejs application under one IP

For example, I have a Ubuntu instance, domain name www.example.com. How can I run different nodejs in www.example.com/web1, www.example.com/web2? Another question is, can all of them run on port 80? ...
2
votes
1answer
56 views

How to Set Up Nginx as a Reverse Proxy

I am trying to set up nginx to behave as a reverse proxy listening on a subdomain we control. I have followed examples found online and they mostly work with one exception that isn't clear to me. ...
0
votes
0answers
45 views

Nginx in front of Apache and retain logins

I've googled for a while and searched super user and can't seem to find anything regarding my current issue. I'll try to explain it as best as I can. I have two servers, at two different geographical ...
0
votes
1answer
25 views

How to set up a .local domain on Linx?

I have multiple nginx virtual hosts all pointing to localhost. Right now they have same name different ports localhost:8080, localhost:8081. Instead I'd like them to have same port different names ...
0
votes
1answer
143 views

Puphpet, Vagrant and Nginx custom locations

I'm trying to add some custom Nginx locations to a Vagrant Puphpet config.yaml file and it seams I cannot find the correct format for that. I searched for it but no luck. Did anybody already did this ...
1
vote
1answer
48 views

Virtual Host Redirects and Packet Flow

If I set up a virtual host in nginx, will all packets flow through that PC? Here is what is going on. I have an openwrt NAT router with two devices behind it, a server and a raspberry pi. I want both ...
1
vote
0answers
120 views

nginx - ssl and www redirect configuration

this is related to: http://stackoverflow.com/questions/24538973/django-allowed-hosts-error-for-www-domain-and-ip-address i'm attempting to redirect www and non-ssl requests to ssl non-www domain for ...
0
votes
0answers
75 views

I'm getting 500 server error in when trying to send ajax to codigniter+NGINX in production in ec2

When Im in my local environment when I send with ajax rest post http://localhost:8080/index.php/api/get_user I'm getting an answer from the server (Codeigniter + NGINX). But when I do it with ...
0
votes
0answers
120 views

Allow internet access to intranet only users using Nginx on Ubuntu

I need to allow some users who only have access to the intranet to access one specific internet site. I'm doing this by using Nginx as a reverse proxy. To test this, I would like to block all internet ...
2
votes
1answer
205 views

How can I force caching a video file on nginx

I have two servers configured pretty much exactly similarly. One is my production server, and the other is my staging server. The nginx config on both are copies of each other except for the name of ...
0
votes
0answers
65 views

How to get around NGINX error on Max OSX 10.9.3: unknown directive “set_real_ip_from”?

I'm using MacOSX 10.9.3 and trying to run NGINX. First I install it: % brew install nginx -with-http_realip_module ==> Downloading ...
0
votes
0answers
40 views

Nginx multiple hosts zabbix statistics

I have server with KVM hypervizor and Nginx as frontend web proxy. There are several virtual machines installed in KVM with own Nginx servers. Every Nginx in virtual machine works with 10 hosts. I ...
0
votes
0answers
35 views

run selfoss in a subsubfolder on an nginx webserver

I am trying to run selfoss through nginx webserver in a subfolder of my home directory. The files are in /home/me/web/selfoss, and by the nginx instruction location /me/ { alias /home/me/web/; } ...
0
votes
2answers
80 views

Errors from httperf

I use httperf for performance testing. I start many threads of httperf at the same time, but after running for a while I receive errors like this: "httperf: failed to connect to SSL server ...
0
votes
0answers
35 views

PunBB Rewrites in Nginx

Is anyone currently running the PunBB forum on Nginx? I want to change my URL scheme to the Fancy File-based URLs, but I cannot for the life of me figure out what the proper rewrites are supposed to ...
1
vote
2answers
711 views

Can't setup Nginx with PHP on Arch linux

I have tried to set up a LEMP server (Nginx, PHP, MySQL) on Arch Linux for a while, and have tried a few different online tutorials. Most recently I tried: http://www.adminempire.com/how-to-insta … ...
0
votes
0answers
338 views

nginx Times Out Uploading Files - Way Under Timeout Limit

I have an application that can accept file uploads and puts those onto S3. Some files have been failing to upload when going through the nginx reverse-proxy. Now, I have keepalive_timeout 120; set ...
1
vote
0answers
335 views

https proxy s3 aws via nginx with pagespeed

I'm trying to setup pagespeed to proxy s3 files via nginx. I want to "save" the files on amazon s3; The story I want is: User A 1. nginx serves page to user; and rewrites all ...
0
votes
1answer
40 views

Owncloud - mutiple HTTP 404 log records

Since I've uninstall Owncloud I have multiple HTTP 404 response from owncloud requests in my NGINX http server log. It is obviously a heartbeat request but I can't find out from which server it's ...
0
votes
1answer
62 views

Ghost, Nginx, 502, and Port Problems

Got myself into a problem trying to install Ghost 0.4.2 on a Digital Ocean Droplet with node 0.10. I used the Dokku Droplet (instead of their Ghost setup) because I'd like to install multiple node ...
0
votes
0answers
22 views

Make nginx config like apache2

I have web server with apache2 with many subdomains on it like, domain.com, abc.domain.com, def.domain.com etc. etc. Now I got a new nginx server and want to set it up like apache2, so to test I ...
0
votes
0answers
33 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 ...
1
vote
0answers
309 views

Nginx rewrite to remove first (generic) path node

I am currently writing a dispatcher that will dispatch different URLs to specific service URLS. I essentially want to dispatch something like: POST ...
0
votes
1answer
221 views

Using Cygwin to run nginx on Windows

Is it possible to run a Linux installation of nginx from Cygwin? Or should I run the Windows version? Basically I want to be able to restart Cygwin from command prompt instead of having to end the ...
0
votes
1answer
214 views

Reverse proxy 502 bad gateway

I have setup a subdomain to proxy my plesk panel, but when saving pages I am getting 502 Bad Gateway error instead of a completion message. I am running CentOS 6. Here is my vhost.conf configuration ...