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

learn more… | top users | synonyms

3
votes
0answers
91 views

Nginx + openvpn (proxy) and access.log

I currently have a nginx server running on 444 and an openvpn on 443 with the port-sharing feature. The both applications run well but the IP written in /var/log/nginx/access.log is, thereby, ...
3
votes
0answers
1k 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 ...
2
votes
0answers
32 views

Why does Google Chrome automatically play MP4 videos (and is that a good thing?)

I am working on a home media server running nginx. I navigated to one of the .mp4 files I have to test it and it started streaming just by clicking on it. Is this... performance-wise... the best ...
2
votes
0answers
280 views

Url rewriting faliure in case of UTF8 urls in nginx

I am using Nginx webserver and I want to rewrite some old urls on my site to new ones inorder to prevent 404 errors. For English urls everything is OK and adding a rewrite rule like the following to ...
2
votes
0answers
2k views

Establish https on nonstandard port

I'm trying to estamblish https on port 55434 (different than standard 443). My nginx configuration looks like this: server { server_name example.org; listen 55434 ssl; ssl ...
2
votes
0answers
496 views

PHP : curl is and Not working in ubuntu10.04 and Nginx

I am running Nginx server on ubuntu 10.04 I am using the php version 5.3.2 .I installed php5-curl using apt-get install php5-curl. Unfortunately the curl package is not displaying in phpinfo() . ...
2
votes
0answers
470 views

Raspberry Pi, Mercurial and nginx

I am posting this here, as apparently, I am unlikely to get any help at raspberry pi. Please bear with me. I have a small problem with configuring Mercurial to work with nginx using unix sockets on ...
2
votes
0answers
329 views

how do I enable debug logging in php5-ldap

I have phabricator running on Ubuntu behind nginx and php5-fpm, and now trying to figure out why ldap logins fail. Is there a way to enable verbose logging of the php-ldap code? What file is the log ...
2
votes
0answers
1k views

How to fix the authentication error “request-digest mismatch” using cadaver and WebDAV on nginx?

I use nginx 1.3.9 with the extensions nginx-dav-ext-module and nginx-http-auth-digest. The problem seems to only occur when I try to log in with cadaver, it’s possible to access the DAV share with ...
2
votes
0answers
1k views

How can I pass environment variable in nginx conf?

I have nginx conf as location /static/ { alias $HOME/code/python/vlists/vlists/static/; # if asset versioning is used if ($query_string) { expires max; ...
1
vote
0answers
9 views

Access backend Node JS application from Rails + NGINX

So I have a NGINX Webserver forwarding connections from port 80 to my Rails application. The Rails application handles authentication and serves basic functionality and static pages. I have several ...
1
vote
0answers
14 views

Privilege separation per user for each web application

I'd like to ask a question about LNMP stacks and user privilege separation. I usually host websites on LNMP stacks and Wordpress on Debian 7 and 8 servers. I separate each Wordpress site into its own ...
1
vote
0answers
75 views

Implementing fail2ban the correct way

I have a Django web app where people write comments and upvote/downvote others' comments. The webserver is gunicorn + nginx (reverse proxy). The db is postgresql. The db and web app reside in two ...
1
vote
0answers
36 views

Serve auto-generated zip files with small footprint

I currently use mod_zip/nginx(for automatically generating zip files). The (very very big) issue with mod_zip is - when it accepts range requests - it doesn't pass ranges to subrequests. What ...
1
vote
0answers
34 views

Virtualbox, nginx suddenly showing default root path

I have a development server set up on virtualbox. I'm running Ubuntu 14, nginx, mysql and php-fpm. I'm having a problem where by it no longer connects. If I enter the IP address it goes to the ...
1
vote
0answers
59 views

Access development VM (Vagrant / VirtualBox) from Android phone

I'm developing a web app on my PC. My dev environment is Vagrant / Virtual Box / Ubuntu 14.4. Vagrant serves the app content on 10.0.0.101, which is mapped in my hosts file to dev.myapp.com. Inside ...
1
vote
0answers
79 views

Nginx catch all domain, then add www if not present

This setup is for multiple domain sharing a single CMS platform. It will allow any domain to point to my server ip. I can use nginx server_name _; to catch all. But then I would like to 301 redirect ...
1
vote
0answers
46 views

nginx keeps redirecting to welcome page

I am using the following config: server { listen 80; server_name 192.168.1.10; location /shutter { proxy_pass http://192.168.1.10:8989; proxy_set_header Host $host; ...
1
vote
0answers
25 views

Is there a downside to adding an entire block list to UFW

I made a nginx based proxy server that redirects traffic for a few machines so they can have a single security filter that I can maintain. Nothing crazy, just enough to block a few ad tracking ...
1
vote
0answers
419 views

Nginx OpenSSL library install error

I am on Mac OS X 10.11 (El Capitan), ran rvmsudo passenger-install-nginx-module and when building I ran into this error: -lstdc++ -lpthread -lm /tmp/passenger.1rb7py0/pcre-8.34/.libs/libpcre.a -lssl ...
1
vote
0answers
99 views

404 No input file specified. on VirtualBox, CentOS 6.5, Nginx

I have installed VirtualBox on my mac, and change the settings with VitualBox , Adapter 1 - Attached to: Host-only Adapter, Name: vboxnet0. and install guest addistions ./VBoxLinuxAdditions.run ...
1
vote
0answers
48 views

Session-based load-balancing with nginx and nodejs?

As I understand it, load-balancing with nginx is typically based on requests, i.e. each request is forwarded somewhere different, be it to remote machines or to instances of a local service. However, ...
1
vote
0answers
237 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 ...
1
vote
0answers
217 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; ...
1
vote
0answers
221 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 ...
1
vote
0answers
969 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
110 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 ...
1
vote
0answers
78 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 ...
1
vote
0answers
356 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 ...
1
vote
0answers
986 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 ...
1
vote
0answers
402 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 ...
1
vote
0answers
274 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 ...
1
vote
0answers
151 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/; } ...
1
vote
0answers
391 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 ...
1
vote
0answers
982 views

exec ffmpeg not working for nginx-rtmp-module on AWS Ubuntu

I was trying out the nginx-rtmp module from https://github.com/arut/nginx-rtmp-module. While implementing the example for ffmpeg given in the link, my exec ffmpeg is not getting executed. My rtmp ...
1
vote
0answers
502 views

Why all subdomains are directing to same service?

I have 3 subdomains: a.mydomain.com, b.mydomain.com, c.mydomain.com configured by domain provider as following: Name TTL Type Value a 1d CNAME @ b 1d CNAME @ c 1d CNAME @ And the nginx ...
1
vote
0answers
4k views

Can't stop/reload/restart nginx with “service nginx”-command

I installed nginx via passenger for running ruby on rails applications. I added the this script: RedHat Nginx Init Script Changed paths for nginx and config to where they are located: ...
0
votes
0answers
6 views

How does Nginx understand forwarding request?

For example, on the router was configured Forwarding for all incoming requests to a dedicated IP Nginx server. The client requests a resource: www.google.com How does Nginx understand what resource ...
0
votes
0answers
10 views

nginx ssl_write returns SSL_ERROR_WANT_WRITE and retry after many seconds

I'm using nginx-1.7.3 + openssl1.0.1j to do a https web proxy in front of my real server. I found there are always some requests' $request_time is much bigger than $upstream_response_time. I ...
0
votes
0answers
13 views

ERR_TOO_MANY_REDIRECTS between two Nginx servers

I've got a reverse proxying Nginx docker container to proxy requests to other servers. In this case its another Nginx container hosting the PHP application Magento. Every since I installed a wildcard ...
0
votes
0answers
8 views

How to get piwik running with nginx on Ubuntu?

Seeing that I want to learn more about linux administration today I wanted to set up an instance of the self-hosted Piwik statistics package for a website I'm running. Since I don't want to disturb ...
0
votes
0answers
12 views

What exactly are the security implications of ufw DEFAULT_FORWARD_POLICY “ACCEPT”?

I found this question asked on Serverfault, but the answer just provided alternatives instead of actually detailing the implications. I had to set DEFAULT_FORWARD_POLICY to "ACCEPT" to be able to ...
0
votes
0answers
13 views

About second-level domain names corresponding to nginx server blocks

There are 2 second-level domain names and 2 corresponding folders,like this: domain name folder 111.aa.com /var/www/111.aa.com 222.aa.com /var/www/222.aa.com In nginx.conf,there are 2 ...
0
votes
0answers
11 views

OSX - Nginx on docker to forward docker app

Im new to docker and I was able to work with it on a Ubuntu machine and get access to a service hosted on this machine from an other (thank to nginx on the system). Since I need to do some dev from ...
0
votes
0answers
29 views

http connection works with IP address in Nginx but not with domain name

I have a website setup using Nginx. If I try to connect through IP it works fine. But whenever I try to connect through domain name, I got connection reset error. telnet mydomain 80 Works fine. ...
0
votes
0answers
12 views

How to change transmission-daemon port?

In /etc/transmission-daemon/settings.json I changed "rpc-port": 9091 to "rpc-port": 69, but since then I've been getting ERR_CONNECTION_REFUSED when I try to open website:69. Earlier, I was able to ...
0
votes
0answers
13 views

How to forward CORS requests in Nginx to different handlers

I have a setup as shown below: I make a AJAX request to /handler_1 eg. /handler_1?q=abcd. If this handler gives a HTTP 500 then redirect to /handler_2 with /handler_2?q=abcd and return the response ...
0
votes
0answers
26 views

NginX Unicorn setup not serving Server Blocks

i used the awesome Gist to setup unicorn together with nginx. It works perfect so far. But now i have the need to serve a small app with basically static files for a subdomain. I create a server block ...
0
votes
0answers
53 views

How do I get my nginx server on the internet?

I have a personal website and it's very small, therefor I don't want to pay for it be hosted online. After a few days of research I decided to install vmware with linux ubuntu-server 14.04 with an ...
0
votes
0answers
12 views

How can I make nginx give more attempts at Basic Auth?

I have the following configuration: location / { auth_basic "closed site"; auth_basic_user_file ../htpasswd; } However, when I go to that page and mistype my credentials, ...