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
1answer
5 views

No VirtualHost filter (a good practice?)

I am trying to figure out the cons of a current setup and discovered a potential anomaly. There's a webpage hosted at (say) webpage.com. If I point my domain (say) mydomain.com to the raw IP of ...
0
votes
0answers
4 views

Apache htaccess to nginx rewrite rules

I need help converting Apache .htaccess rules to Nginx RewriteBase /dir/ RewriteCond $1 !^(system|application|robots\\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d ...
0
votes
1answer
10 views

How to setup Gitlab-omnibus with non-bundled web-server?

Install I installed the gitlab package through the omnibus package on debian 7 (version7.8.1-omnibus-1_amd64.deb) ; change the settings as describe in Using a non-bundled web-server run the ...
-1
votes
0answers
15 views

NGINX on CentOS troubleshoot - 'ERR_CONNECTION_REFUSED'

I'm configuring an Nginx server and have hit a wall. Some help would be great. It's an EC2 instance running CentOS 6, everything was fine until the server was rebooted, now I get ...
0
votes
0answers
6 views

Nginx and Magento, some rewrites/redirects not working

I migrated a Magento site that was running on apache https to nginx today, and it almost worked perfectly. The site in question is http://20products.com/ (you may need to flush your dns cache). The ...
0
votes
0answers
10 views

Redirect-loop on Nginx

I'm running a Nginx-server inside a docker-container. Ever since I tried redirecting all subdmains whatever.example.com to example.com I get a redirect-loop. This is the configuration: upstream ...
3
votes
1answer
820 views

Why is my Rails application hanging?

I have a Rails application of moderate complexity running under Apache/Passenger which becomes unresponsive after periods of idleness. It takes several minutes to respond, but can be temporarily ...
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 ...
0
votes
1answer
849 views

how to get rid of xdebug cannot be loaded error

How do I get rid off this error when I run php-fpm In my phpinfo, xdebug is mentioned, so why do I get this error Failed loading xdebug.so: dlopen(xdebug.so, 9): image not found I have php54 ...
2
votes
2answers
2k views

Nginx : Mp4 videos not seeking and starting immediately

I learned how to compile nginx with mp4 module. I also added proper directive in my website conf. I am trying to play a mp4 using JW player and flow player. But the video doesn't buffer and play like ...
2
votes
0answers
39 views

reverse proxy issues with nginx over apache2.4 hosting joomla: url rewrite does not work any more

I am setting up a joomla 3.x site with apache 2.4 on an ubuntu 14.04 server on aws ec2. That alone is fine with url rewrite working fine. I have cleared all apache issues before freeing the port 80 ...
0
votes
0answers
19 views

Nginx proxy pass url from get argument

Let's say I have server example.com with nginx. I want to make a proxy which will proxy pass URL given as GET parameter (it may contain query string) So e.g. I want nginx to resolve ...
1
vote
1answer
23 views

How to Disable TLSv1.0 and TLSv1.1 in Nginx

I'm trying to figure out how to disable TLSv1 and 1.1 Nginx and ONLY allow connections on 1.2. This is for testing reasons more than in production use and for the life of me cannot figure out why ...
0
votes
1answer
18 views

How to uninstall default nginx on openBSD

I want to install a custom compiled nginx on OpenBSD, but I'm having problems running it because nginx is already installed in the default OpenBSD (5.6) install. In some way it is like I managed to ...
-1
votes
0answers
8 views

nginx $request_uri: no match against file with query string

I'm trying to set a specific variable in nginx if $request_uri contains something like file.php?foo=bar Here's my code: if ($request_uri ~* "/(file1.php|file2.php?do=check|some/path/)") { set ...
1
vote
1answer
32 views

Nginx and different versions of PHP FPM + PHP

Due to a better understanding of what I wish to achieve thanks to Mark and his previous answer, I am posting a (hopefully) clearer and slightly different variation of my previous question as that ...
0
votes
1answer
11 views

Nginx location redirecting improperly

My nginx.conf: http { include mime.types; default_type application/octet-stream; # click tracking! access_log /var/log/nginx/nginx.access.log combined; sendfile on; tcp_nopush on; # ...
0
votes
0answers
29 views

Redirecting to maintenance page and banning IPs in nginx

I'm new to nginx and would appreciate it if you can offer assistance. I'm trying to first, rewrite all requests to server ip 1.2.3.4 to example.com/maintenance.html. I have put the following block in ...
0
votes
1answer
173 views

Nginx how to use limit_req_zone on auth_basic to protect against brute force attack?

I have an Nginx server that works as an SSL proxy for a service running on a localhost that doesn't support SSL authentication. I would like to use Nginx's limit_req_zone function to protect the ...
-1
votes
1answer
69 views

Multiple versions of PHP through nginx

I am running Ubuntu 14.10 with a LEMP stack using PHP 5.5.12. I have a number of legacy WordPress sites that require PHP 5.3.3 alongside some WP sites that use a fairly recent version of PHP, all ...
0
votes
2answers
175 views

How to concat rotated logs back together

How to concatenate the rotated logs back together to make the original file? huali-access.log huali-access.log.15 huali-access.log.21 huali-access.log.28 huali-access.log.34 ...
0
votes
0answers
13 views

Can nginx generate an index of the other locations of the server?

I have an nginx configuration, with several locations like so: server { listen 443 ssl; server name my.server.com; location /first/ { # config 1 } location /second/ { # config 2 ...
0
votes
0answers
12 views

From apache to nginx - problems with cookies

So I just switched from apache to nginx. Now I am trying to run an php application I wrote on the new server. The application will run from a subdirectory called rss. There is only one index.php which ...
1
vote
1answer
56 views

Fail2ban configuration for nginx using firewallcmd in CentOS 7

Previously I have a CentOS 6.5 with Iptables and I configure some jails for nginx as suggested here: How To use fail2ban for Nginx?. But now I am in CentOS 7, trying to use the new firewall and ...
0
votes
1answer
833 views

Cannot checkout session because a spawning error occurred

I'm trying to get my Rails app working on my VPS. I've deployed my project, created the database and migrated it. But when I visit the page I get a message: We're sorry, but something went wrong. ...
-2
votes
0answers
13 views

Nginx: How to remove a custom domain

I have a nginx setup files of many domains in /etc/nginx/sites-available/. Each file points to different domain, and each has a symlink to /etc/nginx/sites-enabled/. Now, I have an old site which I ...
0
votes
2answers
819 views

nginx with real_ip — log both client remote_addr and proxies address

I have an nginx instance set up behind multiple load balancing proxies, and I am using real_ip to get the clients IP address in remote_addr for processing by my Python application. However in my logs ...
1
vote
1answer
639 views

NGINX don't parse .php5 as .php

I have installed nginx with ISPconfig. Everything works fine except some websites I have ported from apache server unfortunately have .php5 extension and I don't know how to make nginx to parse them. ...
-1
votes
2answers
341 views

URL Shortener & Site Redirection on same domain

i have one domain(http://sdm.fm), And I would like it to work as a redirect to http://somdomato.com. But at the same time I would like it to work as a URL shortener. Using phURL. Like: ...
0
votes
0answers
12 views

nginx match language subdomains without server_name regex

I have the following two nginx configs server { server_name .domain.tld } server { server_name subdomain.* } Is there a way to match language subdomains (e.g. en.domain.tld, ru.domain.tld ...
0
votes
1answer
18 views

nginx retry static files once on 404

In my test scenario if a file is being created and someone requests the file 404 will be returned. i want to implement a retry once for that file. current configuration location /file/ { root ...
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          ...
-1
votes
1answer
13 views

SELINUX blocking php-fpm and nginx working together?

I'm having some issues with SELINUX. When trying to visit my website I get 403 forbidden from nginx and the server pops up with an error and says to use grep NGINX /var/log/audit/audit.log | ...
0
votes
1answer
7 views

Strange issue with Nginx compiled from source and Nginx from official Fedora repository

TL;DR Nginx, compiled from source, had trouble process .php files, while with the same PHP-FPM configuration, nginx , from official Fedora repository, worked like a charm on DigitalOcean 512MB Fedora ...
0
votes
1answer
2k views

Redirect non-www to www over SSL with Nginx

I'm having an error when trying to redirect https://example.com to https://www.example.com. When I go to https://example.com, it doesn't redirect and returns the page/200 status. I don't want this, ...
0
votes
1answer
16 views

Nginx does not stop with websocket connection

I have nginx 1.6.2 wih configuration to upgrade connection to websocket. proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; When no websocket connection is opened, ...
0
votes
1answer
158 views

nginx proxy pass / rewrite with multiple locations to passenger app and php-fpm

On a server for a small team of people (up to 30) I installed several services which have to be accessible from the browser. I want to use nginx because I consider it being more lightweight. All ...
-2
votes
0answers
20 views

Web page not loading over 4g on some networks [on hold]

I have recently came over a weird problem with a website. We use amazon EC2 servers with nginx and mysql rds backend and load a balancer to distribute load across servers and the website loads fast in ...
0
votes
0answers
29 views

Nginx Configuration

I am trying to setup nginx web server for my web application. Below are the URL's I want www.example.com -----> /var/www/html www.example.com/backend/ -----> /var/www/app/backend/www ...
2
votes
2answers
2k views

Nginx - What is does the nodelay option do when limiting requests?

With the nginx HttpLimitReq module requests can be limited by IP. However, I'm not understanding what the "nodelay" option does. If the excess requests within the limit burst delay are not ...
0
votes
1answer
820 views

Nginx to address Nodejs app [on hold]

I'm using an Ubuntu web server with Plesk 11.5.x. I've added Nodejs and now i want to adress the Nodejs app with a subdomain. Website: domain.tld Nodejs App: app.domain.tld Currently working: ...
-1
votes
0answers
24 views

Change from Apache to Nginx in VPS using Plesk [on hold]

I have a VPS running Parallels Plesk 12.0.18 Update#36 and CentOS 6.6. I'll like to move (if it's possible uninstall complete) Apache and let Nginx to manage all the request coming from outside (serve ...
0
votes
1answer
27 views

FastCGI sent in stderr: Unable to open primary script

Situation: Server A & server B installed same Ubuntu 14.04, same nginx version (1.4.6), same virtual host (domain.com) and joomla folder (rsync-ed from server A to B) But server A only able to ...
3
votes
0answers
28 views
+50

munin + nginx: no dynazoom into graphs

I cannot get the Munin dynamic zoom to work. I am rather certain that the problem has something to do with the Nginx configuration. Any attempt to generate a zoomed graph triggers the following error ...
1
vote
0answers
17 views

proxy parameters with nginx

I'm trying to use nginx to proxy a request with parameters to a shoutcast stream. I've tried a couple things but can't seem to get it working right. First try was this location /music/ { ...
1
vote
1answer
330 views

Rails application deployment, nginx, unicorn, capistrano socket error

I am deploying a rails application to a digital ocean VPS. I have followed https://coderwall.com/p/yz8cha . All things done well, but now the browser shows only a blank page. Nginx log contains: ...
1
vote
3answers
2k views

Rails + Nginx + Unicorn multiple apps

I get the server where is currently installed two apps and i need to add another one, here is my configs. nginx.conf user www-data www-data; worker_processes 4; pid /var/run/nginx.pid; events { ...
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
1answer
1k views

NGINX SSL Connection Error

I've added an SSL certificate to my server. (Nginx running passenger & Rails). I created a CSR, uploaded to GoDaddy, downloaded the keys. Inside /srv/ssl I have www.mydomain.com.crt ...
-1
votes
0answers
23 views

ISPConfig not writing error logs [on hold]

I have a default ISPConfig on a Debian 7 + NGINX + PHP-FPM. No settings where changed. I moved one of my websites from an old server to this new ISPConfig server and I tried to access the website, ...