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
50 views

Nginx and PHP-FPM Clean URLs

Preface I have spent 40 plus hours trying to create a Nginx configuration setup that holds up to my OCD. I have been told numerous times on IRC that I am too picky and clean urls are very challenging ...
0
votes
0answers
46 views

Wordpress wp-ffpc + memcached + nginx

Seem to be having issues with the centmin build, nginx + memcached with wordpress and wp-ffpc plugin. When I have the plugin active. The site doesn't load, just get a white screen, memcached is ...
-1
votes
0answers
11 views

Short-hand URL nginx [duplicate]

How would my try_files look if I wanted to have http://mydomain/script/ instead of http://mydomain/script.php? I am trying to configure auto-exchanger, it seems that if the url is ...
-2
votes
2answers
62 views

Replace .php with backslash [closed]

How would my try_files look if I wanted to have http://mydomain/script/ instead of http://mydomain/script.php ? Sorry I couldn't find an answer anywhere, perhaps I worded the question wrong
-3
votes
1answer
47 views

“No input file specified.” (I am stupid and deleted a user) [closed]

So I had a server (running several sites) hacked recently and a low level user account was spinning up lots of processes (sending spam) that were crashing the server repeatedly. Out of frustration, I ...
0
votes
0answers
44 views

Nginx returning 500 Error instead of 400 Error

On validating user input into my api, I want to return 400 http status codes for bad requests. It works fine from flask and when running my api through gunicorn, but they always come out of nginx ...
0
votes
1answer
35 views

Web access log analyzer for hosting providers

I have a nginx server set, it proxies request based on Host field. I have a common log for it, because per-host logging is done at the server, to which I do proxy_pass. So, is there any solution to ...
2
votes
2answers
50 views

Directory for PHP 5 FPM socket files is deleted after reboot on Ubuntu Server

I've created a directory to store socket files for PHP 5 FPM: sudo mkdir /var/run/php-fpm. It is owned by root:root as well as core PHP FPM process. When PHP FPM is starting, it creates socket files ...
0
votes
1answer
21 views

Log errors from Passenger in vhost error.log

I'm running Phusion Passenger 4.0.40 with nginx. The server is used to host several websites and each has its own error.log file. However if an application crashes during startup, the error message ...
0
votes
0answers
35 views

Nginx+Tornado performance tuning?

I have written a Tornado based Server that makes readouts from files on disk available via http. The size of the readouts I am serving is either about 10kb or about 1MB. I have a server machine with ...
0
votes
0answers
28 views

nginx proxy_pass upload cut at 64K

I made a node.js server that can receive and process file uploads. When I access the node.js server directly everything works fine. I have put an nginx server in front of if, and small files uploads ...
-1
votes
2answers
45 views

Nginx and its caching systems. Are they all the same?

I'm a bit confuse about PageSpeed, Microcaching and Memcached. Are they just different tools that do the same job? I was initially thinking in use PageSpeed with Nginx. If I do that, do I need ...
0
votes
0answers
9 views

Webserver pages won't load until second connection attempt

I have an Apache2 driven Wordpress site running on an Ubuntu server VM, it's worked well for years. I also have another Ubuntu server VM running an instance of NGINX, acting only as a reverse proxy ...
0
votes
0answers
48 views

Configure VestaCP - NGINX to be extension less

Currently, my VestaCP NGINX configuration is like this: location / { proxy_pass http://65.181.118.46:8080; location ~* ...
1
vote
1answer
32 views

Nginx, server_name targeting trailing “.” will not redirect

When you type in "dev1.example.com." into your browser or you request that Host with your HTTP client, I want it to redirect to "dev1.example.com". I've attempted to do this with the following server ...
0
votes
0answers
57 views

Error code: ERR_SPDY_PROTOCOL_ERROR

Just installed StartSSL certificate on my debian wheezy, nginx 1.6 server. Everything seem to be working fine, I can browse the website in https no problem until I try to login... IE works fine and I ...
0
votes
1answer
32 views

Conveting .htaccess to Ngix rules

I need to convert htaccess file to nginx config. I http://winginx.com/en/htaccess but an error occurred when I update the nginx config file. The htaccess file reads: DirectoryIndex index.php ...
1
vote
1answer
41 views

Location based whitelisting of IP's on nginx webservers behind Elastic Load Balancer

I run nginx webservers behind an elastic load balancer in AWS. The real IP is got through X-Forwarded-For. The issue faced is how to use this to deny all and whitelist only specific sources for ...
0
votes
2answers
33 views

How to redirect outdated browsers with NGinx map?

We have an NginX balancing proxy in front of our web application. Unfortunately there is not enough development resources to support outdated browsers, yet :( We want to redirect members of our web ...
1
vote
0answers
158 views

Munin dynamic graph zoom (dynazoom) not working (Nginx, PHP-FPM)

Debian 7.5 Nginx/1.6.0 PHP 5.6.0RC2 (fpm-fcgi) (built: Jul 11 2014 08:17:52) Munin v2.0.21-2 I been searching all over the net for a few days for answers to my problem but it seems like no one knows ...
0
votes
0answers
30 views

nginx HTTPS virtual hosts valid across all hosts

I have a nginx server that is listening on both port 80 and port 443. Currently, all port 80 traffic (i.e. http://0.0.0.0 and http://my.example.domain) is redirected to https://my.example.domain (as ...
0
votes
0answers
31 views

Nginx proxy_pass produces wrong links

I have a web-app (let say COOL_APP) running at http://localhost:7000/ and I would like to "mount" it to an nginx proxy server running at https://example.com. Both, the nginx server and COOL_APP are on ...
0
votes
0answers
22 views

Fastcgi request record is too big

I am running an Nginx server, which requires me to accept URI String containing up to 4mb of data. I have configured nginx to accept the params by setting: /etc/nginx/nginx.conf ...
1
vote
0answers
115 views

How to provide external access to only the Git projects (clone/pull/push) of an internal GitLab deployment

We have set-up a GitLab server (GitLab 7.0 Community Edition). It is up and running and our colleagues can use it within the LAN (the IP address and Host are only visible from the LAN). Some of the ...
-2
votes
1answer
60 views

How to close port 8080 from all except ip 127.0.0.1

I am on Centos 6 with Nginx on port 80 and Apache2 behind him on port 8080. I've written an anti DDOS script which works fine when ip access port 80, but if attacker directly spams port 8080 ...
0
votes
0answers
26 views

Debian wheezy TKL (Turnkey Linux) missing php5-fpm conf

I have used a TKL AMI on an EC2 instance to quickly create a NGINX / PHP box. Details of the image are on the Amazon marketplace. It mostly works just as I'd expect it to except for a small caveat - ...
0
votes
0answers
17 views

Nginx configuration: continue sending request to application server on ssl_client_verify FAIL

I am currently using nginx/uwsgi, with nginx to check validity of client certificates (if one is provided). server { ... location /example { ... uwsgi_param SSL_CLIENT_VERIFY ...
1
vote
0answers
26 views

What causes my server slowdown that “service nginx restart” fixes?

CentOS 6.5, nginx 1.6.0 Sometimes my site becomes really slow for a period of time. If I ignore it for long enough it returns to its normal speedy self. service php-fpm restart doesn't help it. ...
-1
votes
1answer
49 views

Unable to connect to localhost or local ip but can connect to other servers or websites

I have a server with nginx|bind|mysql installed, everything is working fine but I am unable to connect to localhost or any websites hosted on server. I tried pinging and wget and none of them work ...
-2
votes
0answers
25 views

How can I share directory and sub-directories over HTTP so that it is possible to download each directory?

How can I share directory and sub-directories over HTTP so that it is possible to download each directory? I have been serving static files with Nginx autoindex feature and it works great. However, ...
-1
votes
0answers
15 views

page refresh itself after uploading some percent of a file in nginx

I have recently created a new VPS on digital ocean. The server is running on UBUNTU with NGINX and PHP-FPM. But i am getting a serious problem. regardless of the type, when i try to upload a file ...
0
votes
0answers
66 views

nginx rewrite for php restful api apache htaccess

I have an apache htaccess file used with Restful API tutorial <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ...
0
votes
1answer
36 views

varnish wordpress comments

On my server I have installed Varnish in front of nginx, to serve static files faster. When using my site I have found following bug: Every comment on my wordpress blog is coming from localhost ...
-1
votes
1answer
31 views

OpenVPN client breaks remote access to web server

I have an issue where whenever I use OpenVPN client to connect to the remote server to (obviously) set up a VPN tunnel, I can no longer see my nginx server. I can connect on the local network but it ...
0
votes
0answers
14 views

Nginx won't allow specific subdirectory location to be proxy passed [duplicate]

I have a PHP server running my normal website. I'm also trying to run a nodejs site along side it in a specific subdirectory. The PHP site is using laravel so the config points to the public folder ...
0
votes
0answers
29 views

Nginx catch-all ssl block with return invalidates all other ssl hosts

I recently tried to set up the following server block: server { listen 80 default_server; listen [::]:80 default_server; listen 443 ssl default_server; # this and listen [::]:443 ssl ...
0
votes
2answers
48 views

Migrating a server from Apache to Nginx - how is my request handled?

I'm trying to migrate a service from a server to another. It's a simple php app. On the first server (Apache) I could request a JSON in the following way: ...
0
votes
1answer
20 views

Nginx | All subdomains webmmail.*.* to one document root

Beforehand i want to note that I have looked around on Nginx wiki. Stackoverflow and Servervault before asking here. I have trouble with my nginx config. This is my config server { listen 8080; ...
0
votes
0answers
79 views

Nginx PHP index.php rewrite not allowing proxy pass to '/writing'

What I'd like: I want to have the laravel site show unless it's for /writing. In that case I want it to proxy pass anything in that subdirectory to a nodejs site. What happens: The laravel site ...
-1
votes
1answer
39 views

All the sites went down and when I restart Nginx they worked. Saw a worker process crash in the logs

suddenly all the sites in this VPS stopped responding. The server is up and the memory usage is normal. But saw this in the Nginx error log : 2014/07/20 07:10:24 [alert] 13671#0: worker process 15020 ...
0
votes
2answers
61 views

iptables treating ssh and http requests differently

Here are the facts: server (IP 192.168.1.140) that runs openssh on port 22 and nginx on port 80 server sits behind firewall/router (IP 192.168.1.1) that has identical iptables rules for openssh and ...
0
votes
1answer
23 views

ngnix vhost setting (with apache) not pointing to my domain

i'm trying to use nginx as proxy for my apache all vhosts. i've set up a config file at /etc/nginx/sites-available/mydomain and i'also created sym link by using a command ln -s ...
0
votes
0answers
93 views

Reduce Gitlab memory footprint

I'm currently running both a Gitlab instance (v6.7.3) and a Ghost-powered personal blog on a DigitalOcean VPS with 512mb (lowest end), served by nginx. Until just recently I was unable to run both, ...
0
votes
1answer
41 views

Nginx reverse proxy + CloudFlare Geolocation Service

In our environment, we are using Nginx as a reverse proxy to our Apache application server. In need for a Geolocation service, we decided to use CloudFlare's IP_Country service. We are being able to ...
0
votes
1answer
39 views

nginx read index.html and index.php with different folders

my nginx config for domain looks like below: server { listen *:80; server_name mywebsite.org ; root /var/www/mywebsite.org/web; index index.html index.htm index.php ...
0
votes
1answer
54 views

Matching %ff in Nginx rewrite rules

I have some dubious requests coming into my server that contain %ff and %FF (e.g., /blog/%ffupdates/. I'm getting thousands of these daily and would like to start redirecting them to a 403. I ...
0
votes
0answers
19 views

Is it possible to use FastCGI_cache on nginx load balancer?

I am trying to setup a load-balanced small cluster to accommodate growing traffic on my WooCommerce site. The topology is going to be like this: Load balancer running nginx 2 application servers ...
0
votes
0answers
22 views

nginx Infinite Redirect Loop / PHP Download

I want to redirect requests all requests with /login to a particular page but that page also has /login in it, so the redirect can't apply to the target page. Right now I have something like this: ...
0
votes
0answers
26 views

Optimize performance of subs_filter or LUA gsub on Nginx for large streams

I need to make multiple substitutions on a page, served via Nginx. I know that standard sub_filter module doesn't work here, because is limited to a single substitution. So, I came up with two ...
0
votes
0answers
18 views

PHP-FPM showing 34 worker process despite adjusting configuration

I recently asked this question and I got an answer about how I should limit php-fpm from running 34 worker process, considering that I get on average 20 visits for one light website. So, I ...