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
1answer
22 views

Nginx setup, 443 open but no respons on https://

So i just integrated my certificate and my nginx conf verifies it when i restart. When i do a: netstat -anp | grep 443 it returns: tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN ...
0
votes
0answers
9 views

how to set php_value session.cookie_domain in nginx config

I have below line in Apache config, php_value session.cookie_domain '.domain.com' I want to convert it into ngixn syntax. How to set php value session.cookie_domain in nginx config?
0
votes
1answer
22 views

prevent from ddos attacks with nginx and apache (and haproxy?)

Sometimes i have ddos attacks on my server. I'm trying to prevent from this. I'm using Nginx to serve static content and as a reverse proxy and Apache to serve php applications. When the attack ...
0
votes
1answer
19 views

Nginx proxy configuration to hit the backend api via http proxy

I need the Nginx web server to connect to a https server listening on port 443. The https server cannot be reached by Nginx server machine directly and to reach the https server the nginx server needs ...
-1
votes
0answers
13 views

PHP path not correct in phpMyAdmin (cgi.fix_pathinfo)

I have a problem with setuping phpmyadmin on nginx+php-fpm servers. With cgi.fix_pathinfo = 0 phpmyadmin setting script path incorrect. After i logging in as db user it redirect from ...
1
vote
1answer
17 views

nginx location redirect to folder with name as requested domain

I'm new to nginx and I want to do this: If the URL contains "/assets" redirect to "/communities/$url_domain" In other words: Requested: "http://www.cats.com/assets/superfile.png" ...
0
votes
1answer
9 views

nginx: proxy special file patterns (css) from s3

we are serving a web app with nginx. It proxys everything that comes in over https to a server listening on localhost. Now I want nginx to act as a proxy and serve our css files from s3. As I want ...
0
votes
2answers
20 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 ...
-1
votes
0answers
13 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 ...
-1
votes
2answers
20 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
1answer
16 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
18 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
25 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 ...
1
vote
2answers
30 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
18 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
24 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
19 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
17 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
7 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
30 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
23 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
30 views

Case insensitivity in nginx [duplicate]

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
15 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
20 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
44 views

redirect https://www.example.com to https://example.com in nginx [duplicate]

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
26 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? [on hold]

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
24 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
29 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
19 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
1answer
26 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
149 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
20 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
17 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
23 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
42 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
28 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
36 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 ...