Questions tagged [nginx-config]

2020 questions
0
votes
1 answer

Nginx docker - basic nginx.conf file to accept HTTPS

I am spinning up a dev environment for an application using docker/docker-compose. I am attempting to set up the app to accept HTTPS protocol (for dev a self-signed cert using openssl is sufficient) but am having issues. My docker-compose file (note…
Mason Edmison
  • 594
  • 3
  • 16
0
votes
0 answers

AWS ec2 Nginx + Django server easily gets to 100% CPU utilisation without much traffic

Hi I am using AWS EC2 instance (c5.18xlarge (72vcpu and 144 Gib ram)) with Nginx + Django and postgresql. The problem is it gets to 100% CPU utilisation in 400-500 concurrent users and slows down. Here are my…
Prashant Pandey
  • 221
  • 3
  • 16
0
votes
0 answers

Ngnix: Multiple Websites Using a Shared IP on a Server with Multiple IP Adress

I am deploying multiple websites to an Ubuntu server equipped with Nginx. I also use the proxy_pass feature to pass the traffic to the service. The problem is whichever websites is set on Nginx first, all incoming traffics are rerouted to. I created…
Amir H. Bagheri
  • 1,416
  • 1
  • 9
  • 17
0
votes
0 answers

How to make subrequests on a single route nginx

I have an Nginx reverse proxy listening on port 80 and a lot of services running over other ports or subpaths in our scenario. The outside requests are proxied to the right service / API / server based on the requested route. Like this: Some…
Diego Rafael Souza
  • 5,241
  • 3
  • 23
  • 62
0
votes
1 answer

configure nginx for it to support file system

I am inside /root directory and I have a folder inside it called testfolder. Inside that folder I have a bunch of folders and subfolders which I want to host on the nginx server. I am running the following command to start my Nginx server: docker…
Demon
  • 1
  • 1
0
votes
1 answer

Nginx specify regex for searching in file names

How can I specify in my conf file so that given request: /find/{xyz} nginx would search for and serve file with name: some_arbitrary_prefix.{xyz}.html where some_arbitrary_prefix might be any random string before dot? EDIT: I don't understand, why…
Twice_Twice
  • 527
  • 4
  • 16
0
votes
1 answer

Nginx resolves only base URL

I'm new in Nginx. What I'm trying to do is to pair it with my NodeJS backend server. My Nginx resolves successfully only mydomain.com but not mydomain.com/some_path. Here I try to access mydomain.com And here mydomain.com/metadata This is my Nginx…
spatak
  • 1,039
  • 1
  • 14
  • 25
0
votes
1 answer

NGINX Digest, limit_except GET, but allow localhost

I am trying to configure Digest Auth in nginx, I am using the unoffical module for that, NGINX Digest module, and for the most part I can get it to work just fine, I am able to lock down an endpoint, unless it's a GET, here is my location…
nagates
  • 620
  • 13
  • 40
0
votes
0 answers

NGINX URL rewrite error even when resource is correctly served

I am using NGINX version 1.18.0 as a reverse proxy server. This is how the config look: location /test/{ proxy_pass http://backend-server.net:7886/; rewrite test/$ /index.htm break; } when…
OpenStack
  • 5,048
  • 9
  • 34
  • 69
0
votes
1 answer

Proper Nginx regex for redirection of URLs with double hyphen

This is my first post ever. Hopefully, I'll be able to explain my problem thouroughly. I have an Nginx config that redirects my.domain.com/avocado to my.domain.com/avocado/ (with a slash in the end). This also redirect subpaths (end with a slash)…
0
votes
1 answer

Access to nginx stream proxy is not logged in access_log file

Thanks for checking my question. I'm trying to log user access from browser, into access_log file which is not working now. My system : [User]-[TCP proxy]-[webserver] nginx/1.6 in AWS EC2 nginx configuration : load_module…
0
votes
1 answer

NGINX how to redirect all traffic from a port to a folder

I have experience with other web servers, but I am migrating to Nginx and I run into this problem. On a computer I have several domains hosted (domain1.com.ar, domain2.net, domain3.xyz). I need all traffic to a certain port to go to a certain…
0
votes
1 answer

Nginx syslog post request

Now my nginx logs save on the file. But it's possible send logs to custom url (http://myapi.com/save-logs) ? I need save all my nginx logs on my database. Currently my config file looks like this: user www-data; worker_processes 1; pid…
Andreas Hunter
  • 4,504
  • 11
  • 65
  • 125
0
votes
0 answers

node and react app with nginx connectivity issue

i am trying to setup a node + react app for local develpoment environment using docker + nginx nginx is running on 3002 for route /api strip off the /api and redirect to service api i.e. the node app redirect other routes to service client i.e.…
keemahs
  • 780
  • 11
  • 14
0
votes
1 answer

How to configure https nginx configuration for multiple running port in ubuntu server

Facing a unique type of issue for hosting multiple port (5000, 5001) in ubuntu server. I am using Nginx to configure two subdomains in the directory "/etc/nginx/site-availabe" and I delink default configuration. but the main issue is when listen to…