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

-2
votes
0answers
8 views

Give www-data Permission To Reload Nginx Works Via Command Line but not cron [duplicate]

I have been researching for literally days, and to no avail. I have been trying to get my php script to be able to reload nginx. exec("sudo /etc/init.d/nginx reload"); works when I run the script ...
0
votes
1answer
28 views

nginx & httpd doing reverse proxy together

Working as a sys admin for multiple departments, and due to constrained resources, I'm considering deploying nginx and httpd in one server. (Due to developer requirements, using Docker isn't an ...
1
vote
1answer
23 views

Apache2 and nginx randomly consuming all memory, every week or so

I'd like to preface this by saying I have read at least 10 related Serverfault questions before resorting to making my own... I am currently running a Ubuntu 14.04.3 server with 2GB of RAM and about ...
1
vote
1answer
9 views

AWS ELB health check failing when trying to force HTTPS through NGINX for my single page application

I'm trying to force https on my http endpoints using NGINX like so: server { location / { root /data/www; if ($http_x_forwarded_proto != 'https') { rewrite ^ ...
0
votes
0answers
7 views

error 524 timeout cloudfire in linux server?

My plan in a VPS digitalocean is: 4 GB RAM 60 GB SSD DISK (And nginx (webserver), php5-fpm, varnish and a store Magento, and Cloudfire for dns) So.... i have a magento store and when i try to make a ...
0
votes
1answer
6 views

Changing the name of php5-fpm pool causes 502

I have a webserver running multiple sites, each site has it's own php5-fpm pool. One particular site is behaving very strangely. I have a conf file setup for it in /etc/php5/fpm/pool.d/ and ...
1
vote
1answer
17 views

mod_rewrite issue Apache behind Nginx

I have nginx proxying to apache as a backend in order for nginx to handle static assets. Unfortunately when I attempt to visit a "pretty url" it just displays the index page. nginx config server { ...
0
votes
0answers
14 views

Server Specs for browser game that hugs cpu

Our team have developed a web browser game, our servers are using nginx and php-fpm to host the website. the game consist of two parts an api and the game itself. both applications reside on its own ...
0
votes
1answer
23 views

Nginx proxy_pass not normalising URL

I have the following config for an angular frontend on / and a node.js backend on /api/: server { listen 80; server_name example.com; location / { root /home/ubuntu/www/admin; ...
0
votes
1answer
11 views

AWS ELB + NGINX for rails app

If I'm using Amazon's Elastic Load Balancer for a Rails app, do I need to put an Nginx reverse proxy between the app and the ELB?
0
votes
3answers
28 views

Nginx disable .htaccess and hidden files but allow .well-known directory

I have a Nginx server, and disabled hidden files in the nginx_vhost.conf ## Disable .htaccess and other hidden files location ~ /\. { deny all; access_log off; ...
1
vote
1answer
9 views

nginx: use try_files to serve file instead of directory

My server uses nginx, and my domain serves static html web pages, i.e. http://server.com/download.html For various reasons, I would like that users are able to fetch download.html through the ...
2
votes
1answer
60 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
1answer
23 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
2answers
35 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
29 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
22 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
26 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
2answers
15 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
23 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
18 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
31 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
20 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
25 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
30 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
3answers
36 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
23 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
1answer
27 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
24 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 [on hold]

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
48 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
30 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
27 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
29 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
25 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
31 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
20 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
152 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
27 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 ...