Nginx ("engine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

learn more… | top users | synonyms

0
votes
0answers
14 views

NGINX: rewrite, proxy and cache a folder

I am new to NGINX and need to know how to do this in a special location (folder) remove all query parameters proxy request to another server cache the result locally for x minutes Config snippet: ...
0
votes
0answers
8 views

Nginx confing to github pages and home page

I am trying to configure Nginx to use a domain like proxy pass to github pages, and also to have a landing page on the root domain. With this configuration the proxy to githubpages work fine, but if ...
-7
votes
2answers
42 views

How to secure server when the root password is changed [on hold]

I have a server now and I do a web application for my customer, I have the server credentials, what if my customer changes the server credentials after I have completed the application, I don't get ...
0
votes
3answers
30 views

Not able to find /etc/nginx/sites-enabled/default

I have installed Nginx server at my cloud space checked by ip it is showing proper page. Now I have also a apache Tomcat8 on port 8080 I want to redirect my port 80 traffic to 8080 for that I am ...
0
votes
2answers
23 views

NGINX rewrite 2 adresses to same destination

I am looking to rewrite 2 different addresses to the same destination address. Is it possible to do something like this? location = /foo/bar/, /to/fu/ { return 301 /re/bar/; } Or do I have to ...
0
votes
0answers
13 views

Nginx, SSL and websockets on different port

I user Nginx as a server proxy and use it with SSL connections for whole website. All is fine, except I do not know how I can add for this websockets. I found some info on internet and with it ...
0
votes
0answers
9 views

Nginx doesn't start Passenger/Nodejs

I cannot get Passenger to start my Nodejs (iojs) application on restarting nginx. I've followed the tutorials and installed the prerequisites: $ nginx -V nginx version: nginx/1.8.0 configure ...
0
votes
0answers
20 views

Looking for error log in Nginx

When I try to sign up a user on my site I get a 500 error. On my local machine I can at least see what the error is, but in production I cannot. My controller returns a 422 error when a sign up is not ...
0
votes
0answers
16 views

Nginx rewrites working on local virtual machine but doesn't work on live server

I have an nginx configuration on a vagrant VM, where the site is running Joomla. This runs fine with no issues. The issue is with nginx on the live site, running the same version as on the VM - 1.8.0. ...
0
votes
0answers
4 views

How can I configure Varnish (and Nginx, if possible) to use a dynamic cache key?

Some of my clients use Varnish for caching on their sites, while others rely on Nginx. Due to the fact that their sites must be highly dynamic, yet quick to load, I need to configure both systems ...
0
votes
0answers
9 views

nginx http digest + proxy doesn't work on /something?x=3?

Here's my nginx.conf: worker_processes 1; events { worker_connections 1024; } daemon off; http { error_log stderr debug; keepalive_timeout 65; gzip on; server { ...
-2
votes
1answer
23 views

How to Specify which URLs have HTTP Authentication with NGINX

In my nginx configuration file I have successfully created HTTP Authentication for the whole website while it's under development. root /var/www/staging/; auth_basic "Restricted website - authorised ...
0
votes
0answers
2 views

nginx with unicron add https to nginx and redirect https default

Below I have added my nginx.conf file , how to add https to this nginx server and redirect to https by default. I have my crt and key files in /home/ubuntu/ssl/ folder worker_processes 1; user ...
1
vote
0answers
36 views

How to replace the host variable in a header in nginx

I am trying to replace the host variable in the header in nginx configuration, such that some.random.sub.example.net becomes net-some.random.sub.example.com. i have tried the following : if ($host ~* ...
0
votes
1answer
13 views

nginx reformat request_uri to access real file path

I want serve static files with nginx. User will request like this format: http://test.com/files/ea624cf923ea Actual file location will like this /files/ea/62/4c/f923ea How can I serve this ...
0
votes
0answers
6 views

nginx rewrite rules for language

the effect I want: abc.com/hello => abc.com/article.php?link=hello abc.com/en/ => abc.com/index.php?lang=en abc.com/en/hello => abc.com/article.php?link=hello&lang=en what I did: ...
3
votes
2answers
40 views

Nginx, log referrers from certain domain to separate log file

I have my nginx setup to block certain referers like so: if ($http_referer ~* (site_name) ) { return 403; } This works fine, however I'd like to also log the blocked referrer to a separate file. ...
-2
votes
0answers
29 views

Deny access to a folder but allow access to every subfolder

I need to deny access to / but allow access to every folder after. e.g. browsing / would give you a 403 but going to /dir1/ would let you through. There's loads of folders being added so I can't ...
1
vote
2answers
36 views

HAProxy - Health check of multiple microservices for one server

We have 2 web servers that we want to load balance. Each server has a main web application that is hit by the public. Each server also has number of dependent microservices that are used internally by ...
0
votes
0answers
13 views

nginx reverse proxy hide login query also on 301 redirect or full qualified url

I am spending now over two days on that issue, trying several servers (apache, now nginx), searching the whole web, but had no luck so far. First: sorry for posting my urls with http-s instead of ...
-1
votes
0answers
9 views

Nginx aliasing to remove directory name from url

I have a url like http://dev.com/mag/test01. The folder structure goes like /root/pub/mag/test01. I want to remove that pub folder name from the url so, i have my config as below: location /mag/ { ...
0
votes
0answers
30 views

recv not ready (11: Resource temporarily unavailable)) (nginx/1.1.19, supervisorctl, gunicorn )

I have site on Ubuntu 12.04.5 LTS, django (supervisorctl, gunicorn). It work 1 year without problems, but today my zabbix server sending me messages about alerts (every 3-7 minutes) about timeout (for ...
0
votes
1answer
29 views

nginx and apache - multiple virtual hosts on the same IP - correct configuration

I am trying to run nginx as reverse proxy for Apache on the same machine and serve different websites from it. My question is - is it possible to add virtual hosts only to nginx and have it pass the ...
0
votes
0answers
16 views

Nginx log says cannot connect to upstream server, but it does anyway

I've read much about this problem and have tried many things, but I cannot prevent this error from flooding the nginx error log. What I don't understand is that whatever the resource is that can't be ...
1
vote
0answers
9 views

Piwik + uWSGI setup

I have a problem setting up uWSGI+piwik using nginx. My configuration follows this blog entry. My uwsgi ini file looks like this [uwsgi] plugins = php chown-socket = www-data:www-data uid = piwik gid ...
0
votes
2answers
42 views

High inbound and outbound network traffic

Over the last day or so, one of instances has had a large amount of bandwidth consumed. This means that we have nearly exceeded our allowance (roughly the same amount inbound and outbound). Looking ...
0
votes
0answers
11 views

Forwarding Requests through nginx

I'm going to use serve my static files such as html, js, css files in nginx web server. Also, there are some REST services on a Wildfly web server on port of 8080. My nginx's configuration file is: ...
0
votes
1answer
34 views

Nginx proxying http to https with client certificate

We have an application that is not client-certificate aware and must consume a client-certificate authenticated web-service. To fix this, we're trying to use Nginx to reverse proxy a local (http) url ...
0
votes
0answers
24 views

Configure Zabbix API through Nginx the most performant way

I'm looking for a complete performant solution to configure Zabbix through Nginx, not Apache HTTPD that comes by default. I personally dislike HTTPD and interesting if there any specific ...
-1
votes
0answers
32 views

How to rewrite a domain name in nginx [on hold]

I am using Nginx as a reverse proxy. I am trying to configure the server such that any request ending with .net will be redirected to net- For example: example.net should redirect to net-example.com. ...
-1
votes
1answer
40 views

Upload a large video [on hold]

I have bought a dedicated server from DigitalOcean and built a website using WordPress. I have a video of 822Mb; I want to add this video to a page of my website such that visitors can directly watch ...
0
votes
1answer
37 views

Configuring two different application server in one nginx?

I have two different app servers one is my custom application and other is CRM. My custom app will get request and it will request crm server for some data and at the end server the customer. I have ...
0
votes
0answers
19 views

Nginx excluding directory from redirect rules

I have the following .conf in Nginx location / { if ($uri !~ ^/front/? ){ include ez_params.d/ez_rewrite_params last; } include common_auth.conf.inc; location ~ ...
1
vote
0answers
23 views

Flask faster requests/sec with nginx and uwsgi

I'm trying to deploy a flask app with uwsgi and nginx. I use ab and I get the following results: ab -n 10000 -c 100 http://127.0.0.1:5000/ Document Path: / Document Length: 65694 ...
0
votes
0answers
57 views

nginx not running, but listening on port 80

I am unable to do service nginx start due to: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) But if I then do service nginx status I get: * nginx is not running This is ...
0
votes
0answers
36 views

How to find out why Nginx doesn't work on port 80 on mac osx? [on hold]

I'm trying to configure nginx to run on port 80 on Mac OSX Yosemite 10.10.5. I've already searched and tried a lot of stuff. Here's everything I did... Apache was disable using ~ ❯❯❯ sudo ...
0
votes
1answer
35 views

Can't connect to Nginx from remote browser (weird issue)

I've got a really weird issue with Nginx, I can't access it from my browser. I have installed a CentOS 7 virtual machine on my computer with Nginx, PHP-FPM and MariaDB installed and configured. The ...
0
votes
0answers
35 views

UPSTREAM backup is pausing if WEB1 interface is down

upstream cloudpbxtest.synox.jp { server 10.0.7.2:443; server 10.0.7.7:443 backup;} server { listen 443; server_name cloudpbxtest.synox.jp; ssl on; ssl_certificate /etc/nginx/ssl/cloudpbxtest.crt; ...
2
votes
1answer
44 views

Multiple static files directories, single PHP FPM server

I have two directories which I need to serve static assets out of: /srv/web: Static assets which include images, JavaScript, HTML, etc. /srv/php: Dynamic PHP scripts alongside some static assets. ...
-1
votes
1answer
36 views

Unable to run nginx as a specified user

I installed nginx from source. I did following steps to configure it. tar -xvf nginx-1.8.0.tar.gz cd nginx-1.8.0/ ./configure --prefix=/home/jegan/nginx-1.8.0/nginx ...
0
votes
1answer
38 views

Redirect domain and all the subdomains to a certain sub domain

I am building a site for the alumni association of my school. I have bought a domain myschool.com from GoDaddy. In GoDaddy, I have customised DigitalOcean as name servers. I would like to customise ...
2
votes
2answers
48 views

Nginx not loading css/js/images in https - Blocked loading mixed active content

I am running ubuntu 14.04 with Nginx 1.8.0. While opening the web pages in https the pages appear to be broken as the css/js/images don't load. I get this error "Blocked loading mixed active content" ...
-1
votes
0answers
45 views

nginx + Wordpress redirection loop 301

I've a Wordpress-based site. Specific part of my code makes a redicrection from HTTP to HTTPS. Code looks ok, and it perfectly works on local Apache. Live project nginx-sp sever makes a ...
0
votes
0answers
20 views

Access denied for the request of data from s3 bucket on high load

I am trying to fetch static files from s3 bucket in case of 502 error. This is how I have configured nginx for requests : error_page 502 = @static; location / { index index.php; try_files $uri ...
1
vote
1answer
29 views

How to fix nginx 'no input file' when path and permissions are fine?

I know this is a common question, but I found no discussion matching exactly with my case. nginx error log shows: FastCGI sent in stderr: "Unable to open primary script: ...
-2
votes
0answers
26 views

NGINX Injecting PHP into the top of every page [on hold]

I was looking to inject PHP into the top of every page, but I am not sure how to do it. What I tried was using NGINX's substitute mod, but that didn't help much either. Any ideas on how to inject ...
-2
votes
0answers
13 views

Ngix + Wordpress - deny acess to woocommerce zip files

I try deny access to zip files with names, that contantins 'bewerbungsvorlage' in 'wp-content/uploads/woocommerce_uploads/'. I add tihs code: location ~* ...
-2
votes
0answers
13 views

htaccess rewrite rules to nginx [closed]

Can anyone help me with this? I cannot figure out why it is not working on my VPS (LAMP, nginx, PHP-FPM). location /compareproducts { rewrite ^/compareproducts/product/([0-9]+)-([a-z]+) ...
-1
votes
0answers
14 views

installing ssl certificate on nginx sever returns 404

I just configured nginx server 1.2.1 by this: http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size ...
-1
votes
1answer
56 views

Nginx bind to 0.0.0.0:80 failed (13: Permission denied) [closed]

I installed nginx-extras in order to use lua module. I use mongroup to group and start services on my machine. When I run nginx with this command: exec nginx -c "$(pwd)/nginx.conf" -g "daemon ...