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

learn more… | top users | synonyms

3
votes
0answers
109 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
36 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
287 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
505 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
475 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
331 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
36 views

Nginx Reverse Proxy wants } at end of htpasswd

After generating the htpasswd file online, nginx gives me the error "nginx: [emerg] unexpected end of file, expecting ";" or "}" in /etc/nginx/sites-enabled/htpasswd:2". The weird thing is, there's ...
1
vote
0answers
11 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
18 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
88 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
41 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
35 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
68 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
88 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
59 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
29 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
465 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
109 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
51 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
262 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
238 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
228 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
1k 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
116 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
79 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
378 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
1k 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
414 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
278 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
152 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
407 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
441 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 ...
1
vote
0answers
1k 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
512 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
4 views

What affects the state of a port besides csf firewall?

I'm on a server that uses csf. Within which, when I include port 80 in the "Allow TCP Incoming" list, port 80 is still closed when I port scan it.
0
votes
0answers
6 views

Unable to connect NGINX to Tomcat Server

I have Nginx Server running on port 80 and and Tomcat Service is running on port 8080. I followed some of the tutorials for setting Nginx as proxy server but getting 502 Bad Gateway. i have created a ...
0
votes
0answers
8 views

how to use python with nginx

I have nginx running under Windows. What I can't figure out is how to bind python interpreter to nginx. I guess it has something to do with nginx.conf. I'm going to use Django or other framework, I ...
0
votes
0answers
12 views

Nginx write logs to the old file after running logrotate

The logrotate config is: cat /etc/logrotate.d/nginx: /data/logs/nginx/*.log { daily dateext dateformat .%Y-%m-%d rotate 30 missingok create notifempty sharedscripts postrotate [ ! -f ...
0
votes
0answers
32 views

502 Bad Gateway with Nginx as proxy for Jenkins

I'm using Centos 7 with Nginx and a SSL from letsencrypt to use as a proxy for jenkins on the same droplet. Everything was working up to the point I tried to proxy Jenkins.. which gave a 502 Bad ...
0
votes
0answers
13 views

WHy is nginx trying to serve over SSL

I am new to nginx. So, I know I will need to post additional info. Apologies for starting with a lack of info. I have my first nginx server set up with virtual domains. The problem domain is a ...
0
votes
0answers
15 views

How do I add an index page to the GitLab bundled NGINX?

I've recently installed GitLab, and I'm using the bundled NGINX with it. I've been able to successfully set it up, and put it on mydomain.com/lab Great! Only problem is that when you go to ...
0
votes
0answers
6 views

Avoiding duplication in log_format nginx directives

I am expanding nginx default combined log format: log_format combined '$remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' ...
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
13 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
24 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 ...