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

learn more… | top users | synonyms

0
votes
0answers
5 views

Force nginx to answer HTTP 1.0

In Apache we can create .htaccess: SetEnv downgrade-1.0 Is there alternative in nginx?
0
votes
1answer
9 views

Using Nginx rewrite to change the shown URL from an IP?

I can't find any info on this so I don't know if it's even possible, but I was wondering: Can I use NGINX's rewrite module to change the displayed URL from, for example 123.123.123.123:6000/some/path, ...
0
votes
0answers
13 views

HTTP requests issue using nginx to serve static files as docker private registry

I am using nginx to serve images(manifests, digests) as private docker registry. Nginx container starts and mapping is done to port 5000 on docker host. Now the issue is when I try to docker pull ...
0
votes
1answer
25 views

NGINX X-Frame-Options allow only from single page

I am trying to setup my vHost to allow iframes from only one subdomain of our network. Before we had: add_header X-Frame-Options "SAMEORIGIN"; on all our pages. To accomplish what I want to do I ...
1
vote
0answers
12 views

Transmission-daemon and security [closed]

Recently I have installed and configured transmission daemon on my server, but I wounder how I can increase security of it. I am using nginx to provide access via ssl but I have a question about ...
0
votes
1answer
10 views

nginx returns error 500 when I delete cache

I am using nginx 1.8.1 with microcache to cache some php requests on /dev/shm and it's working fine, however, when I reboot the server the cached files are gone (obviously) but nginx still references ...
1
vote
0answers
16 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 ...
0
votes
2answers
20 views

webserver location /home/usr or /var/www/

I'm new to hosting my own webserver. I was curious and this may be an stupid question, but what location is practical and secure to for hosting on the web? /home/user/ or /var/www/html?? Because ...
0
votes
1answer
14 views

Nginx in chroot jail, symlink to available servers not working

I've set up Nginx inside a chroot jail at /srv/http (Arch Linux). I've modified my nginx.conf so that it includes my enabled servers: include /etc/nginx/servers-enabled/*; And I've symlinked the ...
0
votes
1answer
26 views

Troubleshooting Nginx returning random 503 on Wordpress site on Raspberry Pi

I've started self-hosting a small Wordpress website served by Nginx on a Raspberry Pi 2 Model B at home. Network wise, I had to put my Pi's IP on DMZ (I have a trashy router from my ISP). It's ...
1
vote
1answer
27 views

nginx: Configuring multiple vhost without a subdomain

I have an nginx server. I have a public IP address but I don't have any subdomains. I would like to split my dev and test servers. So can I set up these servers ie http://55.22.11.127/dev and ...
0
votes
0answers
46 views

Debian - Can't connect to nginx server from outside

Can't connect to my nginx server from anywhere but my LAN. I know I have portforwarded correctly, because I can telnet into a server on the same machine from the internet nginx.conf: user www-data; ...
0
votes
1answer
17 views

Can i use nginx.conf in public_html

I'm using nginx on my server and in my nginx.conf I have my web sites config. If I'm put the nginx.conf to public_html for specific config it will work ? Because I'm using wordpress and my security ...
0
votes
0answers
12 views

How to get user-agent, referrer from nginx error log

I see a lot of errors like the following in my nginx's error.log: 2016/01/06 15:57:41 [error] 9054#0: *381280040 open() "/mypath/current/public/images/default_avatar.png" failed (2: No such file or ...
0
votes
1answer
61 views

Standby/Offline stream image with ffmpeg/nginx RTMP

Is there a way to script NGINX RTMP to show a Offline/Standby video or static image when there is no incoming streams to rebroadcast? The idea is that when there is no incoming RTMP streams (ffmpeg, ...
0
votes
0answers
18 views

How to configure Nginx to support PHP on Mac OS X

I am building a web site using Angular JS, hosted on my local system using nginx. I want to add a contact form to my web site, but I don't know how to configure my nginx.conf file to support php. My ...
0
votes
0answers
19 views

php-fpm downgrading php version

Current Software Version:- OS : CentOS 7 PHP : 5.6.14 After installation of php-fpm on nginx 1.8, it downgrades php to 5.4. Even though new and latest version(5.6.14) is already installed. I don't ...
0
votes
1answer
35 views

Nginx serving C++ cgi script: response is binary format

I am trying to run C++ CGI script on nginx. I am using FCGIWrap with script from nginx website. The program code is like this: #include <iostream> using namespace std; int main () { cout ...
3
votes
0answers
44 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, ...
0
votes
0answers
27 views

Microsoft Edge force HTTP/2 usage

Im testing my web application with HTTP/2 protocol. Im using my local nginx with self signed ssl cert. On Google Chrome and Firefox there is no issue, the problem arises with Microsoft Edge. ...
0
votes
1answer
35 views

I'm getting ssh attacks

I'm getting millions requests in short time like in picture. Vestacp Mysql Request Graph When this attacks happend if i login ssh it shows this message. Last failed login: Wed Dec 16 12:52:56 ...
0
votes
1answer
27 views

How do I Enable JSON support on nginx

On a raspberry pi I am trying to install ldap-account-manager, which is a php application. I can successfully browse a simple php script but when browsing to LAM I receive an error indicating Your ...
0
votes
0answers
126 views

SELinux is preventing nginx from write access on the Unicorn socket

I'm trying to setup my Rails application with Nginx and Unicorn. Nginx throws following error by accessing root url of my Rails-app: дек 14 23:39:42 servercentos7 python[5604]: SELinux is ...
0
votes
3answers
31 views

2 domains with 2 certificates, 1 public IP, 1 nginx server

I hope you can help me out here because I cannot figure out why this is happening. I have the following 2 domains: alpha.com beta.com they both pointing to same server IP: x.x.x.x I have a ...
1
vote
0answers
24 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 ...
0
votes
0answers
57 views

Nginx try_files and alias does not work with variable?

Here, without variable everything works fine - I get the file I need: location /aaa/ { alias /home/bbb/current/; try_files $uri /aaa/index.en.html; } but once I make "en" a variable set $zzz "en"; ...
1
vote
1answer
73 views

nginx HLS vod capability to stop and track streams

I need to be able to stream VOD, but videos will be tracked per minute, so I need to constantly maintain information of how much minutes user has, and when he spend minutes, I need to terminate his ...
0
votes
0answers
216 views

Running NginX and PHP (CGI) on Windows 10 - No input file specified

I want to setup a web dev environment on my Windows 10 PC. On my 2nd hard drive (D:\WebDev) I have the following: This is how my NginX is configured: http://pastebin.com/raw.php?i=JFSX6hfU So, ...
0
votes
1answer
128 views

Nginx 500 Internal Server Error [FastCGI sent in stderr: "PHP message: PHP Parse error:]

I am unsure why this is occurring. My wordpress site loads fine. Is it something with my PHP code? <?php $urls = array( "http://www.mb103.com/#" "http://www.mb103.com/#" ...
0
votes
1answer
533 views

(7) Failed to connect to localhost port 80: Connection refused

I am bit of a noob here and I'm looking for some help with something I have got stuck with. I did thoroughly check Google and here for people who had experienced the same problem, but adding or ...
0
votes
1answer
51 views

how to fix unknown directive error in nginx?

I'm currently getting the following error with nginx: $ sudo nginx -t nginx: [emerg] unknown directive "sd#" in /etc/nginx/sites-enabled/default.save:27 nginx: configuration file ...
0
votes
0answers
12 views

Does nginx worker Thread blocking while waiting for PHP?

It seems that nginx worker threads can handle other connections while waiting for data from the client or while the output buffer is full: ...
0
votes
0answers
26 views

Wordpress / NGINX configuration issue

Can't get wordpress working with my NGINX configuration. PhpMyAdmin (Fast Cgi gateway) is oK , but I get a HTTP 404 error code when trying to access http://junon/wordpress/wp-admin/install.php but ...
1
vote
0answers
27 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 ...
0
votes
0answers
23 views

Ubuntu 14.04 LTS: what to do so that Python and NGINX use a secure ssl (ie 1.0.1p) library?

I'm going nuts over this issue. I'm totally unable to get a working system where Python 2.7 (Python 2.7.6 (default, Jun 22 2015, 17:58:13) and NGINX (nginx/1.4.6 (Ubuntu)) use a openssl which has been ...
0
votes
0answers
60 views

Nginx with RTMP Module issue (Mac)

Okay this is my second question about this, but this time I am way further than I was before. As the title says I am trying to install nginx with the RTMP Module onto my mac and I have everything ...
0
votes
1answer
70 views

How can I redirect a subdomain without needing to use a port, on a home server?

Current setup at home: Router OS - openWRT Router remote access - port 80 Server OS - Arch Linux Web server - nginx Server web server access - port 81 (port redirection done in router) Modem IP ...
1
vote
0answers
44 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
53 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 ...
0
votes
0answers
55 views

How to increase nginx maximum number of concurrent connections?

I run nginx on my server. I download files from my client PC from the server through http using the free download manager. I have configured the download manager to create a maximum number of 32 ...
0
votes
1answer
57 views

Domain name not working in AWS [duplicate]

I had previously hosted my domain in a different instance in a different aws account but for some reason I had to delete that aws account and create a new one. I am now trying to host my domain in ...
1
vote
0answers
35 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
votes
1answer
53 views

Why do I get apache2 welcome page while apache2 is not running?

I want to use nginx on an Ubuntu 14.04 server. So I started by stopping and removing apache2 with: sudo service apache2 stop sudo apt-get remove --purge apache2 apache2 seems to be successfully ...
0
votes
0answers
24 views

installing nginx on aws with ansible gets stuck

I'm creating a brand new ubuntu 14.04 instance on amazon, then I have an ansible playbook that installs nginx. But when I add some conf files and try to restart, it fails as log says, can't bind port ...
0
votes
1answer
509 views

nginx reverse proxy to Synology DSM, no URL base

I'm running a Synology NAS with DSM 5.x. I finally have a working nginx reverse proxy from another server with the below configuration. What I don't want is all the locations, if possible. The DSM ...
0
votes
0answers
878 views

How to install nginx on El Capitan

I just installed nginx with homebrew on a new Macbook Pro and I set everything up with homebrew PHP56, MySQL Redis CouchDB Memcached Postgresql Nginx --with-passenger ( I left the defaults ) On ...
1
vote
0answers
23 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 ...
0
votes
0answers
163 views

Owncloud with Postgress error

(Hope I'm at the right place now, Server Fault wasn't apparantly...) I'm trying to set up Owncloud (recent version) with a PostgreSQL (9.1) database on Bananian (Debian 7). Owncloud is able to ...
3
votes
2answers
280 views

Can’t get Nginx to work on port 80. Works fine on any other port

I’ve just setup Homebrew’s Nginx on Mac OS X 10.11 (El Capitan). If I set my Ngnix config like this: listen 127.0.0.1:8080; listen 127.0.0.1:81; listen 127.0.0.1:75; It’ll work. ...
1
vote
0answers
294 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 ...