Questions tagged [nginx]

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

0
votes
0answers
6 views

Swift URLSession.shared.dataTask GET Request -1001 returns timeout

Sending a POST request to our NGINX Server works good with URLRequest and URLSession.shared.dataTask. I can login to my app but when I try a GET request my server has no log that the request reached ...
0
votes
0answers
4 views

Nginx reverse proxy config whitelist IP

I am using Nginx reverse proxy with Kubernetes services. Config is following: events { } http { upstream my-service-3000 { server my-service:3000; } ...
0
votes
0answers
6 views

nginx on Jelastic won't start

I'm starting a web app with nginx on Infomaniak (in 🇨🇭), and I have connections refused every god damn time. I found the issue, my nginx service won't start, even after nodes restart. Doing a ...
0
votes
0answers
9 views

502 Bad Gateway error on Rails app deployed on digitalocean vps with nginx/puma in production only

I have a digitalocean droplet, setup with one-click-app for rails configuration i.e. pre-configured with Ubuntu18/nginx/puma/rails. I have a very simple app that I can deploy in development ...
1
vote
0answers
5 views

Identityserver4 openid-configuration omits host port running nginx reverse proxy

I am setting up an Identity server4 behind Nginx reverse proxy using docker in Windows. it is running properly at myhost:5000. but when accessing http://myhost:5000/.well-known/openid-configuration ...
0
votes
1answer
15 views

How to configure nginx to refuse connection from a suspicious host?

I use Nginx to handle HTTP requests. During access log inspection, I found a lot of suspicious requests from the same IP address. I'd like to configure Nginx to refuse connections from hosts like that ...
0
votes
0answers
14 views

NodeJS / Nginx: Problem with user who disconnects by himself but he returns but not by himself

I have a problem on my application NodeJS with user who disconnects by itself but it returns but not by itself. Here is server.js: /* The client server. */ var config = require('../config'), ...
-1
votes
0answers
12 views

Windows+Nginx+PHP: chaning error_reporting in php.ini not working [duplicate]

I want to disable strict standards in php, but after I change my error_reporting setting in php.ini to error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR The strict ...
0
votes
1answer
8 views

Cannot access the docker path in docker toolbox /usr/share/nginx/html

I am using a Docker Toolbox on Windows 8 and trying to run angular application from nginx in Docker.I have nginx runnning on my system and rendering the default nginx page,but I want to render my ...
0
votes
0answers
10 views

Nginx upstream retry based on response

Not all API operations are retriable, so backend send a header retriable = true if the operations can be retried. How can I say Nginx: retry if the upstream response contains the retriable header? ...
0
votes
1answer
7 views

connect() to unix:/var/run/php/php7.2-fpm.sock failed (11: Resource temporarily unavailable)

I have a question about nginx. I have some webservers on my environment using nginx and they are behind Load balancer. Suddenly, all web services are down and I found this error log on nginx: [...
0
votes
0answers
8 views

NGINX redirection failing

I am facing one issue on redirection. When I click on the 1st url it's getting redirected. When I use with passing parameter it's not getting redirected. Could you please provide solution? I would be ...
0
votes
0answers
33 views

Bad Request (400) when try to access the domain without 'www.' django

I have django project in production and i point it with domain name let say for example it is 'www.example.com' when i try to access it with 'example.com' without 'www' it is give me : Bad Request (...
0
votes
0answers
7 views

Why nginx $upstream_response_time is zero, when response is sent from memcached upstream

Our nginx is configured to serve requests from 2 upstreams: php-fpm and memcached. When request is served from php-fpm, $upstream_response_time has non-zero value. When request is served from ...
0
votes
1answer
19 views

Setting up mongodb behind nginx

I am trying to setup mongodb behind nginx, and below is the configuration I used. But I keep getting the following error when I reload nginx. Any help is appreciated. nginx: [emerg] no port in ...
0
votes
0answers
21 views

Laravel Session is not persistent in staging enviornment

I have created a simple laravel app. Session is persistent in local but in my staging enviornment it is not persistent. I am using nginx in local and traefik in staging.
0
votes
0answers
9 views

Block direct linking to mywebsite/app/myapp but allow revery proxy access

I have a NGINX reverse proxy set up for a very simple HTML that has an iframe that accesses my app on a different server. This is working fine but the problem is users can copy a link from inside the ...
1
vote
0answers
22 views

MySQL Connection access denied, but only 50% of the time, in Docker with Nginx-Proxy

I'm trying to get a local development environment running with multiple projects. After some heavy tinkering I stumbled across this project , and started adapting it to my own projects. Each project ...
0
votes
0answers
9 views

Creating A Server-Side Login Without Basic HTTP Auth And Minimal Time Investment

I am looking to create a restricted access site but because of different languages involved I need something server-side like the "Basic Nginx HTTP Auth". What options do I have? Is anyone aware of a ...
0
votes
1answer
21 views

Turning image response from server into downloadable file

I'm making an ajax POST call to my server, generating an ugly remote download URL, passing that to nginx with proxy_pass and then serving the file to the client. See here for process. The image seems ...
0
votes
1answer
20 views

Laravel/Vagrant and Gulp: CSS and JavaScript files seem to get cached somewhere

I recently started developing in Laravel but quickly ran into a problem with using Gulp and Vagrant. The problem is that when I compile my SCSS (SASS) to css, the browser doesn't seem to update the ...
0
votes
0answers
8 views

Django/Nginx subdomain (urls)

We have a Django project on domain auth.domain.com. Now we created a presentation webpage which is in it's own app called presentation since it must have access to the project DB and models etc. I ...
0
votes
1answer
28 views

Setting up PHP-FPM, Nginx, Mariadb on CentOs using docker

I'm trying to move from from using VirtualBox as my development environment to docker. With VirtualBox, I mainly install PHP-FPM, Nginx and Mariadb but in Docker, I can't replicate the same stack ...
0
votes
0answers
19 views

Multiple Laravel App using the same table job

I am working with 3 HTTP servers using the same Laravel app and sharing the same DATABASE, where the first server realize the LoadBalance using nginx, basically with the same weight. The application ...
0
votes
2answers
19 views

Nginx is refusing to connect on AWS EC2

I'm trying to use nginx to setup a simple node.js server, I'm running the server in background on port 4000, my nginx config file is server { listen 80; listen [::]:80; server_name 52.53.196....
0
votes
0answers
13 views

sendfile() failed (32: Broken pipe) while sending request to upstream, request: "POST

I'm having issue when uploading file on production using meteor with nginx + passenger. I'm also using meteor files for uploading files. it worked great in development but i can't upload files in ...
0
votes
0answers
7 views

Cannot load site js resources when using non root location with nginx

I'm hosting a web server with nginx. The following nginx configuration file works fine: server { listen 443 ssl; server_name $hostname; ssl_certificate /app/cert.pem; ...
0
votes
0answers
9 views

Can I block requests originating with a certain header on nginx?

I'm serving my website through Amazon ALB, which reaches an nginx server that directs the traffic. We have a requirement that we need to block requests that are originated with the HTTP header: ...
0
votes
1answer
26 views

Django collectstatics only collects admin static files

I have a django app running in docker containers with Nginx. All the static files (as css, js) for my app are being found successfully, with my nginx.conf file configured as it should be. But my ...
-1
votes
0answers
18 views

How do i setup mail server in centos7

I have set up a new lemp server on a digital ocean droplet from scratch. I am running centos 7. I have hosted sites on my droplet and everything from php and MySQL. but i was unable to make php mail ...
0
votes
0answers
12 views

uWSGI stats using uwsgitop and socket showing JSONDecodeError

I am not getting uwsgi stats using uwsgitop and socket. I have put uwsgi configuration for the stats with socket and when I tried to get the stat using the command: uwsgitop /var/www/uwsgi/proj....
0
votes
0answers
8 views

Data quota transferred by nginx

I wanna limit data transferred between client and server by a quota using nginx. Like provinders service Virtualhost doing. I was searched but got nothing. Someone help me this case.
0
votes
0answers
23 views

Using a single nginx for different projects

I have the following setup: web1: django application web2: flask application nginx: web frontend to serve web1 and web2 web1 and web2 are themselves complex projects, with several services (db, ...
2
votes
1answer
26 views

Gitlab Omnibus: how to rewrite URLs with bundled nginx

Current configuration I migrated my GitLab to a new server. As part of the migration, some repositories were reorganized. We have a website that links directly to raw and blob files on GitLab. I'd ...
0
votes
1answer
20 views

Can you use `php artisan serve` with nginx like with nodejs?

The question above is for pure education, not for use in real world. When reading on how to deploy a nodejs app on a VPS, I have found out, that nginx is forwarding all requests to a localhost port, ...
0
votes
0answers
10 views

Nginx bypass cache for specific uri

To bypass cache for specific uri (that contains for example latest or 1.0) I set up following configuration: location ~* ^/api/service/([a-zA-Z0-9.-]+)$ { return 301 $scheme://$http_host$uri/...
0
votes
0answers
13 views

Nginx Pagespeed module not working properly

I'm using the Pagespeed module on Nginx with the configuration of Google's page: pagespeed on; # Needs to exist and be writable by nginx. Use tmpfs for best performance. pagespeed FileCachePath /...
0
votes
0answers
7 views

AWS Beanstalk Letsencrypt

i have a problem with my nginx config. I created a .ebextensions folder and a .config file i try to get my certrificates running an after that add another nginx config file. here is my config ...
0
votes
1answer
12 views

nginx location proxy shows not found

I have a VPS and NGINX on it and I am trying run a flask app and I want address of flask app be something like site.com/flask but location doesnt work for that, it only runs main Address site.com ...
0
votes
0answers
11 views

nginx Rewrite convert issue

I am trying to convert this rewrite rule to nginx: RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^(.*)\.html(.+) [OR] RewriteCond %{...
2
votes
2answers
26 views

How to configure capistrano to deploy puma and nginx on one server and resque on another?

I am preparing capistrano to deploy ruby on rails application to AWS. The application servers will be behind bastian host. I have two servers server1 and server2. I want to deploy and run puma, ...
0
votes
1answer
47 views

HTTP Origin header didn't match request.base_url

I have currently spent a few days trying to solve this issue. As it currently stands whenever I log in to my Rails 5 application on production through Chrome I get this error. I am running rails ...
0
votes
0answers
31 views

Laravel With Docker Cannot Connect To Mongo DB (mongo:27017)

I created docker containers which run with nginx and do have 1 mongodb container, some laravel projects, and 1 nuxt-vue js project. Here what my docker-compose.yml file looks like: version: '2' ...
1
vote
0answers
19 views

Can't livestream with FFmpeg on Nginx?

I am trying to livestream through RTMP on FFmpeg in Nginx. Doing sudo ffmpeg -re -f video4linux2 -i test.mp4 -vcodec libx264 -vprofile baseline -acodec aac -strict -2 -f flv rtmp://localhost/show/...
1
vote
0answers
36 views

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

We have a Nginx listening on ports 80 and 443 and serving our main website. Let's say its name is demosite.com. It is running on AWS EC2 instance, and traffic is coming through an ELB. I need to ...
0
votes
0answers
9 views

Nginx reverse proxy dropping URI

This configuration is supposed to remove "biztech" from the URI before passing the request upstream if I am not mistaken. The upstream server is currently getting /biztech in it's request strings. ...
0
votes
1answer
20 views

How can I use git to deploy to test server?

I have used redhat's open shift few years ago. The way you update the server is by pushing to the git repo. Once you pushed your changes, you can test your app in the browser. I want to implement ...
0
votes
1answer
25 views

nginx-ingress doesn't work with AWS ELB when use aws-load-balancer-backend-protocol: “https”

I use AWS EKS as my k8s control plane, and deployed a 3-node autoscaling group as my work nodes(K8s Nodes.) This autoscaling group sits in my VPC. And I made sure security groups are open at least ...
0
votes
0answers
5 views

Fallback configuration for unknown host when using Nginx and SNI?

Can anyone indicate how I can configure the default host response when my Nginx server gets asked for a site it does not know about? I tried: server { listen 443 default_server; listen [...
-1
votes
2answers
28 views

Kubernetes's Ingress has noteffect on nginx-ingress-controller

I have deployed nginx : kubectl run nginx --image=nginx And I exposed nginx kubectl expose deployment nginx --port 80 --type NodePort And when execute this command kubectl get svc NAME ...