nginx (pronounced "engine-x") is a lightweight, high-performance Web server and reverse proxy as well as IMAP/POP3 proxy server.

learn more… | top users | synonyms

0
votes
0answers
4 views

Using goaccess to figure out cause of increased traffic

I have an Ubuntu server hosted by Linode. A few days ago I got a notification that my Disk IO rate was higher than normal. I am trying to determine what they root cause of this is and whether I need ...
0
votes
2answers
18 views

What would be a portable nignx HTTP access log format to use with nginx?

I am looking for a way to store that logs in a common format so they can easily be recognized and parsed by most tools. I am interested about a format that is automatically recognized by goaccess ...
2
votes
1answer
15 views

Nginx php-fpm, try_files and GET params

I'm having a problem getting nginx configuration to work. Seems like everything works fine but my php script does not receive GET parameters. The most relevant link I get on my issue is this one nginx ...
1
vote
1answer
16 views

nginx no speed limitation for a connection

I have a server with nginx installed on it to serve some files for downloading. I also didn't change default configuration of nginx. Problem is that when I try to download from this server it seems ...
0
votes
0answers
10 views

nginx push request forbidden

I'm running a local git server using nginx but i'm getting a problem in my push request. i can clone from my repo, after that when i commit and try to push it back my i get a 403 Forbidden error ...
0
votes
0answers
9 views

Nginx Startup Script Hanging [duplicate]

I'm having to run the nginx startup script in the background, or it does not return to the shell when run - it does this through either service nginx start .. or simply running .. ...
0
votes
0answers
13 views

systemctl Failed to parse kill mode, ignoring mixed

On CentOS 7 I wanted to check the status of the nginx service: # systemctl status nginx -l nginx.service - The nginx HTTP and reverse proxy server Loaded: loaded ...
-3
votes
0answers
10 views

How to store “fastcgi_cache” indefinitely?

And only refresh it when backend data did some changes? Using nginx 1.9.2 and PHP-FPM 5.6.10. Thanks!
0
votes
0answers
11 views

nginx auth_request configuration

I'm running nginx and I wanna configure it to authenticate via a python script that will look up in my database. I need to receive the password and username in my python script but I can't figure out ...
0
votes
1answer
34 views

Nginx log shows suspicious directory access!!! How to block them?

On my Nginx log recently i have noticed 100's entries like this where a directory search was executed with error, because those directory does not exist on my webserver. now, how can I block them once ...
0
votes
0answers
27 views

502 errors on random (not all) pages

A few weeks ago I noticed in the Google Webmaster tools that a few of my URL's were returning 502's. One such URL is http://www.sau.com.au/forums/topic/437438-around-the-bay-wrap-up/ This URL ...
1
vote
1answer
32 views

Nginx hanging on restart

I'm having to run the nginx startup script in the background, or it does not return to the shell when run - it does this through either service nginx start .. or simply running .. ...
0
votes
1answer
20 views

Nginx url rewrite file not found

I have converted my .htaccess to work with Nginx but i have many 404 errors or wrong display for folder and subfolder rewriting. This Nginx config works for folder and subfolder but for /view/ its ...
1
vote
1answer
35 views

Unexpected File Download Slowness After Enabled SPDY on Nginx

A simple WordPress static site run entirely on https. Nginx conf here: http://pastebin.com/BrP0LThT Only difference before / after is: listen 443 ssl; listen 443 ssl spdy; Nginx ...
-1
votes
0answers
20 views

Nginx to disable direct ip access [duplicate]

I have an nginx server to manage several websites with their respective domain names. Now I found if I enter the ip address of the server into the browser's address bar, it goes to one of the website. ...
0
votes
0answers
19 views

nginx downloads .php files - error configured

I'm trying to follow this tutorial in order to create an amazon machine with nginx and php: http://stale.coffee/ec2-micro-instance-adventure-nginx-php-mysql.html All good, I opted to use ...
0
votes
0answers
23 views

Nginx - don't log certain requests by METHOD (e.g HEAD and OPTIONS)

I know how to customize nginx access_log directive, but I fail to find how I can turn off logging by specific request method: such as HEAD or OPTIONS. I would prefer a solution within the access_log ...
1
vote
0answers
24 views

Nginx - How to authorize access to repositories using python script

I have set up a local Git server using Nginx ( in Ubuntu ) ,Now I want to authorize users using external python script , which should authorize them against predefined database . AFAIK, I have to ...
1
vote
2answers
36 views

Can't get apache working after installing nginx & hhvm

I had Apache2 running on my local ubuntu machine and I installed nginx & hhvm on my local for debugging purposes by following this tutorial. I would now like to switch back to Apache2 as I had it ...
0
votes
0answers
18 views

A nginx, php-fpm, and mysql php app is very slow for no explainable reason — times out often

I have a setup of a load balancer, followed by a web server consisting of nginx, hhvm, and php-fpm. The app I speak of is using php-fpm, and all hhvm apps perform fine. When I access ...
0
votes
1answer
21 views

magento store views under sub folders with nginx

Can someone please explain how i can get nginx to reocgnise a store view in magento under it's own sub folder. i have a store.. with the following code in my nginx config file. location ~ \.php$ { ...
0
votes
0answers
26 views

Nginx proxy_pass and redirect

I tried to clean up my urls on my reverse proxy nginx config. My config looks like this upstream blog { ip:port; } server { listen 80; server_name domain.tdl ...
1
vote
2answers
42 views

Windows XP invalid certificate on Nginx

I migrated my SSL websites and certificates from Apache to Nginx and from that moment all Windows XP clients does not recognize the SSL certificate (it is a wildcard certificate issued by Trustico). ...
0
votes
0answers
17 views

Nginx Redirect - Too many stops an issue?

I've been researching this issue for a while now and come up with quite a few conflicted results. Basically when entering our webpage we want you taken to https for seo and security purposes. I'm ...
0
votes
1answer
18 views

Does whitespace matter in nginx conf files?

I have an nginx conf file that due to using environment variables, I have a shell script echo, this file I refer to as nginx.conf.template, then I place the echoed reult into the actual nginx.conf, ...
0
votes
0answers
23 views

no module named 'project' in gunicorn using Django 1.8 & python 3.4

I've deployed with ansible a project using Django 1.8 and python3.4 in a virtualenv folder. For my projects including settings and wsgi in a config folder it works, the deployment is fine and it ...
0
votes
0answers
17 views

Nginx - Wordpress in a Sub-directory

I am running wordpress in a sub-directory /wordpress, I want it to be served at root. I cannot change the application root to /wordpress, because i have a core php application at root, which runs as ...
0
votes
1answer
55 views

haproxy-varnish can't reach 6k requests

Issue I can't reach 6k requests/seconds. I get a lot of timeouts. My response time goes as high as 26 seconds. Intro I am setting up a server that will host a 100MB static-website. The thing is ...
0
votes
0answers
16 views

Getting recv() failed (104: Connection reset by peer)

The following issue happens only when i use Laravel's @include to include other blade templates into main layout: /etc/nginx/error.log 015/06/25 23:42:34 [error] 3374#0: *1 recv() failed ...
0
votes
0answers
15 views

Nginx User Directories

I am trying to configure nginx so that when going to http://example.com/~user/ it will load files from the /home/~user/www/ directory. I have found a script that seems to work for .html files but ...
0
votes
0answers
15 views

nginx alias configuration and 404 redirect

I have an alias for phpMyAdmin in Nginx like so: location /phpmyadmin { alias /usr/share/phpmyadmin; index index.php; auth_basic "Restricted"; ...
0
votes
0answers
14 views

How can I redirect all requests to non-matching server_names if I define multiple server_names?

What I want to achieve: I have several domains, subdomains, etc., all of which point to the same nginx vhost. Right now, only one domain (the "correct" domain) is configured in the vhost file: ...
0
votes
0answers
29 views

Very basic nginx configuration failing

The following is my nginx configuration: user www-data; worker_processes 4; pid /run/nginx.pid; events { worker_connections 768; multi_accept on; } http { server { listen 80; listen ...
0
votes
0answers
15 views

Remove directory from URL using NGINX as a reverse proxy

Below is my NGINX configuration: server { listen 80; server_name subproject.domain.com; root /usr/local/tomcat/webapps/subproject/; location / { proxy_pass ...
0
votes
1answer
25 views

Nginx Error 500 page no-cache

This doesn't make much sense, but it seems like when nginx serves up an error 500, it sends along a header that the client shouldn't check for new content the next time it connects. I can get around ...
1
vote
1answer
27 views

HAProxy redirect traffic to NGINX getting error “The plain HTTP request was sent to HTTPS port”

What we are trying to is to have HAProxy to listen for all incoming traffic from port 443 (HTTPS & WSS) Below is our HAProxy config: frontend wwws bind 0.0.0.0:443 ssl crt ...
0
votes
1answer
11 views

Nginx not making proxy_pass when getting files (other than index.html) from Apache's Document Root

I think I'm chasing my own tail here and I've decided to ask all you gurus. I have two machines, one has a reverse proxy Nginx and the other an Apache running several virtual hosts. The nginx ...
1
vote
2answers
107 views

How may I guarantee NGINX won't serve the wrong site?

To help explain my issue, let me create an analogous, but fictional backstory. Let's say I have a friend, Sarah, who makes her living through a web cam. And let's say this source of income is ...
-2
votes
2answers
20 views

need help converting htaccess to nginx [closed]

I am a newb at nginx and I am trying to understand how to properly convert htaccess from apache to nginx. I read a few things online, like http://wiki.nginx.org/IfIsEvil, but it is just a little too ...
-1
votes
3answers
55 views

Syntax error in nginx config file [on hold]

I am trying to configure nginx on my Raspberry Pi B+ running Raspbian. Following this guide compiled and adapted by Pestmeester I managed to configure http server on port 80 and the site is up and ...
1
vote
1answer
146 views

Dynamic IP address

When a server (nginx, apache) is listening on all interfaces (0.0.0.0), what happens when one of the interfaces goes down or is modified (perhaps changes the IP address), will the server still be ...
0
votes
0answers
7 views

NGNIX limit_per_ip best for 100-200 users from same IP

so i am setting up a web server running ngnix and have it all nice and running, however after some load testing i have noticed a lot of requests are getting 503 errors due to the limits set by ngnix ...
0
votes
1answer
22 views

NGINX and failed (12: Cannot allocate memory)

could someone be so nice and explain me how to solve this problem? in log nginx print: 2015/06/24 11:12:19 [alert] 2151#0: mmap(MAP_ANON|MAP_SHARED, 33554432) failed (12: Cannot allocate memory) ...
1
vote
1answer
36 views

How to use two ssh daemons on one server using nginx or haproxy

First of all, I am new to haproxy and nginx. I would like to know if it is possible to use nginx or haproxy to receive all ssh requests, and forward them to two different ssh deamons based on the ...
0
votes
0answers
14 views

Proxying a Flask app with gunicorn and nginx

I have a Flask application that is currently being server on a machine (call it first_vm) using the following command in supervisord: gunicorn run:app -b 0.0.0.0:8002 -k ...
0
votes
0answers
8 views

Nginx rewrite URL during proxy process

Situation: I wish to host several services for personal/family use on a machine in my house. I want to protect these services with https, but wildcard certs are very expensive, so I am attempting to ...
0
votes
1answer
27 views

HTTPS to HTTPS reverse proxy with nginx

I have an Apache webserver configures with an SSL certificate. I have to put it behind a proxy, from some reasons. I'd like to configure the proxy (nginx?) to works as simple relay, from HTTPS to ...
0
votes
0answers
18 views

Nginx Default/Welcome Page Suddenly Returns

I installed Nginx a number of months ago and deployed some code. I obviously deleted the default index.html Nginx default page. I know this for certain as PHP was not installed and so index.html was ...
0
votes
2answers
17 views

Multiple SSL on NGINX with shared settings?

I have an NGINX development server. I have a large number of configuration directives which drive various features of the server. I want to be able to access the server via SSL. The problem is that ...
3
votes
1answer
54 views

How does nginx distribute traffic among IPs associated with an upstream DNS name?

With this configuration: upstream some_upstream { server some-elb.us-east-1.elb.amazonaws.com:80; } If some-elb.us-east-1.elb.amazonaws.com maps to 2 IP addresses, how will nginx distribute ...