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

0
votes
0answers
31 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
54 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 ...
0
votes
1answer
92 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
45 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
56 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
38 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
42 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
60 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
126 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
30 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
68 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
28 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
53 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 ...
-1
votes
0answers
36 views

Install Mod_Speed error

I have 2 webservers Apache and Nginx. Trying to install mod_speed integrated with Apache but I get error: Failed dependencies: httpd >= 2.2 is needed by ...
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
42 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 ...
-1
votes
0answers
11 views

Serving a secondary documentation folder with Nginx

I have an app running with Django using Nginx: ... server { server_name myapp.com; listen 80; ... location / { proxy_set_header ...
0
votes
0answers
19 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
19 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
48 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
54 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
45 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 ...
0
votes
0answers
13 views

Nginx reduce waiting time on django

My nginx setup is user root; worker_processes 4; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include ...
0
votes
0answers
16 views

Nginx HTTP Authentication Password for a specific domain?

I have a codebase that is distributed to a number of domains, and this code base also includes the nginx configuration files. Most of the domains are internally accessible anyway, however one of them ...
0
votes
0answers
44 views

nginx and font files from cdn access control error

I have my website hosted on nginx and every thing works well just that when I add fonts from cloud the site gives me access error Following is the error, please note that I have replaced the original ...
1
vote
1answer
67 views

How to remove a GET query key in NGINX and use the GET value as the URI?

I have an email verification script that looks like this: http://example.com/v/index.php?t=TOKEN_EMAILED_TO_CLIENT And I want it to look like this: http://example.com/v/TOKEN_EMAILED_TO_CLIENT ...
0
votes
1answer
67 views

Port 443 set up SSL on Nginx + Ubuntu + EC2

I've tried everything and I searched Google behind some solution, but can not configure SSL (https) in my Nginx server that is within a Ubuntu 14.04.2 LTS on Amazon EC2. My website works perfectly on ...
-2
votes
0answers
109 views

Wordpress 502 Bad Gateway

I have looked at other questions similar to mine, and have tried many things, but no dice. In Wordpress, which I run on a virtual server of mine, along with several other websites on the same server, ...
0
votes
0answers
40 views

nginx: [emerg] “proxy_pass” cannot have URI part in location given by regular expression, or inside named lo

I am using nginx to upstream to a different set of servers depending on the geo of the user. As it seems the geoip module does not return any value for the local addresses (localhost, 192.168.0.X ... ...
0
votes
0answers
71 views

nginx: No client certificate CA names sent

I have nginx and want it to verify client certificates. So I bought commercial certificate for server, and non-commercial for clients. Basically I've generated client certificates with easy-rsa ...
0
votes
2answers
92 views

hhvm + nginx + wordpress - upload issue

I installed nginx 1.7.12 + hhvm 3.7.0 + wordpress 4.2.2 on digital ocean droplet. I am trying to upload a theme that is 17 mb. While uploading, after exactly 30 seconds the upload restarts itself ...
0
votes
1answer
109 views

nginx on fedora fastcgi not working

I'm running nginx on Fedora Server 22 and fastcgi scripts are not working. Under http://panel.minefight.org/ enter any login data, it doesn't load the password fail or success site. The same thing ...
0
votes
0answers
34 views

Which Variable Stores Nginx Source Port Toward Upstream

I'd like to read the source port, i.e. Nginx' own source port (as client) used to communicate with upstream. Could not find it in the documentation, but would make send to have it.
0
votes
0answers
3 views

Accessing an nginx webserver on CentOS7 VM hosted on Virtualbox in Windows 10 [migrated]

Setup: A single CentOS 7.1 VM running on a Windows 10 Pro server (preview version 10074), inside Virtualbox 5 beta 4 (also tested on 4.3.8). Using nginx/1.9.0, to serve static HTML files. The VM is ...
1
vote
1answer
118 views

Codeigniter in subdirectory on Nginx 404

I'm trying to setup Codeigniter in a subdirectory of my domain. Currently I only get an 404 from Codeigniter on the index page. As soon as a want to go to example.com/api/welcome/index I get a 404 ...
1
vote
0answers
20 views

WordPress Nginx Browser Cache Expires on Extentionless URLs

Struggling a bit with the following. Adding expires for JS and CSS, plus other static files is easy: # Directives to send expires headers. location ~* \.(?:css|js)$ { expires 28d; ...
0
votes
0answers
43 views

Nginx - reverse proxy pass packets to localhost

Say for example I have nginx proxy setup like such: server { listen 443 ssl; server_name foo.com; #SSL and logging settings omitted location /datapath1 { ...
1
vote
0answers
26 views

No Module Named OS - NGINX/UWSGI/NGINX

Have looked at many related posts and most point to an outdated version of python that is cause the 'no module named os' during the uwsgi boot. I've run print sys.version_info And it shows python ...
0
votes
0answers
24 views

Passenger+Nginx instances fail to keep rails' uniqueness true

I have multiple Nginx+Passenger instances conf here and many models (more than 40) that has validations on uniqueness. e.g. class Ssid < ActiveRecord::Base validates :name, :presence => true ...
0
votes
0answers
13 views

Can't seem to get fastcgi_cache_use_stale to work

So I have two browsers open and am requesting a page: http://localhost/test.php Once every 10 seconds the cache expires and when I refresh the page it takes 5 seconds to load the script, store in ...
2
votes
1answer
69 views

When shoud I use ssl_session_cache paramter in nginx ssl settings

What do I benefit from ssl_session_cache set in nginx.conf when I using https? See here.