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
1answer
11 views

Pointing a domain to securely connect to an ec2 instance running a python app

Say I have an AWS ec2 instance that is running a python application on a certain port say 8000. Also imagine I have a domain name say www.abcd.com that I own. What does it take to make my website use ...
0
votes
0answers
6 views

Error: request to http://something.localhost/static/locales/de/common.json failed, reason: getaddrinfo ENOTFOUND

when I run my frontend with yarn dev node throws this error when going to http://something.localhost request to http://something.localhost/static/locales/de/common.json failed, reason: getaddrinfo ...
0
votes
1answer
15 views

Why nginx's proxy_pass does not direct to asp.net core app?

I am deploying an angular app with asp.net core 2.2 api to Ubuntu 18.10 using nginx. With the following nginx configuration in the default file I get the client app working ok, but the api app cannot ...
0
votes
0answers
12 views

Encrypted/encoded content in nginx log files

I just looked into the Nginx log file of a website. There strange requests are recorded every millisecond. For example 3.120.25.xxx - - [20/Apr/2019:15:35:06 +0200] "n\x9A\x02(\x88Yl\xDC+\x1Ei\xDD|M?\...
0
votes
0answers
25 views

Gunicorn nginx server works perfectly but after some time shows 502 Bad Gateway

502 Bad Gateway given on some pages not all gunicorn config : import multiprocessing bind ='unix:/tmp/gunicorn.sock' workers = multiprocessing.cpu_count() * 2 + 1 reload = True daemon = True ...
0
votes
0answers
18 views

Laravel giving 502 bad gateway in nginx

I have reloaded my server configuration to match the one provided on Laravel. When I do php --ini I can see my PHP version is 7.0 so I made the alterations to use 7.0. My server config looks like ...
0
votes
0answers
9 views

NGINX - Forward port 80 requests to port 8080

What could be wrong with this NGINX configuration that prevents it from forwarding port 80 requests to port 8080 user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-...
1
vote
1answer
13 views

Nginx redirect if url contain “/?&”

I need help redirect if url only contain "/?&" Example: https://example.com/?& redirect to: https://example.com/ already try with this code but not working. location /?& { return ...
1
vote
1answer
10 views

Convert .htaccess to nginx with QUERY_STRING

Now I have a code like .htaccess as follows: RewriteCond %{QUERY_STRING} ^(.*)&?fbclid=[^&]+&?(.*)$ [NC] RewriteRule ^(.*)$ /$1?%1%2 [R=301,L] RewriteCond %{QUERY_STRING} ^(.*)&?...
1
vote
1answer
21 views

How to get oauth2_proxy running in kubernetes under one domain to redirect back to original domain that required authentication?

I've been setting up a kubernetes cluster and want to protect the dashboard (running at kube.example.com) behind the bitly/oauth2_proxy (running at example.com/oauth2 on image a5huynh/oauth2_proxy:...
0
votes
0answers
8 views

Node js API nginx webserver AWS load balancer

I am currently having two nginx servers and an AWS load balancer in front of them. The static content is served with nginx. Now for the dynamic content to communicate with the database can I use node....
0
votes
0answers
16 views

Gunicorn + nginx - Ignoring EPIPE

I have an nginx-gunicorn-flask setup running on google compute and I keep getting the following from gunicorn: [2019-04-19 20:50:49 +0000] [3345] [DEBUG] POST / [2019-04-19 20:50:49 +0000] [3345] [...
0
votes
0answers
9 views

rtmp relay multiple (dynamic) destinations

I'd like to use the rtmp module to recieve 1 rtmp feed, call my database for all the destinations to forward to, then forward that one feed to multiple destinations. I'm using the on_publish directive ...
0
votes
1answer
31 views

Communicating between client and nodejs server errors in prod

I'm setting up a server in an AWS EC2 ubuntu instance that has a react frontend and a nodejs express server. The two communicate via socket.io. Everything works fine locally but when hosted it logs ...
-1
votes
1answer
19 views

nginx: [emerg] socket() 0.0.0.0:80 failed (13: Permission denied) on Docker

Summing up: It run in my Windows, however not in my Linux Deepin (I'm meeting this world). After install the docker CE and docker compose, I can't run anything web server, apache and nginx. In this ...
0
votes
0answers
11 views

Redirecting from https to http?

Strange problem here. I use FullCalendar to initiate an ajax request to an endpoint on my server. Endpoint is: https://my_website/events/?start=2019-03-31&end=2019-05-12&_=1555698739056 ...
1
vote
0answers
13 views

Nginx ERROR: Bad Request" while reading response header from upstream, client

I have Ubuntu 18.04, Nginx VPN running 4 wordpress sites (https enabled). These sites uses Cloudflare plugin. When I published new posts or purge cloudflare cache by using WordPress plugin it gives ...
0
votes
0answers
13 views

nginx: fallback to try_files when proxy_pass fails requires unusual config

I am using Nginx to server a single page app. Basically we just need to serve the index.html page whenever no matching file is found. The location looks like this and has been working just fine: ...
0
votes
1answer
27 views

Can't get hot reload to work behind nginx in docker

I'm trying to setup a basic Vue app that lives in a docker container using docker compose and Nginx. My problem is that I can't get hot reloading to work. My current setup is as follows: - Using ...
0
votes
0answers
26 views

Serving two websites with the same Nginx on the same ubuntu server redirect to same website

I'm trying to serve two different websites on my Ubuntu 16.04 server. This is the Website1 configuration in /etc/nginx/sites-available/website1.com: server { listen 80; listen [::]:...
0
votes
0answers
13 views

How to increase the max request header in the Loadbalancer(Keepalived) & kubernetes APP Docker Container

I have a K8s Cluster build on v1.8 with HA mode having keepalived & nginx as a LB.I want to increase the max request header to 64MB at the LB Proxy level. Can any one suggest on how to increase ...
0
votes
0answers
10 views

Configuring NGINX to handle large POST request

I am trying to configure nginx to support large POST request payloads effeciently. The payloads (text/json) are of size 5MB Problem: For a POST request with 5MB (json) as request body, Upstream takes ...
0
votes
1answer
19 views

NGINX configuration for gunicorn and prerender.io

I am currently serving my website using Nginx and Gunicorn. In particular, Nginx is serving static files and Gunicorn is serving rest-api. This is my current Nginx configuration: worker_processes 2; ...
0
votes
0answers
13 views

Serve virtuoso opensource behind a nginx proxy

I have a virtuoso-opensource instance on localhost:8890 I have configured a nginx proxy to redirect at localhost/virtuoso location /virtuoso { proxy_pass http://localhost:8890/; ...
0
votes
0answers
6 views

Execute Curl in conf file nginx

Currently for testing i have the following config: split_clients $remote_addr $upstream { 5% appversion2; * appversion1; } upstream appversion1 { # ... } upstream appversion2 { # ... ...
0
votes
0answers
18 views

PhpMyAdmin loads infinitely, won't load at all

I am building a WordPress environment in a google cloud compute engine using the bitnami stack. PhpMyAdmin has been working fine, however now when I enter its address in chrome, it loads infinitely. ...
1
vote
2answers
32 views

Troubles with nginx reverse proxy configuration for serving multiple Django app docker containers

I have troubles with Nginx reverse proxy configuration I have a few docker containers with Django websites on my server and I'm trying to serve them using jwilder/nginx-proxy. What am I doing wrong? ...
0
votes
0answers
32 views

Nginx hanging on audio file request

I'm having the most bizarre issue with nginx. After upgrading from 1.6.3 to 1.12.2 on RHEL 7.2, requests for audio files are just hanging: Connecting to mydomain [...] ... connected. HTTP request ...
0
votes
0answers
46 views

Texts with accented characters being saved as NULL with PHP-FPM and MySQL

I'm building the DevOps infrastructure for a PHP CodeIgniter application. I'm using Kubernetes to setup PHP-FPM, NGINX and MariaDB (MySQL) and all seems to work great except that every time someone ...
0
votes
0answers
19 views

“NoReverseMatch at” error when serving django site in iframe

My live site is running using Python (3.6.7), Django (2, 1, 0, 'final', 0), Nginx(1.14.0 (Ubuntu)) , Gunicorn (19.9.0), and Ubuntu (18.04.2 LTS) . Accessing the site outside of an iframe works as ...
1
vote
1answer
28 views

How to fix “NGNIX 504 Gateway Time-out”

I am setting up a new server which is running a Flask application. I am running gunicorn to run my flask application(app.py) which is stored in directory "/home/abc/application" My gunicorn.conf file ...
0
votes
0answers
16 views

Diagnosing apparent multiple gem versions used in Rails app

I have a Rails (v2.5.3) app running on a Puma server that uses a custom Gem (link_engine). I am running into a problem where it would appear multiple versions of the Gem are running on the same app. ...
0
votes
1answer
9 views

502 Bad gateway - PHP 7, Nginx, Centos

I am trying to configure CentOS 7.3, Nginx and PHP 7.3, but I am getting: 502 Bad Gateway nginx/1.10.3 This is site.com.conf: server { listen 80; server_name server IP; root /var/www/site.com/...
-2
votes
2answers
27 views

extension=php_intl.dll in my linux centos doesn't exists

I have a problem, I just want to uncomment extension=php_intl.dll in my php.ini file but that extension doesn't exist, I'm using Centos with Nginx configuration.
1
vote
1answer
18 views

Getting rerouted to Welcome to nginx each time

Cannot figure out why nginx continues to redirect to the Welcome to nginx page. I am trying to install and run an open source app (question2 answer). Just trying to get it to run locally in my VM ...
0
votes
0answers
22 views

Why does nginx re-define event handler?

I'm trying to understand how nginx handles events and had a specific question on why nginx redefines the event handler. Findings: Nginx event loop starts from ngx_epoll_process_events() @ src/event/...
0
votes
0answers
6 views

nginx auth_request with cookie

Probably a duplicate of this question but it doesn't have an answer, and I tried the suggestion there and was unable to make it work. I need to authorize a every request before proxying it, and I'm ...
0
votes
0answers
12 views

Rewrite Codes From htaccess to Nginx

I can't convert below rewrite rules from htaccess to nginx RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond $1 !^(css|js|images|inc|lang) RewriteRule ^anasayfa$ index.php [L] ...
0
votes
1answer
15 views

How to redirect a specific url to a different domain (Nginx)

I want to redirect https://example.com/wp-json/wp/v2/ To https://anotherDomain.com/wp-json/wp/v2/ I tried rewrite ^(/wp-json/wp/v2/.*) $scheme://anotherDomain.com/wp-json/wp/v2/ break; And it ...
-2
votes
0answers
26 views

Is it possible to improve 400 requests per second (nginx+laravel+percona)? [on hold]

Trouble is 400 req/sec via (nginx+laravel+percona). I want 2000 req/sec on the same hardware, but i dont know how. It`s pet project and I want to make project similar highload. Full architecture ...
0
votes
0answers
14 views

PhpWord - TemplateProcessor: error copy template

I have developed a Laravel app that read a .docx template, populate and save it in pdf format. On my pc and some server it works greatly, but with a new Debian 9 VPS I have a strange error. When I ...
0
votes
0answers
11 views

Nginx return 404 after 60s execution

I'm new with Nginx. I have an ajax call to API endpoint. Sometimes executing this request taking a long time(more then 60s). In this case nginx returning 404 error, but it is working fine with Apache....
0
votes
1answer
18 views

How to properly set up multiple sites with NGINX?

I'm currently setting up a new site on an existing server. Currently I have a file for both sites old-site.com and new-site.com along with the default in the /etc/nginx/sites-available directory. Each ...
0
votes
0answers
20 views

WebSocket connection to 'wss://io/?EIO=3&transport=websocket' failed: Error during WebSocket handshake: Unexpected response code: 404

I am using this code in my react component for socket connection. var socket = io(Config.SOCKET_URL, { transports: ['websocket'] }); socket.on('connect', function(){ console.log("socket connected"); }...
0
votes
1answer
12 views

nginx cache prematurely emptying

We have a legacy application that is fairly wobbly and until the people responsible can make it behave better I'm trying to improve its reliability by sticking up an nginx cache in front of it. ...
1
vote
0answers
10 views

Internal VHost Naming Convention for Mac LAN

I'm looking for a way to name vhost test/production internal websites on my workstation. I have around 10 internal websites that I want to access on both internal computers and mobile devices. Back ...
0
votes
0answers
23 views

PHP Nginx Url Parameters Without Name and Question Mark

I've been trying to create a php api that accepts requests in the following formant: POST localhost/HW3/api.php/register GET localhost/HW3/api.php/users This means that in my api.php file I have the ...
1
vote
0answers
20 views

Nginx Setting a Context Path To Resources When Load Balancing

I am new to nginx and probably I do not know how to ask this question. I am proxy passing https://nginx.org/ with the following configuration. events { } http { include mime.types; server {...
0
votes
0answers
13 views

How can I stop bots from a url from being able to access my site? (Using Nginx)

I'm getting visits from a bot at something like crawl.unwanted.com and would like to stop all traffic to my nginx site from 'unwanted.com`. Is there a way in nginx to block access by url or only by ...
0
votes
0answers
19 views

How to enable tls1.3 in nginx?

I am setting up nginx in the below configured server NAME="Red Hat Enterprise Linux Server" VERSION="7.6 (Maipo)" ID="rhel" ID_LIKE="fedora" VARIANT="Server" VARIANT_ID="server" VERSION_ID="7.6" ...

http://mssss.yulina-kosm.ru