Questions tagged [nginx-config]

2020 questions
4
votes
0 answers

How to turn off buffering on Nginx Server for Server sent event

Problem : Nginx Server is buffring the Server sent events(SSE). Setup : Node v12.13.1, Nginx 1.16.1, Chrome v80 Scenario: I tried to turn off buffering with proxy_buffering off; and even added "X-Accel-Buffering": "no" in server resonse header…
4
votes
4 answers

nginx doesn't listen on port 80 twice?

Edit: Read this, first: Apart from the accepted answer, these errors occur when nginx is started without systemd. Kill nginx: ps -ax | grep nginx → find the nginx master pid → kill ###; run nginx with systemd: systemctl start nginx. If systemctl is…
Wolfpack'08
  • 3,982
  • 11
  • 46
  • 78
4
votes
1 answer

Running nginx to serve files and act as a reverse proxy for Node app on same domain

I am currently trying to run Nginx as a reverse proxy for a small Node application and serve up files for the core of a site. E.g. / Statically served files for root of website /app/ Node app running on port 3000 with Nginx reverse…
Mixehh
  • 71
  • 2
4
votes
0 answers

nginx "http_headers_more" module returns "not binary compatible" error

I am trying to run the nginx-mod-http-headers-more module for nginx so that I can fully hide the server name/version from a header response. A bit of background, I am running nginx 1.16.1 inside a docker container. It has a dockerfile running…
pppp
  • 557
  • 3
  • 8
  • 21
4
votes
0 answers

Nginx Configuration: failed: Error during WebSocket handshake: Unexpected response code: 400

I am struggling with nginx and websockets. My client is Javascript and I am using Fleck in the server code. So: My JS: var ws; var url = "wss://192.168.0.12:8080/"; $(document).ready(function () { function Connect() { try { …
Andrew Simpson
  • 6,883
  • 11
  • 79
  • 179
4
votes
2 answers

nginx stream_ssl_preread module unable to read ssl_preread_server_name

I am trying to set up nginx to map TLS connections to different backends based on the SNI server name. From what I can tell, my client is sending the server name, but the preread module is only reading a hyphen. Here is my nginx congif: stream { …
Debby Mendez
  • 691
  • 10
  • 16
4
votes
1 answer

Laravel: How to allow routes with .php file extension

I'm using homestead (so I deal with Nginx) and I want to match some routes that can contain ".php". My nginx config file: server { listen 80; listen 443 ssl http2; server_name .homestead.test; root "/home/vagrant/code/test/public"; index index.html…
4
votes
1 answer

Nginx configuration for multiple static sites on same server instance

I have three static sites. I am using Vue 2 and running build for each folder. I want to host all three static files on the same server instance. Right now I don't have domain so i want to host on server's IP itself. I have folder in html/www…
wazz
  • 92
  • 1
  • 4
  • 11
4
votes
0 answers

Nginx gives a 404 for multiple flask apps under same domain

I am trying to run a flask web app and a flask restful api on the same domain. They both run fine, when they are run alone. I am not using venv. However, when I try to run them under a same domain, Nginx throws an error - 404, not found. Also,…
lmao
  • 452
  • 1
  • 5
  • 13
4
votes
1 answer

'The change you wanted was rejected' error on all 'Devise' actions after installing SSL certificate

I configured nginx to use SSL certificate(got it from sslforfree.com) but a weird behavior is happening after that. Site is running fine but I'm unable to do any Devise action, e.g. If someone was logged in before using SSL, they can't logout and…
repoleved
  • 133
  • 2
  • 12
4
votes
0 answers

Nginx + Docker. 504 Gateway Timeout

I've been struggling for a bit on this and I'm starting to get depressed... I'm running a droplet on DigitalOcean with Ubuntu 18.10. I've used Docker to serve my different service (nuxt, socket.io, nginx, nodejs) And I've used Nginx to revese proxy…
4
votes
0 answers

Nginx proxy infront of AWS Internal ALB:upstream timed out (110: Connection timed out) while connecting to upstream

We have two drupal apache web servers behind ALB. Nginx proxy_read_timeout as 300 no other proxy_connect_timeout proxy_send_timeout keepalive_timeout has been defined/configured. Occasionally getting upstream timed out (110: Connection timed out)…
skg
  • 131
  • 1
  • 6
4
votes
2 answers

NginX GeoIP Module Config - load_module not allowed on First Line of Conf

My nginx conf looks like this: include /usr/share/nginx/modules/mod-http-geoip.conf; server { } server { } I had installed mod-http-geoip via sudo yum install nginx-mod-http-geoip and i have…
user1955934
  • 3,185
  • 5
  • 42
  • 68
3
votes
0 answers

EC2 Ubuntu - nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)

I'm getting this error after running sudo nginx command nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error) nginx: [emerg] bind() to [::]:80 failed (98: Unknown error) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error) nginx:…
ali60vip
  • 370
  • 1
  • 5
  • 13
3
votes
1 answer

No messages are being sent in Blazor Server behind Nginx

I have a blazor-server application, which works correctly in all cases other than running behind reverse proxy (I've only tested with NGINX). Browser is able to connect to /_blazor?id=xyz endpoint and successfully send/receive heartbeat messages.…
Alvan Rahimli
  • 348
  • 4
  • 10