Questions tagged [nginx]

Nginx is a web and proxy server. Note that questions on the use and configuration of server software may be off-topic and subject to closure if they do not directly involve a programming context. Other Stack Exchange sites such as Super User, Server Fault, or Webmasters may be more appropriate places to ask such questions.

Nginx ("engine x") is a lightweight and high-performance HTTP , and , released under a BSD-like license.

From the nginx wiki:

Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Igor Sysoev started development of Nginx in 2002, with the first public release in 2004. Nginx now hosts nearly 12.18% (22.2M) of active sites across all domains. Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.

Resources:

Useful Links

Talks

Tengine

54687 questions
11
votes
3 answers

Storing docker nginx access logs inside a docker volume

Currently my docker container is printing the nginx access logs to /dev/stdout. How do I create a volume inside my docker container to store the access logs? My Dockerfile: FROM python:3.7 ENV APP_ROOT /src ENV CONFIG_ROOT /config RUN apt-get…
wasabi_gardener
  • 177
  • 1
  • 1
  • 6
11
votes
2 answers

Run multiple django project with nginx and gunicorn

I am using Ubuntu 18 servers and using nginx with gunicorn I follow Digitalocean tutorial for server setup. I successfully did for one project but now I need to run multiple projects under by server. Here is my gunicorn setup command: sudo nano…
Antu
  • 2,197
  • 3
  • 25
  • 40
11
votes
1 answer

Vagrant: config.vm.provision does not allow me to copy a file to etc/nginx/conf.d?

I am working with a Nginx server. I want to copy a configuration file to /etc/nginx/conf.d with the Vagrantfile. The command I use is: config.vm.provision "file", source: "./bolt.local.conf", destination: "/etc/nginx/conf.d/bolt.local.conf" The…
Hendrik D
  • 139
  • 1
  • 11
11
votes
2 answers

Configuring Supervisor for Daphne (Django Channels)

I have created a web application with Django Channels which I face problems with while trying to set up with Supervisor system. To start with, the application locally works well. Remotely (I use an AWS EC2 instance with Ubuntu Server 18.04 LTS),…
11
votes
3 answers

How to NGINX Reverse Proxy outside of Docker to proxy_pass to docker containers

I have an NGINX running on a CentOS server and would like to proxy_pass to running docker containers running on the same host. When using proxy_pass with the IP of container it works, however if machine gets rebooted sometimes the IP changes of the…
Val
  • 1,023
  • 3
  • 10
  • 21
11
votes
3 answers

DNS and nginx server setup causes slow server and 502 response

I'm setting up a new server with Ubuntu 18.04.1 Nginx 1.14.0 and PHP 7.2.7 Everything works fine except a test page where I set up a lot of broken links to missing images. Edit: I decided to ask a new question based on the conclusions of this…
C.A. Vuyk
  • 1,055
  • 17
  • 36
11
votes
2 answers

Error during WebSocket handshake: Unexpected response code: 301

I have already looked into the answer to RoR 5.0.0 ActionCable wss WebSocket handshake: Unexpected response code: 301 but it was not applicable to my case. I use an nginx-proxy as a front for several web-servers running in docker-containers. I use…
Tobias Gassmann
  • 11,399
  • 15
  • 58
  • 92
11
votes
1 answer

Docker/Angular/Nginx: "exec: \"npm\": executable file not found in $PATH":

I have an angular app which I dockerized together with nginx. My dockerfile: FROM node:8.11.3 as node WORKDIR /app COPY package.json /app/ RUN npm install COPY ./ /app/ ARG env=prod RUN npm run build -- --prod --environment $env FROM…
Michael H.
  • 471
  • 2
  • 9
  • 22
11
votes
3 answers

how to deflate js file in nginX?

I’m looking for "how to compress load time js file" and I try the solution of my question (I’m using Extjs). My friend suggest this too. But, it use Apache as web server. Anybody know how to do the trick in NGINX?? My hosting uses nginx as web…
Egy Mohammad Erdin
  • 3,402
  • 6
  • 33
  • 57
11
votes
1 answer

Express-rate-limit vs NGINX in a node server

I'm currently using express-rate-limit module to block multiple requests from the same ip or logged in user account in my node server, and this is working pretty good against DoS attacks. This server is a small local business that requires only one…
Felipe Micali
  • 827
  • 1
  • 11
  • 25
11
votes
2 answers

Google Cloud App Engine: 502 Bad Gateway (nginx) error with Flask App

I am running a Flask app on Google Cloud App Engine (flex). Running it locally works just fine, but once it deploys I get a 502 Bad Gateway error (nginx). Now I would like to figure out what causes this, but I am not able to find any option to view…
AaronDT
  • 3,940
  • 8
  • 31
  • 71
11
votes
1 answer

Disable SSL redirect for Kubernetes NGINX ingress

An SSL redirect is enabled by default in a Kubernetes NGINX ingress. How can this be disabled? Current implementation below: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: project_name-ingress annotations: …
Will Squire
  • 6,127
  • 7
  • 45
  • 57
11
votes
5 answers

RabbitMQ Management Over HTTPS and Nginx

I'm trying to access the RabbitMQ interface over HTTPS/SSL with nginx, and I can't figure out what I'm missing. Here's my rabbitmq.conf file: [ {ssl, [{versions, ['tlsv1.2', 'tlsv1.1']}]}, {rabbit, [ {reverse_dns_lookups, true}, …
Dario Zadro
  • 1,143
  • 2
  • 13
  • 23
11
votes
1 answer

How to get SSL working with Rails, AWS Elastic Beanstalk and Cloudflare

I have a site hosted on Elastic Beanstalk built with Ruby on Rails. I set up Cloudflare to configure the DNS and provide a CDN. Cloudflare also provides an SSL. I can't get the SSL working with my app. With Cloudflare's SSL set at "Flexible" I…
Gold Masta
  • 695
  • 1
  • 10
  • 22
11
votes
2 answers

"upstream prematurely closed connection while reading response header from upstream" Django, Ubuntu, Nginx, Gunicorn

I deployed a Django website using this tutorial https://jee-appy.blogspot.com/2017/01/deply-django-with-nginx.html The website can be accessed from the internet, www.simplesol.com When I try to make a POST request, it fails and I get a 502 error. …
John Bobst
  • 147
  • 1
  • 1
  • 8
1 2 3
99
100