Nginx ("engine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

learn more… | top users | synonyms

0
votes
2answers
17 views

Why is nginx running with a new PID each time I list my processes

Why is nginx restarting with a new PID each time I list processes? And also, why is nginx running to begin with? Refer to image below for output. Nginx Output I don't know if this is useful but I ...
0
votes
0answers
10 views

When does nginx's proxy_pass return 301 and when does it forward the request?

When using a nginx server on a vagrant (hosted by virtualbox) i used this config ... server { port_in_redirect on; listen 80 default_server; listen [::]:80 default_server ipv6only=on; root ...
0
votes
1answer
7 views

nginx 1.8.1 only works with default root

I have Cent OS 6.6 with nginx 1.8.1 installed. It seems like if I change the root in the conf file to something other than the default '/usr/share/nginx' it gives an error 403 Permission denied. I ...
0
votes
0answers
8 views

Nginx failed space when upload

I've a problem with my nginx server. He is a storage server, and when i want to upload a file (2,5G) i can show any error on my error.log 2016/02/08 03:26:24 [crit] 7843#0: *1154 pwrite() ...
1
vote
0answers
10 views

Nginx per used directory sites configuration

I have virtual server with 25 hosts with WordPress sites. Users need to be able to access their sites via ~username from main domain like this : http://subdomain.example.com/~username/ which works ...
0
votes
1answer
20 views

Nginx configuration mix

Is it possible to mix some configuration settings in Nginx? For example there is the auth_basic, which should work everywhere. And there is some other configuration spefic for one directory. Or there ...
0
votes
1answer
9 views

Nginx: Access same content from multiple URLs

I'm trying to configure nginx so that the same static content can be accessed through two different URLs without any redirects. For instance, if the client enters /path/to/A in their browser, I want ...
0
votes
0answers
16 views

Deleted an error log and it won't regenerate

I'm a novice and hoping that someone with more experience can help me with this. I am running a VPS with CentOS 6.7 and nginx. The error log was getting very large and I was worried it would take up ...
0
votes
0answers
17 views

Ubuntu - Nginx + php5-fpm - suddenly times out every request even after restart

Caveat - Newbie nginx/php5-fpm/ubuntu I inherited a couple linux boxes and have had the same thing happen on both. I assume it's user error, but for the life of me I don't know what I did. ...
-1
votes
0answers
17 views

HTTPS redirects with cloudflare SSL

I am using the Cloudflare to expose my application server as http and https. Because the nginx back-end is http, internal redirects (http 201, 301, 302) contain the server http address in the Location ...
0
votes
1answer
15 views

Installing Nginx “Headers More” module with YUM

I would really like to avoid the custom patching/compiling stuff as upgrades are a nightmare. On Nginx, which I've installed using yum install nginx18, I'd also like to enable the popular module: ...
0
votes
0answers
6 views

Dynamic Partition Based Proxying [on hold]

In scalable architectures which partition (shard) systems using the userid or tenantId as the key, I was curious to know what are the common products that are used for routing requests intelligently ...
0
votes
1answer
27 views

How do I proxy pass a URL in Nginx where location match is a URL and proxy pass has another URL

We have hosted some xml files in a S3 bucket on Amazon AWS. The web server is powered by Nginx. For a particular URL matching '/super-shots.xml' , Nginx must proxy pass through S3 location which is : ...
0
votes
1answer
22 views

How do I tell Nginx to pass requests to different apps based on the incoming url?

How do I tell Nginx to pass requests to different apps based on the incoming url? For example, mybudgetapp.com and myshoppingapp.com both point to my server where both apps (8001, 8002) and Nginx ...
-1
votes
1answer
29 views

Case insensitivity in nginx

We have several SEO pages like: http://www.example.com/PageOne.html Which we redirect in config like: location = /PageOne.html { rewrite ^/(.*) /seo.php?id=1 last; } Problem is if a user ...
-1
votes
0answers
14 views

Parameterized configuration templates/macros with nginx [on hold]

I have several websites hosted on the same server and they all share similar, but slightly different configurations. With Apache I could define a <Macro> that accepted arguments, but with nginx ...
-1
votes
0answers
18 views

how to resolve domain in frontend nginx load balancer for two backend apache servers

how to resolve domain in frontend nginx load balancer for two backend apache servers...? we have confired nginx load balancer in frontend... and then configured two apache web-server in backend... ...
-2
votes
2answers
42 views

redirect https://www.example.com to https://example.com in nginx

I have SSL issued for domain.com. Now these url works fine: http://www.example.com -> https://example.com http://example.com -> https://example.com https://example.com But when accessed with ...
2
votes
1answer
12 views

nginx return adds trailing slash to url

This redirect adds a trailing slash which breaks the link I would like to spend people to, the exact code follows: server { listen 80; server_name graphwhy.org; return 301 ...
1
vote
1answer
32 views

Nginx serving .PHP as a download only when .php is added with arguments

Here is my current nginx config: server { server_name mydomain.example; access_log /srv/www/mydomain.example/logs/access.log; error_log /srv/www/mydomain.example/logs/error.log; root ...
0
votes
1answer
35 views

Reverse proxy caching Steam stream

I'm currently using nginx to cache Steam downloads for my local network as detailed by Multiplay. This works great, but Steam has a feature to watch other users games via a stream not unlike Twitch ...
0
votes
1answer
28 views

Pointing Custom Domain to Server on Nginx

I have my server up and running on an Azure Ubuntu 14.04 virtual machine. It is working great. Now I want to point my custom domain to it so that users can visit my website by going to www.example.com ...
1
vote
0answers
25 views

migrating htaccess from Apache to nginx

I'm trying to start using Homestead for my non-Laravel projects (legacy) and I managed to install box 0.3.3 successfully by cloning laravel/homestead 2.2.1 (with PHP 5.6.15). Now my problem is due to ...
-2
votes
0answers
28 views

Is code 444 DDoS-safe?

Can I DDoS a site which repsonses with a 444 code? It is like a nullroute via IPtables? I want to restrict access via my IP, but not via my domain (because its secured by CloudFlare, the IP actually ...
0
votes
0answers
23 views

nginx GEOIP behind cloudflare proxy showing wrong country (not of end user, but if proxy)

I am using Cloudflare and nginx geoip directives: geoip_country /usr/local/share/GeoIP/GeoIP.dat; geoip_city /usr/local/share/GeoIP/GeoLiteCity.dat; They are picking the IP up OK (as pipaddress ...
0
votes
1answer
27 views

Nginx caching pages for logged in WordPress users (and showing admin bar to visitors!)

I have setup nginx with caching in WordPress. I am using the https://wordpress.org/plugins/nginx-helper/, however it seems the logged in page is being cached when it should not be (hence showing the ...
0
votes
1answer
17 views

Nginx proxy_pass always sending to [::1]

I am having problems with redirection from Nginx to gunicorn. I'm using proxy_pass to redirect to https://127.0.0.1:5000, and yet the redirect is being sent to https://[::1]:5000. Here is my own ...
0
votes
0answers
22 views

Nginx M/Monit password protect

I am trying to protect access to M/Monit web interface: Box: ubuntu 14.04 nginx 1.8.1 mmonit-3.5.1 I created a mmonit config file under /etc/nginx/sites-available: server { listen 8080; ...
2
votes
2answers
147 views

RHEL Nginx SSL versus non SSL performance huge difference.

I'm in the process of setting up an Nginx 1.8 reverse proxy. In short - Serving HTML content HTTP traffic is up to 50x faster than HTTPS. Serving ProxyPass HTTP traffic is up to 7x faster than ...
-1
votes
0answers
26 views

apache2 stop working due high traffic

I have 1GB RAM VPS due the high traffic load all my websites take about 1 minute to load then shows me 403 forbidden nginx after i using sudo service apache2 restart the websites load normal after ...
1
vote
0answers
18 views

Large RSS feed requests to non-existent URL causing 404 (and high load)

Recently I had a new site launced completly replacing a previous site. We have cloudflare in front and switched the host-name to the new site IP. Instantly we saw load go above 200+ and a constant ...
-1
votes
1answer
19 views

Hiding parameters on url with nginx

I have a website with this kind of adresses: www.mydomain.com/user/userprofile/[userprofile1]?r=[login]&w=[encryptedpassword] ie: ...
0
votes
1answer
17 views

fastcgi_cache_path keys_zone=WPCACHE:2048m inactive=480m; disk size

I have setup a directive to cache to memdisk in nginx with: fastcgi_cache_path /dev/shm/nginx levels=1:2 keys_zone=WPCACHE:2048m inactive=480m; fastcgi_cache_key ...
0
votes
0answers
15 views

compute engine how to access external ip

I just got a trial compute engine and I've been trying to set it up. This is the first time I set up a web server from scratch. I'm trying to serve a web app written in node, and I want it to sit on ...
0
votes
0answers
22 views

What is a correct way(s) to allow login to an IIS site through a reverse proxy?

I have an nginx reverse proxy, and I'm trying to get an IIS website with login to work behind it. I've found this question asked several times, but each answer appears to be different, and some of ...
1
vote
1answer
29 views

Nginx: handle location depending on HTTP method

I want to handle all [GET] requests to /api from cache and handle all other requests as in last location block (without cache). All the requests to /api with methods PUT, POST, DELETE also have not to ...
1
vote
2answers
41 views

nginx not caching wordpress site

I have a website set up to use nginx caching. Here are the details: fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=MYAPP:100m inactive=60m; fastcgi_cache_key ...
0
votes
0answers
27 views

Nginx limit_req_zone ignores rate value

I have a strange behavior my config looks something like this: http { limit_req_zone $binary_remote_addr zone=nocachelimit:10m rate=120r/m; } ... location "/api" { { limit_req ...
2
votes
1answer
61 views

Nginx rewrite, reset rewrite or add extensions to a specific directory

Here's my nginx site config: server { server_name DOMAIN.COM; access_log /srv/www/DOMAIN.COM/logs/access.log; error_log /srv/www/DOMAIN.COM/logs/error.log; root /srv/www/DOMAIN.COM/public_html; ...
-1
votes
0answers
14 views

Inter-process Communication for Apache Server and Nginx [closed]

I'm currently implementing a system to intercept the IPC communications for web servers. For Nginx and Apache httpd web server, there usually exist several processes there for certain modes. For ...
2
votes
1answer
34 views

Nginx rewrite: remove ? after filename.php

Here's my current nginx site config: server { server_name DOMAIN; access_log /srv/www/DOMAIN/logs/access.log; error_log /srv/www/DOMAIN/logs/error.log; root /srv/www/DOMAIN/public_html; location / { ...
1
vote
1answer
35 views

Bad Gateway 502 (nginx + php7) on Digital Ocean

Every time when I try to publish my site, I get after a couple of minutes 502 Bad Gateway error, and in my default-error.log file I get this error over and over (file size was 360MB..): 2016/02/03 ...
0
votes
0answers
18 views

Is it possible to install puppet recipe on an existing system manually?

I have a Vagrant/Puppet Box configuration installing ubuntu, PHP, nginx, redis, etc ... I would like to apply same software on my current ubuntu vm with my working enviroment. I could Install the ...
0
votes
0answers
29 views

Connection issues after separating database from the web services

We had performance issues where server would run out of resource and decided to move database onto another server. It seems to work but crashes every few minutes with the following errors: Warning: ...
0
votes
0answers
14 views

Jail php (nginx + unix socket) in a folder

I have to store two php applications in a single server. Following my current setup: /etc/php5/fpm/pool.d/app1.conf [app1] user = app1 group = app1 listen = /var/run/php5-fpm-app1.sock listen.owner ...
0
votes
1answer
11 views

Is it possible to copress the cached files of nginx fastcgi_cache

Is is possible to compress/gzip the cached files managed via nginx fastcgi_cache? I am thinking of saving two versions of cached files (normal & compressed) and use appropriate key structure to ...
0
votes
0answers
16 views

Nginx + Passenger: limit_req_zone not working

I have nginx + passenger installed on the server. In the nginx.conf file, I have the following configuration: http { .... limit_req_zone $binary_remote_addr zone=delta:10m rate=2r/m; ... ...
1
vote
1answer
33 views

Nginx won't load css/js/images when redirecting

I need to redirect my page to a maintenance page when I get errors 50x. It does redirect, except it won't load css, js or images. The error log is clean and the access log doesn't show any problem. ...
0
votes
0answers
33 views

How to stop NGINX spawning new instances

So a bit of background, I'm running a little web app using just in-memory data. It's about 20 rows all-in so I've removed the database to speed things up. Just recently I deployed it on a Raspberry ...
0
votes
2answers
24 views

NginX redirect domain.com to domain.com/path when accessing domain.com

So basically I had to proxypass the root of a web server @ / but the application is hosted at /ui When they don't manually type /ui they are presented with the home page of the server, which is ...