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

Can NGINX instructed to serve a file over HTTP that is in the process of being created?

I am using NGINX as a component in my system that accepts content streamed from clients (lets say, over RTMP) and passes it to some internal service for processing. The internal service fetches the ...
0
votes
1answer
21 views

Nginx rewrite *.domain.tld/page to domain.tld/page

I can not set up a redirect from *.domain.tld/personal to domain.tld/personal server { server_name domain.tld www.domain.tld *.domain.tld; listen 100.10.10.1; set $root_path ...
0
votes
0answers
18 views

How to work whit socket_file httpd (nginx-uwsgi)

I am trying to run Nginx/uWSGI/Django, the last remaining step is to run the socket_file all I get is a 502 Bad Gateway. Route my django application. #/home/deploy/webapps/myapp Configuration ...
0
votes
1answer
39 views

Enable caching on nginx

I have my own VPS with CentOS 6 and nginx and I want to enable caching. To test it, if it is enabled successfully I use the Google PageSpeed Insight. My problem is that I don't have much experience ...
0
votes
1answer
26 views

403 Nginx issue, serving files from /home/user/localhost

I'm trying to serve files from a directory called localhost under my home. In my server block I specified root /home/user/localhost If I change nginx user from http to my username it works but I ...
0
votes
1answer
31 views

High %sys utilization in Nginx cache node

We set up Nginx with Lua (openresty bundle) to be a local caching node to our file sharing server, we seperated files to chunks "50MB each" (by this method) and store them in cache to increase its ...
0
votes
0answers
17 views

PageSpeed Unicode characters file name

PageSpeed unable to interpret Unicode characters on file names. My problem is that some of the image files names have Unicode characters and Nginx is able to access them. This link is accessible ...
0
votes
0answers
36 views

How to use ssl everywhere except an endpoint

I have a Web site where I want all requests to be done with HTTPS except for requests to urls with paths that start with /out/. nginx is configured as proxy to serve gunicorn/django content from ...
0
votes
1answer
19 views

/etc/nginx/client_body_temp/0000000001" has written only

I have bare repository under NGINX + spawn-fcgi. Now I'm trying add local directory to remote Git: $ git init $ git add * $ git commit -m "Initial commit" $ git remote add zeus ...
0
votes
1answer
27 views

nginx in front of apache doesn't load images [closed]

i configured a nginx will run on 80, and Apache 8081 here is my virtualhost config: server { listen 123.123.123.123:80; server_name edm1.mydomain.com mydomain.com; access_log ...
0
votes
0answers
5 views

Custom error_page: Nginx gives 404, PHP sees 200 [migrated]

I'm trying to set up a custom error page. Any error code (400–599) should be routed through this page to display the error and the appropriate status code. Here's my server configuration: server { ...
0
votes
0answers
23 views

Nginx conflicting demands for host header

I'm trying to expose one part of my web server via one address, and another part via another. I feel like my use case should be simple, but nginx is giving me a lot of troubles. What I currently have ...
0
votes
0answers
118 views

Wordpress and PHP-FPM slow

I cannot find answer elsewhere. I have plain vanilla Wordpress installation. No posts. Database completely empty. Server 1 is nginx + php-fpm Server 2 is mysql nginx & php-fpm set-up according ...
0
votes
0answers
16 views

backbone.js application for Jenkins

I have a task to setup the backbone.js application. I'm looking for a solution on how to setup the application for our running Jenkins: https://github.com/worldofchris/jenkins-radiator/tree/waf-mods ...
0
votes
2answers
10 views

NGINX with “serverpool” as the LB for DIFFERENT DOMAINS on same Apache Servers?

I have nginx as a LB. And the 2 Apaches as the web servers. Lets say i got different domains: www.example.com checkout.example.com Both domains will be in same 2 Apache Servers. But ofcoz under ...
0
votes
0answers
36 views

Nginx reverse proxy from subdomains to ports

This is my entire nginx.conf file worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile ...
0
votes
0answers
15 views

How to package nginx with custom modules for ubuntu server?

I need nginx with a few modules that are not included with the packages available via apt-get. I have no problem downloading the source from apt, changing the build params and compiling a .deb file ...
0
votes
0answers
6 views

Add persistent route in asus router [migrated]

I'm using Asus RT-N66U router as HTTP load balancer and reverse HTTP proxy. To do it I installed Download Tools from stock firmware and nginx server. I moved router's web interface out of 80 port and ...
0
votes
1answer
17 views

Nginx ignores expires headers for sub-directories

I've compiled and installed nginx on my server (Fedora 21 x64). I've added expires and some extra headers for static contents. But the thing is I nginx doesn't add expires and extra headers for root ...
0
votes
1answer
88 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
47 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
2answers
24 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
65 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
58 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
36 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
85 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
19 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
93 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
126 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
27 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
15 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
42 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
48 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
11 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
27 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
0answers
34 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
vote
0answers
32 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
128 views

Multiple versions of PHP through nginx

EDIT: For future reference Multiple versions of PHP through nginx Nginx and different versions of PHP FPM + PHP I am running Ubuntu 14.10 with a LEMP stack using PHP 5.5.12. I have a number of ...
0
votes
0answers
54 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
62 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
1answer
28 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
38 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
53 views

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

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
165 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
24 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
108 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
24 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
38 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 ...
1
vote
1answer
126 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 ...
3
votes
2answers
136 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 ...