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

Logging limit_req 503 and delay

I would like to log when limit_req starts causing either 503 errors or delays. I would like to use delay instead of throwing a 503 error, but if I do this then I can't see these in the logs. Is there ...
-3
votes
0answers
7 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
13 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
17 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
7 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 ...
-1
votes
0answers
11 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 ...
0
votes
2answers
11 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
20 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 part of request URI or GET parameter (it may contain query string). So e.g. I want nginx to ...
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
9 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 ...
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; # ...
1
vote
1answer
34 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 ...
2
votes
0answers
41 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
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
13 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 ...
-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
0answers
13 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 ...
-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
8 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
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, ...
-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 ...
-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 ...
1
vote
0answers
18 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
votes
1answer
72 views
+50

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
0answers
17 views

https to http reverse proxy on Jetty 9

Okay, so basically what I want to do is set up a reverse proxy to serve https pages on nginx and redirect them to Jetty using http. The problem is that the servlet actually requires https and ...
0
votes
1answer
27 views

Nginx not running with no error message (ubuntu 14.04 lts)

I am trying to start my nginx server. When I type "$> /etc/init.d/nginx start", I have a message appearing "Starting nginx: Ok", and then nothing happens. When I type "sudo lsof -nP -i | grep ...
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
22 views

Nginx hosting with path appended to index.php

I'm hosting an instance on Concrete5, and in addition to using a dynamic paths, they also use URLs in the weird form of www.mysite.com/index.php/path/to/page. I have it mostly working, but I'm ...
0
votes
1answer
30 views

nginx+php-fpm recipe error aws opsworks

Hi I am trying to implement nginx+php-fpm recipe on custom layer of opswork stack. It's returning me an error service[nginx] (nginx::default line 69) had an error: ...
0
votes
1answer
35 views

virtual host in nginx not working

I'm creating virtual host using nginx with following configuration: server { listen 7001; server_name example.com; location / { root html; index index.html ...
-1
votes
1answer
31 views

Wordpress is unable to write files, despite correct file permissions [on hold]

I am unable to automatically install plugins or themes on my new wordpress setup. It gives me this screen: I believe this is usually due to a write permission error on the wordpress directory. ...
0
votes
1answer
29 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 ...
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
62 views

Ubuntu + Nginx: directory index of “/var/www/app/my-app/” is forbidden

I keep hitting this error when trying to load up my Laravel application on an Ubuntu+Nginx server. The user should visit app.example.com/my-app and it should load the contents of ...
0
votes
0answers
21 views

Application-role based access with nginx?

What are some different ways to configure nginx to allow static file access based on application-defined roles that a user belongs to? (Not local system user groups or roles, just roles defined at the ...
0
votes
1answer
27 views

Nginx redirect loop with Wordpress

I have a rails app and a wordpress based cms on another server. I am trying to host them under same domain. I want all non cms traffic to redirect to https. And all /cms/ traffic should go to http and ...
-2
votes
0answers
68 views

someone stealing my website's bandwidth [closed]

I have a high traffic website serving videos on demand with nginx. lately I see that someone is somehow stealing my traffic big time. I'm using the valid_referers module and I see referers receiving ...
-4
votes
0answers
18 views

nginx Query Driven Content per Every Page and Angular.js Frontend [on hold]

I was originally considering nginx for a new project hosted on a Linux box. Every page on the website will be primarily dynamic, derived from numerous database queries. Most every page will contain an ...
1
vote
1answer
105 views

cannot change root on nginx for some reason

For some reason I cannot change the root. I have the same rights as the default root on /usr/share/nginx/html, and I also have 755 recursive on all files and folders in my other folder. I even tried ...
2
votes
2answers
56 views

nginx > varnish > hhvm

I have nginx on the front end interpreting ssl and redirecting all non https traffic to https: server { listen 80; server_name example.com www.example.com; return 301 ...
0
votes
0answers
24 views

NGINX configuration with Tomcat Application with session

I am new to NGINX and am trying to configure NGINX to pass requests to a domain address to a web application running in Tomcat. How can I configure nginx to pass domain requests to the application ...
1
vote
1answer
24 views

How to avoid duplication of add_header directives in nginx?

The documentation says this: These directives are inherited from the previous level if and only if there are no add_header directives defined on the current level. My problem is that I have ...
0
votes
2answers
18 views

uwsgi starts and works from console but doesn't want to with config file

I've got an issue with uwsgi. When I start uwsgi from conole: uwsgi --socket 127.0.0.1:5555 --chdir /var/www/proj/smth/ --wsgi-file /var/www/.../rest_api/wsgi.py & it shows web pages and ...
-3
votes
0answers
32 views

Configure nginx [closed]

I'm having a hard time in figure out how to make nginx start work. I already install them, and i am trying to view the default page of nginx using `sudo service nginx start`, but is not working, ...
1
vote
1answer
56 views

Configuration of git-http-backend with Nginx (returning PROPFIND 405)

I'm trying to configure git-http-backend over nginx and having some troubles. The actual result is that I'm getting a 405 error for the PROPFIND request: 192.168.1.45 - - [22/Feb/2015:16:50:46 ...
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
votes
0answers
49 views

redirect all request to specific url nginx

I want that redirect every request ( like "google.com" , "yahoo.com" ) to mydomain.com **I setup dns for my user's and force them to send their http request to mydomain.com like every user is expire ...
0
votes
0answers
25 views

nginx limit_req exclude images from counting as a request?

I'm trying to limit the maximum number of requests per second that a unique IP address can make against nginx when requesting a webpage. However, I want images to be excluded as being counted as a ...