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

2
votes
1answer
36 views

nginx domains using SSL cert listening but inaccessible

I have multiple domains and multiple domains using SSL certs running under nginx. All domains are basically using the exact same config, substituting for names of course, except for the HTTPS-enabled ...
0
votes
0answers
13 views

PHP-FPM 5.6 with NGINX is downloading app.php of Symfony 2 and throwing 403 forbidden

I've been trying to set up development environment in Vagrant using CentOS 7 + Nginx 1.6.2 + php-fpm 5.6.4 Everything went smooth and worked, until I installed Symfony 2 project with this folder ...
0
votes
0answers
17 views

Nginx rewrite part of URL

i'm trying to make a redirects from URL's with option ID to URL's with option URL_key i've assigned. I have two column table with ID i'd like to substitute and URL_key as substitute. 11337 bar ...
0
votes
1answer
9 views

aws ec2 security group and centos ip tables

I try to change the SSH port from 22 to another port (218). In AWS EC2, I shall add the rules in security group or in IP Tables? Is there any guideline/references recommended for EC2 Security ...
0
votes
1answer
17 views

Vagrant, nginx 404 - fastcgi sent in stderr unable to open primary script

Was googleing a lot of and didn't find solution for this. Have found few accepted answers here on stackoverflow, but they didn't helped me. I am using vagrant for development, or at least trying to ...
1
vote
1answer
1k views

redmine gives 404 error after installation

I am using Debian squeeze with nginx and mysql. After raking db and loading default data to redmine. When i try to visit redmine in a browser, http://ipaddress:8080/redmine, I get a 404 error Page ...
0
votes
0answers
26 views

using nodejs https module with ssl certificate proxy with nginx without adding ssl certificate in nginx

I am using nodejs https module with nginx proxy. I have multiple ssl certificate and I want to run all https sites using node without adding all certificates in nginx ssl server. Is any way to proxy ...
0
votes
0answers
71 views

Nginx & uWSGI: ImportError: No module named site

I'm receiving an error: ImportError: No module named site according to my uWSGI log. test_proj.ini: [uwsgi] chdir = /home/%n/app module = %n.wsgi home = /home/%n/app/venv master = true processes = ...
0
votes
1answer
1k views

nginx unknown directive ssl_protocols

I've compiled NGINX 1.4.1 with ssl support and wanted to secure my configuation with these lines: ssl_prefer_server_ciphers on; ssl_protocols        SSLv3 TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers          ...
0
votes
1answer
2k views

nginx - 403 Forbidden

I've trouble to get aliases working correctly on nginx. When i try to access the aliases, /pma and /mba (see secure.example.com.conf), i get a 403 Forbidden but the base url works correctly. I read ...
-4
votes
0answers
22 views

Nginx php config? [on hold]

I am using Varying Vagrant Vagrants for local Wordpress development. It is an Nginx PHP setup. How do I configure the date/time for a central timezone? Viewing the phpinfo it shows date.timezone has ...
2
votes
0answers
34 views

Multiple Domains Name on one server with Nginx

I'm struggling to configure two different domains name on my dedicated server... I've already one DN configured like this in the vhost DOMAIN_1.net.conf : server { listen 127.0.0.1:8080; ...
2
votes
0answers
22 views

Do we get a access.log entry for content served from cache in nginx

For a configuration that looks like http { proxy_cache_path /etc/nginx/cache keys_zone=one:10m; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; server { ...
2
votes
0answers
15 views

why basic auth loops when using nginx and monit

I was trying to configure nginx so that http://example.com/monit will access http://127.0.0.1:2812, which is the url monit is listening. Two authentication was set, via nginx(nginx.conf file) and ...
3
votes
2answers
825 views

Properly setting up a “default” nginx server for https

I have several servers running on the same machine, some with http only, some with both http and https. There are several server blocks defined in separate files which are included from the main ...
0
votes
1answer
31 views

nginx: WSS Load Balancer: Failed server not taken out of rotation, why?

Using the current nginx, 1.6.2 to load balance wss (websockets) to two servers. We use some stickyness, as you see below. This config works great, until one of the upstream servers goes off line. ...
1
vote
1answer
33 views

Rewrite a url to a a new URL and then send the new URL to a PHP script

I have URLs that contain a cache busting string. I want to rewrite these URLs without the cache busting string, and then send the rewritten URLs that match a certain criteria (e.g. audio/video files) ...
1
vote
1answer
41 views

nginx location and root settings dont work

I am trying to rewrite every file after cdn.minora.me/forum/ to another directory: server { listen 443 ssl; listen [::]:443 ssl; ssl on; ssl_certificate ...
1
vote
1answer
20 views

How to pass variables through try_files?

Consider this configuration (given /foo doesn't exist): server { set $x 1; location = / { set $x 0; try_files /foo @l; } location / { try_files /foo @l; ...
0
votes
0answers
22 views

nginx rewrite keeping subdomain

I have a nginx server and several domains connected to it. I would like to replace all http request with a https request to one specific domain (for which I have a certificate). Example: Say I have a ...
1
vote
1answer
32 views

Why are my config settings inherited to the subdomain server block?

I use nginx with a ssl wildcard certificate like that: /etc/nginx/sites-enabled/example.com server { listen 443 default_server ssl; server_name 192.168.0.1 example.com; include ...
1
vote
1answer
1k views

Questions about NGINX limit_req_zone

I got a problem with NGINX limit_req_zone. Anyone can help? The problem is that, I want to limit user access to some specific URL, for example: /forum.php?mod=forumdisplay? ...
-2
votes
1answer
31 views

cannot access localhost with nagios and nginx

I have followed this link to install nagios, I already have nginx up and running. The problem is I keep getting user name and password to authenticate. When I remove the auth_basic_user_file ...
1
vote
1answer
28 views

Nagios + Nginx: CSS and image issues

I am having trouble configuring Nagios on Arch Linux served by Nginx. The Nagios services run without hitches, but the serving via Nginx is broken. As you can see from the screenshot, the fonts are ...
-3
votes
1answer
37 views

Strange folders in Pagespeed cache folder. Did I get hacked? [duplicate]

I have a Centos7 server with nginx and google pagespeed. I wanted to clear pagespeed cache for a reason but i saw lots of chinese site caches in my pagespeed cache folder like baidu.com, ly.com, ...
0
votes
0answers
41 views

nginx hhvm bad gateway

I do have an issue with Nginx 1.6.2(compiled) and HHVM 3.4.2. Everything is installed 'fine' when I run hhvm info.php it returns 'HipHop'. But when I visit the website I get an 502 bad gateway, so ...
1
vote
0answers
23 views

Nginx: proxy graphs from remote munin server

I'm trying to create, under a series of nginx hosted domains, a /graphs folder (so I'm trying to use proxy...) at which graphs from a remote munin server would be shown. The munin server is graphing ...
0
votes
1answer
129 views

nginx - deny all *.php requests except index.php for security reasons

os: CentOS 7 nginx: 1.6.2 httpd: apache 2.4.6 cms: Drupal 7 After my server was compromised I removed all from server, reinstalled OS and soft, and restored data from backup. Now I configure all ...
1
vote
1answer
1k views

Windows server - run nginx on port 80

Is there any way to get nginx running on port 80 on a windows 2003 server? It seems that the http.sys service is running on port 80 which is the new "preferred way" for a web server to run on windows ...
0
votes
1answer
898 views

php-fpm returning empty response to nginx

nginx is connecting to php-fpm over fastcgi, using the standard /etc/nginx/fastcgi_params in the location block. When connecting to /.status (php-fpm.ini::ping.path) from the command line with ...
0
votes
1answer
21 views

Can nginx test for a hard links or symlinks and redirect the browser client to the _real_ URL?

Imagine nginx is serving a folder of static images created by rsnapshot: /rsnapshots/hourly.0/imageA.png /rsnapshots/hourly.0/imageB.png So if I go here: http://example.com/hourly.0/imageA.png, I see ...
1
vote
1answer
2k views

Nginx redirect all request that does not match a file to a php file

I'm trying to get all request to: http://example.com/downloads/* redirect to http://example.com/downloads/index.php except if the requested file exist in /downloads/ ex: ...
-4
votes
1answer
68 views

Redirect loop using cloudflare's Flexible ssl

I am trying to implement Flexible SSL provided by CloudFlare to my site. Here is my nginx config: # PHP-FPM upstream; change it accordingly to your local config! upstream php-fpm { server ...
1
vote
2answers
30 views

Thawte SSL123 SHA-2 Intermediate Certificate Chain, Broken?

I attempted to upgrade my one Web site, running nginx, from a SHA-1 SSL123 certificate to a SHA-2 one. Thawte's Web page with intermediate CAs has "RSA SHA-2 (under SHA-1 Root)" and "RSA SHA-2 ...
3
votes
1answer
1k views

How do I get Nginx to pass authentication on to IIS as a reverse proxy?

I have the following setup in my Nginx (1.2.6 on Windows 7) conf file: location ~ ^/FOO/(.*)$ { proxy_pass http://server_two:8888/FOO/$1; } On server_two I have IIS7 running a WCF service ...
0
votes
1answer
39 views

How to proxy requests from Nginx to SSL server

My curl request looks as follows: curl --header "Authorization: Basic BASE_64" https://example.com --tlsv1 -k (I need to explicitly provide TLS and skip verification) and it works. I'd like to ...
1
vote
1answer
813 views

Deploying Flask application with nginx, uWSGI and virtualenv

I'm having a lot of trouble to deploy a Flask application on a CentOS 6 server. I know a few other questions have been asked concerning this problem, but I haven't succeeded yet. Description ...
0
votes
1answer
1k views

Rails 3 passenger nginx application spawner server error on Synology NAS

Question updated, please read UPD2. I'm trying to deploy app through passenger nginx module on DS710+ (ruby 1.9.2p0 installed). There is syntax error relative to ...
1
vote
2answers
362 views

Strange access requests

In my access logs i have some requests like so: [18/Dec/2014:10:07:51 +0300] "GET /favicon.ico HTTP/1.1" 301 184 "-" "Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20110814 Firefox/6.0 Google ...
0
votes
1answer
847 views

nginx says “unknown directive” even though module appears to be installed

So I ran into this problem. I was trying to use the ngx_http_realip_module module to forward the correct remote address for an nginx install behind a load balancer. Using the directive: ...
0
votes
2answers
54 views

Nginx: How to rewrite arguments passed to index.php?

I am struggling with some Nginx rewrits for url arguments passed to index.php: Old: ?topic=10126.msg36887 New: ?posts/36887/ My two questions: 1) How do I rewrite to the new argument structure ...
0
votes
0answers
22 views

No input file specified nginx subfolder

I've searched many results in this site has same title as my question, but I can't find a suit for me, this is my problem : I installed nginx on ubuntu Everything is ok now, but when I tried to ...
0
votes
0answers
19 views

Blocking access to dirs in an nginx template when it runs in front of apache2 leads to an error

I'm using VestaCP which uses nginx in frontend for static and apache on the backend for dynamic content. I have issues with attacks to wordpress so decided to block wp-admin/ to all but the ...
1
vote
1answer
93 views

Inject SSL client certificate in Nginx proxy

I have 2 Nginx instances, one is listening on 80 and has a proxy_pass https://second_nginx; The second instance is configured to listen on 443 with a self signed certificate, but also have the SSL ...
0
votes
1answer
167 views

Under nginx and codeigniter how do i redirect certain pages from http to https

I want that certain pages to be available on https but not on http. I have a Code Igniter framework there. Here is the code from nginx conf: server { listen 80; ...... #enforce ...
1
vote
1answer
404 views

How to specify multiple root certificates for nginx client certificate verification?

For a project as part of the European Grid Infrastructure (EGI) we need SSL client certificate verification for a service running on nginx. As there are several root CAs allowed within EGI, we need ...
1
vote
0answers
32 views

nginx subdirectory to subdomain icingaweb2

I currently have icinga2 set up with the new icingaweb2 ui. it defaults to the subfolder /icingaweb as follows: location ~ ^/icingaweb/index\.php(.*)$ { # fastcgi_pass 127.0.0.1:9000; ...
0
votes
0answers
30 views

Create re-direct based on incoming URL format

We are currently using JIRA for our bug tracker. For reasons that would take pages to explain, what I'd like to do is take an incoming URL that looks like 'http://myco.jira.com/jira/browse/ (e.g. ...
1
vote
2answers
77 views

Setting wordpress and gitlab, can activate only one of them at a time

I'm trying to set up a website (website.com) on an Ubuntu 14.04 machine. When '/etc/nginx/sites-available/wordpress' is present, I can run the gitlab server on website.com/gitlab (as intended) When ...
0
votes
2answers
902 views

504 error in nginx +php-fpm : post request

I have a test server with nginx and php-fpm. Pages on the site are opening correctly, but when I want send POST request for example an "authorize on site" I get "504 Gateway Time-out error". Nginx ...