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
0answers
3 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
26 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
27 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
19 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
18 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 ...
-1
votes
0answers
26 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
14 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
25 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
13 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
20 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
140 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
23 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
16 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
18 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
13 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
13 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
14 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
0answers
21 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
40 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
26 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
59 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
13 views

Inter-process Communication for Apache Server and Nginx [on hold]

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
32 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
31 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
16 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
28 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
13 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
9 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
13 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
31 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
32 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
23 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 ...
-1
votes
1answer
29 views

Seperating web server from database over public network

How much of a risk is it splitting nginx web server from mysql database server and having them talk over public network? The database server would be in the same OVH DC but from what I understand ...
1
vote
0answers
18 views

Getting 404 Not Found while PHP works in background - Nginx

I have noticed that I get 404 - Not Found when calling a .php file even if the script works in background. The php file downloads a long Json and populates a db until I close the window. I am using ...
0
votes
1answer
24 views

Nginx transparent reverse proxy for https and http to another server

I have researched this for a while but the use cases that others have asked about are more complex/different to what I am trying to achieve. I have Nginx serving pages on both ports 80 and 443 for ...
-1
votes
1answer
22 views

Nginx Not Respecting File Permissions

I'm trying to apply permissions of 600 to certain files on my web server, but they are still accessible to the world (I can access them by navigating to direct link in browser e.g. ...
2
votes
1answer
24 views

Nginx location index trouble

I have troubles with nginx location block. location /myApp/api/account/tutorialPage { alias /data/www/; index tutorial.html; } if a have strict match - all is fine, a have access to my ...
-1
votes
2answers
45 views

Nginx inside docker container can't talk to other containers (running jenkins)

I'm trying to set up a nginx proxy inside docker that will listen for web traffic and then based on virtualhosts forward traffic to differerat jenkins instances also running inside docker containers. ...
2
votes
1answer
27 views

Run a specivic (older) php version with nginx, php-fpm on debian

In order to migrate old php software, I want to run php 5.3.* so I: Removed php via apt-get purge php* Added the corresponding http://snapshot.debian.org/archive/debian/ to the sources Installed ...
0
votes
0answers
8 views

Scaling and HA LEMP coming from a single server setup

here is the current configuration 1 Server: nginx php-fpm memcached mariadb 10 The project is growing fast and in the midterm we need to scale. When I have to setup multiple machines I want to ...
0
votes
1answer
11 views

Insert a variable route path into nginx location configuration

I have a simple user based storage for images where I have a main folder say 'users' and within it, my server creates variable folders to store images for each user. The string used for the folder is ...
0
votes
0answers
17 views

Does nginx consider a page request as one request or more (including static files)?

Lets say we have a configuration as below: http { limit_conn_zone $binary_remote_addr zone=conn_limit1:12m; limit_conn_zone $server_name zone=conn_limit2:24m; [...] server ...
0
votes
0answers
34 views

ssl (https) for https://my.example.com resolves to https://example.com ip address

I have a server my.example.com with ip address 111.111.111.222 I have a server example.com with ip address 111.111.111.111 I created an ssl certificate with letsencrypt for my.example.com However, ...
0
votes
0answers
37 views

Second subdomain redirects to the main domain, but URL remains the same as second domain

It's quite strange to see this issue as title describes. Here are the details: 1) Created a A-record with "a1". Means subdomain is: a1.example.com, 2) created directory by "sudo nano ...
-1
votes
0answers
62 views

Cannot deploy containers on a private docker registry

I'm trying to setup a private docker registry, but no matter how hard I try there's always something that goes horribly wrong. In my current setup, here's the error I receive: $ docker push ...
1
vote
2answers
40 views

Nginx cache invalidation only works if invoked from the same domain

I am using FRiCKLE's ngx_cache_purge module to invalidate proxy caches. I ran into a problem of not being able to purge caches when accessing the invalidation url with a different HOST part of url ...
0
votes
1answer
32 views

Nginx - Can I specify rate in limit_req_zone in requests per hour?

While limiting the number of requests from an IP, I am using limit_req_zone $binary_remote_addr zone=one:10m rate=1r/m; I can specify the rate in r/m (requests per minute) or r/s (requests per ...
2
votes
2answers
35 views

Multiple domains in nginx without repetitive configuration

I have 2 domains names exemple.net exemple.com and lot of sub-domaines demo1.exemple.com demo2.exemple.com ... demo50.exemple.com Currently I have 50 blocks like this: server { ...
-1
votes
0answers
20 views

Keep Referer Information in Reverse Proxy

I have one Apache Http making reverse proxy to service that is running other server in NGINX. The service running in the second server need to get the referer and other information from the public ...
1
vote
1answer
42 views

PHP 7 and 5.6 parallel in Nginx

I want to use PHP 7 with newer apps and PHP 5.6 with apps, that doesn't work with PHP 7. So I try to configure Nginx to enable different PHP versions for different pathes. But it doesn't work: # ...