Questions tagged [nginx]

nginx is an open-source Web server and a reverse proxy for HTTP, SMTP, POP3 and IMAP protocols, aimed at high performance and low memory usage.

Filter by
Sorted by
Tagged with
1 vote
0 answers
19 views

Nginx config failed

Can someone help me with this error I have. (40: Too many levels of symbolic links) in /etc/nginx/nginx.conf:60 nginx: configuration file /etc/nginx/nginx.conf test failed I make 1- nano /etc/nginx/...
user avatar
0 votes
0 answers
22 views

Add IP addresses using lineinfile

I have a container.yml file, and I need to add a lineinfile task to add the IP addresses of three hosts. Ex: 101.101.101.10 k1 101.101.101.11 k2 101.101.101.12 k3 This is how I went on ...
user avatar
  • 1
0 votes
0 answers
7 views

nginx webcam streaming listen only audio not cam

I have implemented the recommended steps as have been described to have live streaming from nginx web server but at the end I listen only the audio but not webcam. The instructions are too simple to ...
user avatar
0 votes
1 answer
27 views

Serve files over SSL & Https using a docker container

docker-compose.yaml version: '3' services: #PHP Service app: build: context: . dockerfile: Dockerfile image: digitalocean.com/php container_name: app restart: unless-...
user avatar
  • 182
0 votes
0 answers
28 views

How to setup local server on Linux for testing Dokku?

I'm new to Dokku and nginx server and I'm trying to set up server locally on Linux Ubuntu 20.04 for testing purpose instead of using one such as Hetzner (Cloud) or DigitalOcean (which already contains ...
user avatar
  • 135
-1 votes
1 answer
48 views

Return a static page and set status code

My disk has /var/www/mywebsite/hello.html Whenever a visitor visits http://mywebsite.com/hello.html, instead of 200 I want the status code to be 123. server { ... location /hello.html { ...
user avatar
  • 119
0 votes
0 answers
43 views

Apt errors when trying to uninstall/purge nginx

I have a Debian 10 vm that I was originally trying to install nginx on for testing, which appears to have partially install, and now I'm trying to remove /purge it from the server in order to use ...
user avatar
0 votes
0 answers
27 views

What does default -> /etc/nginx/sites-available/default mean?

I am looking at nginx/sites-enabled folder lrwxrwxrwx 1 root root 34 Mar 31 11:52 default -> /etc/nginx/sites-available/default What does default-? denote?
user avatar
0 votes
1 answer
58 views

Install gitlab in one VM with docker-compose having a proxy adding https in another vm

I have a server with several virtual machines and one of those is my Proxy that direct the right domains to the right VM on the right port. I used the standard docker-compose file to create gitlab-ce ...
user avatar
  • 24.7k
1 vote
1 answer
50 views

Processing apache2.deb error "trying to overwrite /var/www/html" which is also in package nginx-common

Any time I try to run sudo apt install <package> I get the following output Reading package lists... Done Building dependency tree Reading state information... Done You might want to run '...
user avatar
0 votes
1 answer
15 views

nginx: disable access to specific url (file) for all domains

I want to block access for a specific php file for all domains. I know that I can use location = /xmlrpc.php { deny all; access_log off; log_not_found off; return 444; } in the server block, for ...
user avatar
0 votes
0 answers
15 views

nginx is loading wrong website when service isn´t working

I have a webserver with two services and an nginx running. Each of the services should be accessible by a URL. This should be done by a configuration file per service: jenkins.conf server { listen ...
user avatar
  • 163
0 votes
1 answer
37 views

analyse webserver execution time

I have 2 VMs which are almost the same, except for hostname and things that shouldn't matter (as far as I know). On these VMs I run nginx/1.14.2 as proxy with an Apache/2.4.38 webserver behind it ...
user avatar
1 vote
1 answer
149 views

how to clear the docker nginx file cache

I have a nginx running in docker as a static server. When I update the server side folder template.xlsx file. the download still return the old file, I am sure I have replace the static template.xlsx ...
user avatar
  • 351
0 votes
0 answers
13 views

manual compile lua into nginx on debian 11

On Debian 11 by default Nginx is compiled with `--with-ld-opt='-Wl,-z,relro -Wl,-z,now -fPIC' For a manual compile with mod_http_lua I have to add --with-ld-opt=-Wl,-rpath,/usr/local/LuaJIT/lib What ...
user avatar
  • 11
0 votes
0 answers
35 views

Suggestions for using Nginx web server on Ubuntu 20.04

We recently switched to Ubuntu 20.04 from Windows, and I am here to seek suggestions and recommendations for my use case. I have installed Nginx web server on my Ubuntu VM (my_server_name) and we ...
user avatar
  • 109
0 votes
0 answers
29 views

what is the correct way to handle unexpected traffic

my set up Ubuntu 20.04.3 LTS nginx version: nginx/1.20.2 I was looking to use nginx as a reverse proxy for incoming ssl traffic. nginx has no certs, it is using ssl_preread to get the server name and ...
user avatar
1 vote
1 answer
603 views

How to resolve (40: Too many levels of symbolic links) on Ubuntu 10.04 AWS EC2 Instance

In my EC2 Ubuntu 18.04 instance, I have created an django.conf file at /etc/nginx/sites-available The .conf file looks like so : server { listen 80; server_name *[url_name]*; ...
user avatar
0 votes
0 answers
26 views

nginx proxy, hide backend ssl from client browser when using https in proxy_pass

I have a following situation: I have an nginx serving https for serverA.example.tld vhost with certificate issued for serverA.example.tld CN. Nginx is a proxy server to https://serverB. I have a ...
user avatar
  • 1,730
0 votes
0 answers
25 views

Blog's URLs not lining up with Debian Wordpress config

I'm having trouble with my current Debian Wordpress configuration. Wordpress has no issue reaching the correct the wp-content directory locally, but the URLs to myblog.com/wp-content/../../ are ...
user avatar
  • 1
2 votes
0 answers
108 views

nginx: SSL (default) endpoint with multiple certificates

I'm using nginx as SSL terminated TCP endpoint for multiple domains (let's say 100). There's no need to treat incoming connections differently (they all get proxy'ed to the same backend), however for ...
user avatar
  • 21
0 votes
0 answers
10 views

Embedding a resource to a web to be accessible from outside the local network (Nginx)

I am using a RPi for a petcam. The camera is accessible at a certain IP:port in the local network, and somewhere in the local network I have a web server running with nginx that embeds this video. All ...
user avatar
  • 101
1 vote
0 answers
54 views

how to make brew output log in terminal

I am using this command to start nginx on macOS (M1 chip): brew services nginx start the output tell me the service start success, but when I using this commnad to check the services and check the ...
user avatar
  • 351
0 votes
0 answers
24 views

why the nginx did not output log in mac(Apple Sillicon chip)

I am config the nginx in mac os like this: #user nobody; worker_processes 1; error_log /Library/Logs/nginx/error.log; events { worker_connections 1024; } http { include mime.types;...
user avatar
  • 351
1 vote
1 answer
104 views

Nginx Caching SSL Certificate?

Previously(successfully), I had updated my SSL certificates in the same fashion as I tried to do this time. Like 2 files I have, domain.chained.crt and domain.key. Then ran sudo service nginx restart, ...
user avatar
  • 111
0 votes
1 answer
561 views

404 Not Found - Nginx - docker compose

It's a pretty standard docker container/setup index.php is a standard call to phpinfo(); only docker compose fails to serve this file in a browser? Dockerfile FROM php:7.4-fpm # Copy composer.lock ...
user avatar
  • 182
0 votes
0 answers
34 views

why could access url using curl but faild in the google chrome broswer

I am config the localhost url in the nginx on macOS like this: ➜ nginx git:(master) cat conf.d/reddwarf-admin.conf server { listen 8083; server_name admin.reddwarf.com; ...
user avatar
  • 351
0 votes
0 answers
91 views

Nginx reverse proxy for nested URL

I am building nginx https reverse proxy to open remote URL which is http. Initial tests are looking good but I am stuck in issue I have many remote URL's like http://example.com, http://example1.com, ...
user avatar
0 votes
0 answers
29 views

htpasswd on site with multiple container

I'm writing an http web interface to collect in a single point multiple GUI provides by 3 docker instances. Structure is basically ├── home page ==> running on localhost │   ├── gui 1 ==> hosted ...
user avatar
0 votes
1 answer
729 views

What can nginx error mean: host not found in upstream "my.domain.com" in /etc/nginx/sites-enabled/mywebsite.conf

Upon a debian upgrade, a previously working configuration stopped working. The error I see with systemctl status nginx.service is host not found in upstream "sync.mydomain.net": Nov 20 01:05:...
user avatar
0 votes
2 answers
230 views

nginx proxy pass only works for root location

I am running node js apps inside a vps. This is my nginx configuration: server { listen 80; server_name xxx.xxx.xxx.xxx; #access_log logs/ecommerce.access.log main; ...
user avatar
  • 237
0 votes
0 answers
59 views

cant run react nginx on port 443 and 80 both are in used

I have react, nodejs app and dockerize them. frontend running with Nginx on port 80 and 443 on my local docker-machine. when I run the docker-compose command on my VPS centos it throws an error that ...
user avatar
-1 votes
1 answer
75 views

How to install latest version of NGINX on Debian? [closed]

Question: How do I install the latest version of NGINX on Debian?
user avatar
0 votes
1 answer
154 views

dpkg errors when trying to install nginx

Trying to install nginx: First: sudo curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash - Result: Looks everything okay: > ## Run `sudo apt-get install -y nodejs` to install Node.js ...
user avatar
  • 101
0 votes
1 answer
38 views

Install Missing man (5) Page for nginx

How can I install the man 5 page for nginx.conf? It seems that this hasn't been made available when I installed the webserver through my package manager apt (apt install nginx-full). Operating System: ...
user avatar
0 votes
0 answers
25 views

Monitor multiple NGINX server blocks (virtual hosts) connections on one server

I have a LEMP server with 3 virtual host configured, how can i monitor connection status (connection rate, active connections, etc) of each virtual hosts? As i know stub status module is global not ...
user avatar
  • 185
1 vote
1 answer
194 views

install a specific version of NGinx on debian bullseye

I am building a docker container with the following Dockerfile: FROM debian:bullseye RUN apt -y update && echo 'deb https://nginx.org/packages/debian/ bullseye nginx' >> /etc/apt/sources....
user avatar
  • 125
0 votes
1 answer
315 views

Default ssl_dhparam file used by nginx

Where is the default dhparam file used by the nginx web server after a fresh install of Debian 11? Let's say I do a fresh install of nginx on Debian 11: apt install nginx And I do not have any ...
user avatar
0 votes
1 answer
31 views

Default ssl_dhparam file used by nginx in RHEL/CentOS

Where is the default dhparam file used by the nginx web server after a fresh install of CentOS 8? Let's say I do a fresh install of nginx on CentOS 8: yum install nginx And I do not have any ...
user avatar
0 votes
0 answers
13 views

I want to fake a custom curl request to my AWS CDN

I have a CDN working on prod, I have an nginx reverse proxy set up behind my CDN, all I want to do it to fake a request to my CDN, pretending it is from www.mydomain.com so I can see if my CDN talks ...
user avatar
  • 1
0 votes
0 answers
109 views

Polkitd uses too much percent of CPU

Im using ispmanager panel on centos and noticed that polkitd uses almost 100% of the CPU, what could it be? Nginx, php-fpm, MySQL with direct access htop:
user avatar
1 vote
0 answers
67 views

Howto enable Nginx memory caching with mmap()

I am a newbie nginx admin. I used nginx-quic to get features like HTTP/3 over QUIC. However, HTTP/3 perfoms 2x to 3x slower than HTTP/2, so I am trying to optimize the experimental server. (The test ...
user avatar
  • 133
0 votes
1 answer
517 views

nginx timeout when started via systemd unit

My nginx starts well with a /usr/sbin/nginx -c /etc/nginx/nginx.conf command line, but when I try to start it with: # systemctl start nginx then it hangs until timed out. My systemd unit looks like ...
user avatar
  • 133
0 votes
0 answers
28 views

Allowing CORS for api.glossgenius.com

I need assistance, i am unsure how to make the API response from "api.glossgenius.com" work properly to get elements of the site working. https://studio21md.com/portfolio Cross-Origin ...
user avatar
0 votes
1 answer
155 views

php7.4-fpm doesn't work with nginx/1.21.3

I have an experimental setup of manually compiled nginx/1.21.3 w http3 + quic. I have also successfully compiled an experimental curl w http3 implementation: root@domac:~# curl --version curl 7.80.0-...
user avatar
  • 133
0 votes
0 answers
43 views

Nginx in UDP load balancing continue to send to an unreachable upstream server

I use Nginx to load balance traffic coming from udp syslog sources to logstash Configuration : user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; ...
user avatar
0 votes
1 answer
52 views

Nextcloud container can't be accessed

I'm trying to create a nextcloud setup in a debian 10 VM with https and mysql and docker-compose but when I acces https://cloud.example.org my browser says it can't be reached. If I acces the link ...
user avatar
  • 15
0 votes
0 answers
33 views

nginx deny access to subdirectories

Consider the following setup. I have configured a webserver using nginx that has enabled the directory listing for the directory /storage. In the web browser, it can be accessed via /browse. However, ...
user avatar
  • 430
1 vote
1 answer
115 views

Selinux: type=anom_abend for php-fpm, Error 502 while accessing the application

Hi I am using nginx server which is hosting a web application in RHEL OS with selinux in enforcing mode. On accessing the application I am getting the 502 bad gateway error and on checking the audit ...
user avatar
0 votes
1 answer
113 views

NGINX - What happens if client is slower than upstream server with proxy_pass?

with proxy_pass - how does NGINX handle situation when the client is slower connection than the upstream server, say the upstream server is pushing the content to the nginx server at 12MBPS, but the ...
user avatar

1
2 3 4 5
14