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
2answers
31 views

Nginx: [emerg] “server” directive is not allowed here in /etc/nginx/nginx.conf:76

The Nginx configuration is just like the default: I couldn't find any clue about this error. Can anyone help me? Any help would be grateful. Thank You.
0
votes
1answer
8 views

Nginx Site File Location

I'm attempting to deploy a new (first-time) Nginx server on Ubuntu. I am following DigitalOcean's tutorial, found here. As listed in the tutorial, I was setting my site up in /var/www. This seemed ...
0
votes
2answers
11 views

Is it possible to make Nginx listen to different ports?

I created one Nginx with one Linux Azure VM, is it possible to make nginx listen to different ports so that when I change the port number, the content would be different. I found there would be a ...
0
votes
3answers
21 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 ...
1
vote
1answer
634 views

nginx+ubuntu+sugarcrm [on hold]

Does anyone have good instructions on how to install SugarCRM on Ubuntu using nginx? I am looking to install SugarCRM on 8.04 (Hardy Heron) LTS
1
vote
1answer
1k views

Nginx reverse proxy to external URL which have redirects in place

Afternoon gentlemen, My current setup is one single site, lets call that http://production.com, that's being served by Nginx on port 80 as a static cache and Apache in the background on port 8080 ...
0
votes
1answer
839 views

DNS failure crashing web site - CURL requests

My PHP keeps throwing random errors which relate to slow scripts. nginx/php5-fpm report in their error logs that the child has been terminated due to script timeout. PHP5-FPM slow error log reports ...
0
votes
1answer
23 views

Nginx cannot show the right web page

I created one html file under one user file, and I want Nginx to serve this html file. But the website always show the default one. I am new to Nginx, I want someone help me with this. Any ...
-1
votes
0answers
14 views

How to multiple forward for one request in nginx

I have some config: server { listen 192.168.1.3:81; location /dlr { rewrite .* /rf/sms/status/ break; proxy_pass http://192.168.1.1/; ...
1
vote
2answers
898 views

redmine gives 404 on static files, works fine elsewise

I have followed http://linux.mickgenie.com/how-to-install-redmine-with-cpanel/ to install redmine on my cpanel box. Got it up and running fine except that it doesn't load any static files (js, css, ...
2
votes
1answer
2k views

UnicodeEncodeError when uploading files in Django admin

Note: I asked this question on StackOverflow, but I realize this might be a more proper place to ask this kind of question. I'm trying to upload a file called 'Testaråäö.txt' via the Django admin ...
2
votes
0answers
15 views

nginx with php and two node.js routes

I have two routes i want to pass two node processes(websocket route, angular app), while a 3rd route needs to pass to a php application that acts as a rest api to the angular app. i'm not terribly ...
0
votes
1answer
34 views

Suspicious web activitin in nginx logs

I'm seeing some strange entries in my NGINX logs: 2.71.139.98 - - [26/Dec/2014:12:36:24 +0000] ...
1
vote
3answers
443 views

nginx rewrite rules: Rewrite /test/ and /test to /test.php

How do I do this? This seems to work by default in apache, but not on nginx it appears?
-2
votes
0answers
16 views

NGINX configuration: redirect ALL except wildcard [on hold]

Please help me with NGINX configuration. If request is /api/*.php, I should parse it as normal script. Everything else should be redirected with 301 redirect. How to do it? Thanks.
-2
votes
1answer
24 views

nginx subdomain with fastcgi [on hold]

I want to use seafile with nginx. For testing I install it into a VM and accessing it via IP-Address. I take this description seafile with https to make it running. it works, when in the nginx.conf ...
1
vote
1answer
86 views

My nginx main file within /usr/share/nginx/main on aws is 5.2GB in size

I am deleting all cache files and unused files since my AWS instance reaches 100% capacity nowadays. My setup is Nginx serving though php5-fpm with opcode cache. I have enabled access_log main in the ...
-1
votes
0answers
15 views

Nginx/HAProxy for failover [on hold]

I want use either Nginx or HAProxy to provide a failover mechanism for our system. The system must work as follows- It must act as a reverse proxy to route the client requests to the backend servers ...
1
vote
1answer
36 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
1k views

install nginx on suse linux enterprise 11

I need some help getting ngnix installed on Suse Linux Enterprise 11. This is my first time trying to do this so I am likely missing something basic. Thus far I have: wget ...
0
votes
0answers
16 views

How to suspend Nginx requests during backend upgrades

I'd like to have Nginx suspend (hold) http requests for short periods of time, while I upgrade or restart the backend service, do a database migration, or some other administrative task, without ...
2
votes
1answer
44 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 ...
-2
votes
0answers
31 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
1answer
20 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
34 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
83 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
26 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
41 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
25 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 { ...
1
vote
0answers
17 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
834 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
35 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
46 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
24 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
32 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
31 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
39 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
44 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
24 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
134 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
903 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
22 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 ...