Questions tagged [nginx]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

Apache ProxyPass adding Port only on base URL

This is getting frustrating to say the least haha. I have setup a proxypass and proxypassreverse in apache under virtual host 443 to proxy to nginx running in a container on port 8443. This is all I ...
0
votes
0answers
28 views

Upgrading websocket using Nginx and Daphne. Only works if I put port number in address bar

To start, I am not well versed in server proxies but I can get along a bit. Here is the scenario. I am running an app within a docker container, using django, nginx, daphne, redis on an apache server. ...
0
votes
3answers
34 views

Nginx - How do I force all server domains and server blocks to use non-www redirect?

There are many good results out there on how to redirect "www" to "non-www" and visa versa. The most recommended solution is this: server { listen 80; server_name www....
0
votes
1answer
23 views

Nginx: rewrite file from directory to root

I have nginx server running over linux environment, and it is handling the domains www.example1.com and www.example2.com. each domain has its own sitemap, so I need the correct sitemap loaded for each ...
2
votes
3answers
278 views

nginx denies all requests to a virtual host . requests are coming from a nginx tcp forwarder

Summary - need to add whitelist ips to the mysite1.example.com. now when they are added it doesn't work as every request is coming as originated from the load balancer server. Im working on a setup ...
3
votes
0answers
42 views

Nginx how to disable per ip rate limiting

I have a API which connect through private ip of the EC2 server and execute sequence of callbacks. I want disable per ip rate limiting on this scenario. I have tried this method in Nginx documentation....
0
votes
0answers
26 views

NGINX Is redirecting to localhost:3000

I'm using ruby on rails in a docker container running my website https://redrebelgames.com on port 3000. I'm trying to setup NGINX to redirect http:// traffic to https:// and redirect port 80 to port ...
0
votes
0answers
22 views

nginx: Use of proxy_set_header results in failed upstream connections

I have a very basic nginx reverse proxy setup for openstreetmaps: worker_processes 1; error_log logs/error.log notice; pid logs/nginx.pid; events { worker_connections 1024; } http { ...
1
vote
1answer
30 views

Nginx location matching with regex year/month/day/*

I have some old url pattern to redirect to new location in nginx. A typical clean url looks like example.com/2021/06/13/78676.html?.. Im roughly trying to match number of digit in each block like: ...
0
votes
0answers
57 views

ipv4 and ipv6 of server not redirecting to domain with SSL warning [closed]

I use nginx web with ipv4 and ipv6 with a single domain on a server. The following is how it is working currently when I enter each of them in a web browser: http://ipv4 ==> redirects to https://...
0
votes
0answers
16 views

NGINX Disable WebP [closed]

I am using NGINX with the image_filter module. Sometimes the images are converted from JPEG to WebP. How do I disable webp entirely or prevent this from ocurring?
0
votes
1answer
22 views

Cant start wsgi through Nginx

At first: When i started nginx i see errors in log: unix:/root/project/flask_paramiko.sock failed (13: Permission denied) while connecting to upstream uwsgi.ini: [uwsgi] #chdir = /root/project ...
0
votes
0answers
31 views

Nginx listening on 80 after removing server block

I am trying to restrict http access to my webapp. It should only be accessed using https. my nginx conf file looks like this: server { listen 443 ssl; ssl_certificate /home/...
0
votes
1answer
26 views

How to stop OS/daemon information leakage in dovecot (server_tokens)?

How do I stop dovecot from telling its clients what flavour of linux I'm running and that it's a dovecot imap server? If I connect to my smtp server, I see the following snippet user@host:~$ openssl ...
0
votes
1answer
33 views

nginx: Location block for all URIs without extension

I know how to process URIs that match a certain pattern. Example The following configuration will add an Cache-Control http-header to all files ending with .css or .js: location ~* \.(css|js)$ { ...
0
votes
1answer
27 views

Nginx conflicting server name for reverse proxy

I've created a reverse proxy config for my subdomain but when I ran nginx -t it gave warn [warn] conflicting server name "img.somedomain.com" on 0.0.0.0:80, ignored proxy_cache_path /root/...
0
votes
0answers
15 views

Host app on sub directory of main app

So I have my main site that's built with react and express. Now I want to add a blog part to my site that's built with next.js. However I don't want to host it on something like blog.example.com I ...
0
votes
0answers
29 views

No static files being served behind Nginx proxy manager

I managed to get a Django project fully op and running with Nginx,Gunicorn and Docker. If I run the container it's fully working when I access it via: http://containername.localhost:port localhost:...
0
votes
0answers
21 views

nGinx Rate Limit Double-Check

So... I have a need where I need to rate limit bots, and specific IP addresses. I am wondering if this is what I need to do before implementing in a live production environment... map $...
0
votes
1answer
29 views

How to make Jenkins agents port available with an Ingress controller on Kubernetes?

I'm trying to setup Jenkins in a Digital Ocean Kubernetes cluster. I'm using a NGINX ingress controller as I want to access my server from a subdomain (jenkins.example.com). Everything is working fine ...
0
votes
0answers
30 views

why am I getting error for nginx?

I have installed a new ubuntu and new nginx. However, I am created a nginx.conf file inside my website project folder and created a sym link as below ln -s <project>/nginx.conf /etc/nginx/site-...
0
votes
0answers
13 views

NGINX - subdomain using https to another internal IP:PORT and hide new path

I have spent more than week looking around this site to solve the following two items. Background: subdomains are setup in GoDaddy DNS to forward to our public IP. Internally DNS has forward and ...
0
votes
0answers
14 views

Running NodeJS on a CentOS7 nginx/Apache server

I manage an existing ecommerce site that lives on an nginx/apache server, and the host is also the provider of the ecommerce system we're using. I'd like to turn the ecommerce system into a headless ...
0
votes
0answers
21 views

Nginx rewrite dymamic part of url [closed]

I have following requests: http://localhost/country1/abc/v1/... http://localhost/country2/abc/v1/... http://localhost/country3/abc/v1/... ... How do I write NGINX rewrite rule to cut /country*/ from ...
0
votes
0answers
5 views

Load balancing RTMP servers on autoscaling mode

I've got a question in my server flow design. That I have Nginx-RTMP server(X.X.X.1) running on EC2 which supports N no of streams together. Now I put it on autoscale and launch a new machine(X.X.X.2) ...
1
vote
1answer
34 views

Why does this regexp match, but not location / in NGINX

I basically have those two locations in NGINX (Return codes added for debugging purpose) location / { return 401; } location ~ "^/(assets|((de|en|es|fr|it|zh|ru)-[a-z]{3}))" { ...
1
vote
0answers
29 views

nginx slows down my rest-service by 5x

I have a simple REST service set up that natively (standalone executable) handles 135k/rps. Service is running on localhost:8181 autocannon benchmark running from separate machine yields: ┌───────────┬...
0
votes
0answers
39 views

Renew Letsencrypt certificate on Amazon AWS Linux AMI with nginx

I have production and test instances on AWS Linux AMI. On the test instance I am unable to renew letsencrypt certificate with certbot because it requires ACME2 and I am still using old certbot to ...
-5
votes
0answers
29 views

But why is stackoverflow the only website of all iver the world [closed]

Where we can have an answer within 5 minutes ? Even codeproject does not offer this. Congratulations I live you stackexchange
0
votes
1answer
33 views

Constant timeouts when conecting from LAN to services behind a reverse proxy

years after my first home server died, i've decided to have one again. This time for the sake of learning and having more flexibility i'm doing it with docker containers. The thing is, i've set up a ...
0
votes
1answer
30 views

Nginx configuration to make open ports look like they're closed

I have ports 443 and 80 open on my firewall and pointing to my Nginx reverse-proxy server. I have Nginx setup so that if anyone accesses ports 443 or 80 using my IP address Nginx returns a 444 error. ...
1
vote
1answer
70 views

Installing Nginx-extras module, downgrade nginx-1.20 to 1.14 on Debian 10

I've installed Nginx 1.20 on Debian 10 following this : Nginx on Debian I need to install Nginx-extras, but after sudo apt-get install -y nginx-extras when I check Nginx -v it returns 1.14.2 ... (In ...
0
votes
1answer
32 views

nginx serve static files AND reverse proxy

I want the browser to be in constant communication (websocket) with my backend servers as they are constantly receiving data. But I also want static files to be served to them by nginx. In other words,...
-5
votes
0answers
36 views

Localhost abrindo tela de boas vindas do nginx. Mas não há nginx instalado na máquina

Tenho um notebook de 2012 (antigo) que está com o mint instalado, neste o apache 2.4.41. Não instalei o nginx. Depois de apanhar algumas vezes para configurar o hostname, editando, com "sucesso&...
0
votes
0answers
12 views

Nginx Reverse Proxy Times Out when accessing via mobile data

I have a web server running behind an Nginx reverse proxy setup. The web app is accessible just fine from Wi-Fi (internet fibre) connections but times out if it's being accessed via mobile data. The ...
0
votes
1answer
15 views

NGINX proxy_pass to dynamic port

I'm hoping someone can help me with this. I'm looking to proxy pass something like this: http://storage.domainname.com:port to this: http://192.168.12.10:port My problem is that the port is dynamic, ...
0
votes
0answers
27 views

nginx set variable value to command output

I need to set a variable value to commmand output result on nginx is it possible? Something like this location /uploads { set $test $(ls -la /home/admin | wc -l) } This is a command example so this ...
0
votes
1answer
20 views

How to render specific content with (location/rewrite/proxy) but not change the origin URL in Nginx?

I know something about Nginx's location, rewrite directives. I have a file named say_hi.html, its path: /opt/app, its content: # file name: /opt/app/say_hi.html Hi, there! and I want to open this ...
0
votes
2answers
71 views

Nginx location exclude specific folder

i am trying to include all js|css in nginx location except specific directory Currently i have this location ~* \.(js|css)$ { expires 7h; add_header Cache-Control "public"; } I have ...
0
votes
0answers
18 views

nginx - direct multiple subdomain to directory of subdomain name

I would like to direct multiple (but specific) subdomains in a single server block to a path of the same name, using proxy_pass: api.example.com to www.example.com/api webhook.example.com to www....
0
votes
0answers
47 views

https://www.example.com and https://example.com should resolve to the same URL, but currently do not

I have been trying to sort this issue but without a success. I will share all the info that I have and if there is anything missing please let me know. Our web developer found challenges to launch the ...
0
votes
1answer
25 views

Nginx not captures regex variables

Trying to capture URLs like http://mydomain/1234567890123 (13 digits) location ~ ^/([\d]{13})$ { proxy_pass http://127.0.0.1:4000/product?id=$1; } $1 variable arriving empty, ...
0
votes
0answers
32 views

PHP+Nginx response time too much

I'm running a php-fpm server behind an nginx reverse proxy which is simply serving phpinfo to benchmark the response time. The response time (using postman) for the phpinfo page is around 150ms which ...
0
votes
1answer
44 views

Kong DNS resolution failed without default gateway

I am attempting to send a request to endpoint /v1/resource, and I am getting the following error: 2021/06/02 23:17:17 [crit] 30#0: *2963 connect() failed (101: Network unreachable), context: ngx.timer,...
0
votes
0answers
17 views

How to add queues to rabbitmq + redis + celery?

I am new to backend development and I will try to explain my situation: Stack: Flask (nginx, uwsgi) Celery Redis (BackEnd) RabbitMQ (Broker) MongoDB (stores a lot of data) What do I want to ...
0
votes
1answer
14 views

Does nginx as reverse proxy use buffers for every client request?

We have few requests that takes http headers size more than the default accepted size in our tomcat application i.e., maxHttpHeaderSize = 8192 (https://tomcat.apache.org/tomcat-8.0-doc/config/http....
1
vote
0answers
26 views

Transfer Compression with Cloudfront and nginx SSI

Is there any way to enable GZIP / Brotli compression on Cloudfront if the origin is a nginx server with SSI (Server Side Includes) enabled? The issue seems that nginx SSI drops the Content-Length ...
2
votes
1answer
27 views

nginx redirect params to php index in subfolder?

I have a server block to execute PHP files: server { index index.php location / { try_files $uri $uri/ /index.php; } location ~ \.php$ { fastcgi_pass unix:/run/php/php7.3-fpm.sock; ...
3
votes
0answers
25 views

How would you force a status code from an nginx proxy at all times, including nginx timeout?

We have an NGINX proxy and we need the proxy to override the origin response and ALWAYS send 204. We also need to have timeouts setup and still respond 204 status code. What am I doing wrong? ...
0
votes
2answers
25 views

Nginx access_log off - apply to a single URL without stopping it returning a response

I'm trying to switch off access_log for a single url in a laravel application. The url is /ignore/this/url I need it to simply - for this one URL - NOT log information in the access_log, but I do want ...

1
2 3 4 5
304