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

-5
votes
2answers
64 views

NGINX extract last part of url

In my config file, I need to extract the last part of a url into a variable for use in a redirect e.g. if the url is http://www.example.com/question, I need "question" so that I can set up a rewrite. ...
1
vote
0answers
15 views

Converting .Htaccess Rewrite Rule to Nginx

I have the following apache rewrite rule which I am trying to convert to work with nginx. RewriteRule ^(.*)\/(.*)-(\d{4})(?:-(.*))?$ album.php?artist=$1&album=$2&releaseyear=$3&extra=$4 ...
-1
votes
1answer
26 views

Nxginx rewrite url without redirection

I would like to know if it's possible and how to rewrite an URL without redirection using nginx as web server. To be more precise, what I want is that when someone access to www.mydomain.com/auctions, ...
0
votes
0answers
21 views

How can I secure an insecure Meteor by using Nginx?

I have an insecure Meteor running on AWS. For those not familiar with Meteor, that means I am using the "insecure" package, which trades security for rapid prototyping. I only need our development ...
-2
votes
1answer
44 views

What is the meaning of Server :cloudflare-nginx?

I am trying to see, what is the web-server name of a particular website. http://browserspy.dk/webserver.php When i searched i got response as Server: cloudflare-nginx i know nginx and ...
0
votes
1answer
12 views

Troubleshooting Curl Timeouts

I run a SaaS monitoring service. Our standard integration example is to make a curl request to a special URL we provide. We have an intermittent issue where a user is hitting a 10 second curl timeout ...
0
votes
1answer
37 views

Is it a security issue if I have GIT working copy in www?

If I checkout a working copy into the www root of my site, would that be a security vulnerability?
0
votes
0answers
38 views

Varnish keeps caching css and js even after I've set it not to in vcl_recv

In my default.vcl I have the following: if (req.url ~ "\.(js|css|jpg|jpeg|png|gif|ico|tiff|tif|bmp|svg)$") { return (pass); } All the types aren't cached, as I've request, but all ...
-2
votes
2answers
127 views

PHP opcache. 100% hits, 100% used memory [closed]

My PHP OPcache hits 100% Memory Usage General info Zend OPcache 7.0.4-dev PHP 5.5.23-1+deb.sury.org~trusty+2 Server Software nginx/1.6.2 Here are my Cache Settings: zend_extension=opcache.so ...
0
votes
1answer
47 views

Nginx + ssl not responding

I'm currently putting up a server with SSL for leapfunder. I created a server (Ubuntu 14.04 on AWS), directed notes.civocracy.org to it. I bought a SSL certificate on GoDaddy, lauched and configure a ...
0
votes
3answers
43 views

How to account traffic on CentOS Linux?

I have an EC2 CentOs instance on AWS with nginx that has been pumping out major outgoing traffic, which of course is pumping up my monthly cost. How can I track down what is sending so much data?
2
votes
1answer
55 views

Nginx on ubuntu 12.04 keep refusing OPTIONS requests

I am trying do do cross domain Ajax calls inside an angular service in an ionic application tested in chrome. I am trying to do a POST on my API and nginx keep refusing my OPTIONS. XMLHttpRequest ...
0
votes
1answer
35 views

Can't remove forced HTTPS redirect from Nginx?

I had originally setup my Nginx configuration to automatically redirect HTTP to HTTPS. Due to my work security policy and Cloudflare integration, HTTPS will not resolve inside my network. I'd simply ...
0
votes
0answers
20 views

Why is Apache Bench not ignoring content length?

I run Apache Bench like so: ab -n 11 -c 1 http://dev-web.asl.ac.com/ And I get 10 failures, because the length changes on each request: Server Software: nginx/1.6.3 Complete requests: ...
0
votes
1answer
54 views

Nginx HTTPS config issue for non-wws

I need to configure nginx for one of my rails application to route some pages through SSL but facing problem with configuration. I've a SSL certificate where common name is example.com and my site is ...
1
vote
2answers
68 views

Rewrite url with fastcgi in nginx

I have a working php fastcgi config in nginx. Now I have few requests to handle such as /X.php by /X, /Y.php by /Y Sounds simple so I wrote the following for testing: rewrite ^/X.php$ ...
0
votes
0answers
29 views

configure NGINX to work with squid

I have squid running on one server(192.168.29.246) with sslbump enabled. I configured nginx(192.168.29.245) in the other server and i want it to work in front of squid. However, only the ...
0
votes
1answer
39 views

Nginx upstream fails over from serverA to serverB, and then back to serverA, why?

Background I have the following Nginx configuration which is load balancing 2 Tomcat servers running on 2 different servers: ### http://nginx.org/en/docs/http/ngx_http_upstream_module.html#hash ...
0
votes
0answers
20 views

Passenger tmp file not found

2015/06/08 18:15:07 [crit] 6450#0: *28773 connect() to /tmp/passenger.1.0.6428/generation-0/request failed (2: No such file or directory) while connecting to upstream, client: x.x.x.x, server: ...
0
votes
0answers
23 views

PHP-FPM stops responding suddenly and resumes after 2-3 minutes

I have 4 php-fpm servers running on backend to server Php request to Nginx. Everything works fine but sometimes suddenly PHP-FPM stops responding to Nginx and resumes well in normal mode without ...
-1
votes
0answers
19 views

Nginx does not forward correct client IP when using Virtualbox NAT [migrated]

I have this nginx configuration upstream xxx { server 127.0.0.1:12123; } error_log /home/web/.log/error.log; server { listen 4567; server_name mydomain ...
0
votes
0answers
32 views

Nginx redirect index.php/blog to blog

I've got my Nginx up and running and setup a Magento as well according to the Magento Nginx guide over there: ...
0
votes
1answer
59 views

Gandi SSL certificate, X509 private key values mismatch

I recently regenerated my SSL certificate, which I purchased from Gandi, using the following command: openssl req -nodes -newkey rsa:2048 -sha256 -keyout server.key -out server.csr This generates 2 ...
1
vote
0answers
17 views

Nginx is not rewriting URLs ending in .php [duplicate]

Trying to redirect all requests from http://domain.com/subfolder/ to http://new-domain.com/subfolder/ With the configuration I have right now everything is working fine but if the URL is pointing to ...
-3
votes
1answer
101 views

nginx after time not work and suddenly show error

my site is joomla and i config windows server 2008 r2 to mysql php and nginx it work ok but after 1 or 2 hour suddenly show error page?! worker_processes 32; events { worker_connections 1024; } ...
0
votes
4answers
48 views

Block Nginx for everyone except office IP

Is it possible to configure nginx so that ALL websites are only accessible from the office IP address only? This is a development server that, on some sites (too many to block one by one) accidentaly ...
0
votes
0answers
25 views

Pound proxy timeout error

I have a timeout problem with Pound proxy and load balancer. I have a pound -> varnish -> nginx server chain, I am using pound to handle the ssl certification. Every ~10% of the requests runs ...
1
vote
2answers
66 views

NGNIX 1.6.2 on Debian8: Won't start after adding SSL

I can't figure out even the text of the error I get from starting it ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; ...
0
votes
1answer
39 views

Nginx redirect folder to subdomain

I'm trying to configure a redirect on Nginx from a folder to a subdomain. I've tried already Nginx redirect: folder to external domain and Nginx rewrite rule (subdirectory to subdomain) and nginx: ...
0
votes
3answers
44 views

Installing nginx using apt-get vs. from source?

I installed nginx on a server of mine using apt-get. I now need to add some features to it, such as the pagespeed module, and have read the only way to do this is by compiling the module into the ...
0
votes
0answers
62 views

Nginx auth_request and auth_basic

Im trying to configure nginx to do user authentication before accessing a resource. Currently my configuration is as follows: server { listen 80 default_server; listen [::]:80 ...
0
votes
0answers
29 views

Certificates not working optimally with NGINX

I have a test NGINX server that behaves strange with certificates. I have compiled NGINX 1.9.1 and custom openssl-1.0.2a on an Ubuntu 14.04-server. $ nginx -V nginx version: nginx/1.9.1 built by gcc ...
1
vote
2answers
131 views

How do I check server tokens are off?

We had feedback from our pentest report saying we should turn off server tokens. This is stop people being able to see which version of PHP we are using, and limit their ability to target the specific ...
0
votes
1answer
36 views

UWSGI Bad Gateway - Connection refused while connecting to upstream

Trying to get a basic Django app running on nginx using UWSGI. I keep getting a 502 error with the error in the subject line. I am doing all of this as root, which I know is bad practice, but I am ...
1
vote
2answers
69 views

Nginx location block - only match actual files

I have the following nginx config: server { listen 8080; root /site_root/web; index index.html; server_name www.mysite.com; location / { try_files $uri @rewriteapp; ...
0
votes
0answers
29 views

nginx and apache proxy config

I'll like to configure nginx to act as static webserver only for a specific hostname (images.mydomain.com) and then redirect to apache everything else. Currently, the apache server is the only ...
0
votes
1answer
26 views

Use WAN as internal network

Suppose I have a little web infrastructure for serving clients that contains nginx as a frontend server, couple of backends (upstreams), a messaging system, db and so on. This stuff is located on ...
2
votes
1answer
54 views

Correct Wordpress + Nginx + php-fpm Configuration

I have a website running on nginx + php-fpm and I'm looking for a config file that actually shows me a 404 and some other error pages, because the current state of my config file only changes the URL ...
0
votes
0answers
14 views

nginx lock issue Internal Server Error [duplicate]

I've got pictures on my nginx 1.4.7 server, when I open it trough my brower image are goods. But when an other process read file trough samba (I deal with .net) : using (var img = ...
0
votes
2answers
37 views

Nginx Rewrite and Redirection Same Time?

I have arcade gaming web site. I want to convert my urls to sef. category : example.com/index.php?category=mario-games > example.com/category/mario-games game details : ...
0
votes
1answer
16 views

Serve contents based on language with Varnish

My website has multiple languages. English is default language with url: http://domain.com/ (http://domain.com/en). When users want to use different language, they will click on the language button. ...
0
votes
1answer
43 views

Nginx try_files instead of IFs to accomplish conditional logic

I'm trying to create Nginx vhost configs that will include the equivalent of the Apache htaccess rewrite rules for OpenCart. Here is the orignal: RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f ...
0
votes
0answers
20 views

Nginx location / does not match if the folder exists and the last / is missing.

I have the following configuration: # HTTPS server server { listen 9080; server_name test.test; proxy_set_header X-Real-IP $remote_addr; proxy_buffer_size 128k; ...
0
votes
0answers
20 views

nginx, meteor and phpmyadmin

I'm trying to get meteor and phpmyadmin working on a site using nginx as the front end. I have the meteor site now working, listening to its subdomain and have followed some instructions (for example ...
1
vote
0answers
50 views

nginx load-balance set weight and ip_hash at the same time

By default the Nginx upstream directive uses Round-Robin to distribute requests to backend realsevers and set the weight of the server by weight. But I do not see any words about whether weight works ...
-1
votes
1answer
58 views

Wordpress Site Broken After Updating Theme [closed]

If I leave out needed details, please tell me. I'm running Nginx on Ubuntu 14.04 x64. I use php5-fpm. Currently I am battling with my PHP installation, and it's causing a couple problems now. See my ...
0
votes
0answers
47 views

Error 499: Varnish is working how load balance Nginx Webservers

I created a solution to host a magento store with high traffic (> 500 user simultaneously) on AWS. Too often HTTP 499 error appears in the access.log the Varnish. When this happens users who have such ...
1
vote
1answer
57 views

All LDAP traffic is being sent on TLSv1.1 not TLSv1.2

I have a kvm server, Centos 6.6 host with 6.6 guests. We run a php based web app that uses LDAP authentication for our clients. We just moved a client to this setup and they are reporting that all ...
0
votes
0answers
22 views

nginx rewrite url issue

Current rewrite URL : rewrite ^/link/(.*)/(.*)/(.*)/$ /link.php?one=$1&two=$2&three=$3 last; What I need is solution so three link samples work: 1) /link/one/ 2) /link/one/two/ 3) ...
0
votes
0answers
20 views

Mask subdomain.mydomain.com to sub-directory

I have a wordpress site: instano.wordpress.com. Now I want to host it in my sub-directory, as www.mydomain.com/blog i.e. my users should see the URL: www.mydomain.com/blog/... I have a nginx-unicorn ...