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

learn more… | top users | synonyms

2
votes
1answer
6 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
19 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
17 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
31 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 ...
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 ...
1
vote
1answer
13 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
27 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
20 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
34 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
95 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
30 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
20 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
12 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
25 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
19 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
565 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
60 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 ...
0
votes
0answers
81 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
23 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
46 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
21 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
30 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
65 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
64 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
67 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 ...
16
votes
2answers
1k views

Why does the percent sign in a URL cause an HTTP 400 Bad Request error?

I stumbled upon this by accident when mistyping the URL for a web page in my web browser. Why does visiting http://example.com/% cause an HTTP 400 Bad Request error to be thrown? Is the server ...
0
votes
0answers
144 views

VMWare Guest to Host-Webserver (nginx) connection doesn't work

How do I debug the following situation: I have Nginx, php etc. installed on a Mac, everything works perfectly. However when I want to connect to it from inside a VMWare Windows 7 host, I get an ...
0
votes
0answers
34 views

ssl port didnt work on nginx

I set up the unicorn and Nginx on one of my ec2 machines. My requests are loading ok with Nginx listening to port 80, but when I enable ssl, which listen to port 443, it doesn't work. It can still ...
0
votes
0answers
11 views

How to configure thin yml to adjust log level

I want to adjust the log level of thin, so it is less verbose on my server. In the config there are configured the fields pid: .. log: .. rackup: .. environment: .. user: .. group: .. socket: .. ...
0
votes
0answers
38 views

How to server multiple public directories in nginx

I am using nginx to server my NodeJS/Angular app following this guide. I am serving all my public components via the following. root /root/app/public; Apart from that I have bower components which are ...
5
votes
1answer
2k views

How to make nginx rewrite URIs in HTTP body content?

This is a follow-on to my earlier question on how to Make nginx reverse proxy 302 redirect to a URI sub-folder instead of root. I have an nginx proxy server that uses the rewrite and proxy_pass ...
0
votes
0answers
74 views

(111)Connection refused: mod_fcgid: can't connect unix domain socket

I have a problem with one of my webservers. I have Apache and Nginx (like a proxy-reverse server). My Apache run with mod_fcgid for PHP5.3. All works fine, but only on a few requests show me this ...
0
votes
0answers
20 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 ...
0
votes
0answers
62 views

nginx “time out while sending response to client”

When sending a 10GB file locally [public IP not a LAN IP] over my 10Gbit port using wget cmd, following error is being printed in the error.log. client timed out (110: Connection timed out) while ...
0
votes
0answers
17 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
20 views

Log upstream service in nginx load balancer log

I have 2 nginx webservers with a nginx load balancer spliting the load. I am trying to log to which webserver was a request sent into the log file /var/log/nginx/access.log but I can't find such ...
0
votes
1answer
229 views

Nginx & UserDir & PHP

I have a fairly simple nginx/1.4.7 installation (from Debian/unstable) and I'm trying to get PHP scripts to run inside a UserDir. server { listen 8083; ...
0
votes
1answer
35 views

Nginx routing root (/)

I'm trying to serve an app behind an Nginx router. The app is running on port 3000 and services several routes such as /api, /login, and /logout. I also have static content that I want to show for the ...
0
votes
1answer
97 views

Virtual hosting with nginx over SSL, without SNI (via a wildcard cert)

I'm trying to get https://survey.mediacru.sh to work without SNI. We have a wildcard cert and are using nginx as our http server. However, on browsers without SNI support (for example, the stock ...
0
votes
0answers
72 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
0answers
19 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
83 views

nginx pass filetype to backend server

I am trying to setup nginx to handle file uploads and pass the file information on to a backend server once done. I came across a post at https://coderwall.com/p/swgfvw that shows how to do this and I ...
0
votes
0answers
277 views

Rails 2 and Ngnix: https pages can't load css or js (but will load graphics)

ADMISSION: i've posted this same question on stackoverflow, before realising it's probabaly better suited to superuser, but it kind of depends on the answer: If it turns out to be a problem in my ...
0
votes
0answers
328 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 ...
0
votes
2answers
93 views

How do I preserve a UNIX socket across reboots (RasPi, Arch, chroot)

I've set up nginx and php-fpm under Arch Linux on a RasPi. nginx was set up in a chroot as described in the ArchWiki. Everything runs fine when php-fpm.conf and nginx.conf are set up to listen to ...
0
votes
0answers
76 views

Nginx/SNI: Return 444 if there's no certificate available for a specific domain hosted on the same IP

I'm stuck with configuring nginx regarding SSL and SNI support. In order to simplify my case let's say I have two domains, foo.com and bar.com. I have only one IP and both domains are mapped to this ...
0
votes
0answers
127 views

set up (VirtualBox + CentOS) with (nginx + PHP + MySql) on MacOS

I'm trying to set up (Virtual Box + CentOS) with (nginx + PHP + MySql) on MacOS, the future I can coding on MacOS then throw file to the share folder with (Virtual Box + CentOS) and execute on ...
0
votes
0answers
15 views

Ideal location for storing project files in Linux servers

Since using Linux/CentOs servers, I have read numerous blogs about suggesting where to actually place the public project folders. Nginx seems to suggest the html pages should be placed in: ...
0
votes
1answer
40 views

Multiple web apps on a laptop friendly way

I have a large collection of mini web apps written in Rails and Sinatra which I constantly use. My objective is to host them in a laptop friendly way. Most of deployment articles I have seen are ...
0
votes
1answer
45 views

nginx: how do i cancle a request with “No Response”, like “return 444” via fcgi?

i like to block out some bot trying to do bad stuff to my web-applications. a daily cronjobs extends my block.conf, containing a lof of deny a.b.c.d lines. before the cronjob runs at 4am and after ...