Questions tagged [nginx]

Questions relating to Nginx, an open source Web Server and reverse proxy server.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Forward different external IP addresses to different localhost:ports on a local machine

We are spinning a nodejs server that emulates a machine's API on Ubuntu Linux. The objective is to be able to connect to i.e. 10.0.0.5:4028 and this should connect to localhost:4020, 10.0.0.6:4028 ...
user avatar
0 votes
0 answers
17 views

Running docker app on my own domain

I have a VPS Linux (Ubuntu) server with specific IP and I would like to run my app on my own domain http://my_domain.com . I have built a docker container and it works well on localhost 0.0.0.0:80 , ...
user avatar
0 votes
0 answers
20 views

Certbot - Failed authorization procedure

I want to generate a Let's Encrypt certificate for my server, so that I can renew it automatically. I ran the command certbot --nginx -d testpbx.info.eu and got the following error. certbot --nginx -d ...
user avatar
0 votes
0 answers
16 views

ubuntu ngnix aws lightsail server cant able to access via putty

After changing the firewall settings in the server. I cant able to access via putty. I tried to install ssl certificate, where I supposed to change the firewall settings. I also tried rebooted the ...
user avatar
  • 101
0 votes
1 answer
20 views

NGINX reverse proxy upstream not connecting to specific port

I am trying to get to one of the backend servers, but I am getting this error: 27#27: *21653 connect() failed (111: Connection refused) while connecting to upstream, client: 84.255.55.25, server: ...
user avatar
0 votes
0 answers
14 views

Nginx hidden my custom header

Hey guys I have added API key and value in my Authorization tab in https request. In my local host inside header it is visible, but in the Nginx its not visible, should I have to adjust Nginx config ...
user avatar
0 votes
0 answers
31 views

Error 502 Bad Gateway while my CPU and RAM are at 50%

For a while, my server has been returning 502 Bad Gateway errors randomly during the day. Sometimes we have the same traffic and everything is fine, other times it causes 502 errors. I have a web ...
user avatar
0 votes
1 answer
35 views

How to make both users have permission to the same folder?

In my Laravel app, I am using Nginx as the server. Ubuntu version is 21.10 I also want to use Laravel's console (Tinker) to log stuff. When I set www-data to be the owner of storage folder, which ...
user avatar
0 votes
1 answer
65 views

Can't access my Flask App on Ubuntu Server 20.04 LTS from the Internet

I recently bought a Raspberry Pi 4 (8GB) and installed Ubuntu Server 20.04 LTS on it. My goal is to turn it into a server to host all my Python scripts (Flask Websites/Telegram Bots/etc) on it. [...
user avatar
0 votes
0 answers
35 views

How to redirect port to subdirectory in nginx

I am using Nginx on Ubuntu I have an application, working on port number *:8080 It's basically a container hosted webpage, so If anyone wants to access that webpage he/she have to access it via https:/...
user avatar
1 vote
1 answer
165 views

Public folder is forbidden in nginx

I successfully deploy my Laravel app to in Digital Ocean. But my CSS & JS file are 403 (Forbidden). In my console I see the error: net::ERR_ABORTED 403 (Forbidden) How can I give my application ...
user avatar
0 votes
0 answers
37 views

Python Library (rembg) NOT working with www-data user

I'm using rembg library in Python and using it with my Larvel project, I've tried multiple ways to execute Python file from my PHP application, like symfony/process, shell_exec, artisan But this file ...
user avatar
0 votes
0 answers
25 views

Redirect (secure bypass)

I have my web hosting panel on the domain panel.xxx.pl I can also access it via IPv4 (bypass Cloudflare). Can I redirect from https://198.x.x.x/auth/login to https://panel.xxx.pl? How? Ubuntu 18.04
user avatar
0 votes
0 answers
37 views

How to Configure Nginx to be gateway to serve Multiple Websites

I have a domain name domainname.com. I have subdomains where differents applications run. for example: app1.domainname.com app2.domainname.com app3.domainname.com nginx.domainname.com what I want is ...
user avatar
0 votes
0 answers
32 views

GeoIP + Cloudflare

I want to block all countries except Poland and Germany with Nginx GeoIP. How do I add Cloudflare restrictions so it doesn’t get blocked?
user avatar
0 votes
0 answers
102 views

nginx configuration for maxmind geoip2 to restrict IPs by country and city while passing LAN

Close but no cigar! Trying to configure ubuntu server 20.04 nginx with geoip2 to restrict IPs by country and city while permitting LAN access. The following is my nginx.conf for maxmind geoip2. ...
user avatar
2 votes
0 answers
242 views

Hotspot Login - http://nmcheck.gnome.org - 404 Not Found nginx/118.0

I am new to linux, maybe someone can help me out with this new challenge. A white screen randomly pops up with the following info Hotspot Login http://nmcheck.gnome.org 404 Not Found nginx/118.0 ...
user avatar
  • 21
0 votes
0 answers
56 views

Nginx, Certbot - Invalid response from

I wanted to renew certificate of my domain that expires in 3 days, but when I try sudo certbot --nginx -d fabrykacraft.pl it shows an error: https://pastebin.com/4n0KQqEg I have some sub-domains ...
user avatar
  • 3
0 votes
0 answers
546 views

PHPMyAdmin with php < 8

So I am installing PHPMyAdmin for months now on my php 8 machine by using apt install phpmyadmin, which always worked fine, it always ran at php 7.2, the webserver at least, not sure if phpmyadmin it ...
user avatar
0 votes
1 answer
21 views

Does Ubuntu 20.04 nginx support range requests?

It implies in [https://docs.nginx.com/nginx/admin-guide/content-cache/content-caching/][1] that nginx supports range requests only if Cache Slicing is compiled into nginx. Does Ubuntu 20.04 nginx ...
user avatar
  • 915
0 votes
0 answers
27 views

Eror message task hung block 120 seccond

I get an error message on my Ubuntu server 18.04.5 and 20.04.1 and can't run my system. How can I solve this?
user avatar
0 votes
0 answers
12 views

Charmed-Kubernates

I have installed Charmed-Kubernates with snap rolling the following instructions....https://ubuntu.com/blog/kubernetes-on-a-single-machine I all started up apart from nginx I asked it to use the ...
user avatar
0 votes
0 answers
493 views

Uncaught Error: Call to undefined function pg_connect()

I have following server cofiguration: Ubuntu 20.04.3 LTS PHP 7.4.13 (cli) psql (PostgreSQL) 12.9 (Ubuntu 12.9-0ubuntu0.20.04.1) I have moved my web service based on WordPress from Windows to Linux ...
user avatar
  • 1
-1 votes
1 answer
47 views

How nginx is listening when Listen is black out [closed]

Focal Fossa I commented the listen in server directive: /etc/nginx/sites-available/default server { # listen 0.0.0.0:80 default_server; # listen [::]:80 default_server; and I am not sure ...
user avatar
0 votes
1 answer
33 views

Lightsail Instance Fails Every 20 to 40 days

I'm running Ubuntu 20.04.3 on a 1 GB RAM 1 VCPU 40GB SSD Lightsail instance. It runs NGINX serving a single Wordpress instance. The WP site is the web presence of our local Apple user group and gets ...
user avatar
  • 121
0 votes
0 answers
13 views

Suggestions for Nginx file permissions on Ubuntu (VM) server [duplicate]

Being new to playing with Ubuntu 20.04 (VM) server, I am here to seek suggestions instead of messing up with the system :) I have Nginx server installed that is ready to serve HTML files from /var/www/...
user avatar
  • 111
0 votes
1 answer
2k views

Install nginx-1.20.2 on Ubuntu 20.04

I am using Ubuntu 20.04 and i have installed nginx using sudo apt update sudo apt install nginx But after installation when i do nginx -V to check version it always shows 1.18 version instead of ...
user avatar
3 votes
1 answer
422 views

Installing nginx-module-brotli on Ubuntu Errors

I have been trying to set up Brotli compression on Nginx, but am failing at the package installation step. In particular, when I run sudo apt install nginx-module-brotli, I get this The following ...
user avatar
0 votes
1 answer
38 views

systemctl nginx doesn't start

After updating one of the index files in website directory when I run systemctl start nginx it tells that there was an error and journalctl -xe shows: nginx: [emerg] host not found in upstream "...
user avatar
  • 3
0 votes
1 answer
38 views

Certbot fails using nginx under XUbuntu

Following instructions from https://medium.com/@jasonrigden/how-to-host-a-static-website-with-nginx-8b2dd0c5b301, I instead installed python3-certbot-nginx instead of python-certbot-nginx. Is that ...
user avatar
  • 915
0 votes
0 answers
11 views

Different NGINX user for proxy configuration, reverse proxy and websites - is it possible?

I have NGINX instance in my server working in ROOT account. user root; upstream docker { server unix:/var/run/docker.sock; } server { listen 4444 default_server; location / { proxy_pass ...
user avatar
  • 105
1 vote
0 answers
323 views

Nginx - same server, one specific path to a different root folder

I am having a hard time trying to figure out how to configure Nginx. Basically, I have the same server name, but two websites: website x root folder: /var/www/html/x/public Wordpress root folder: /...
user avatar
0 votes
0 answers
98 views

How to setup nginx on a subfolder

I bought a VPS running Ubuntu 20.04. I am fairly new to all the hosting and Linux stuff and I’m struggling on setting up the following situation or if this is even possible: I have my /var/www folder ...
user avatar
1 vote
1 answer
849 views

How to add self-signed certificate to docker nginx:alpine

This is my-compose.yml definition nginx: image: "nginx:alpine" ports: - 5000:80 links: - registry:registry volumes: - ./auth:/etc/nginx/conf.d - ./auth/nginx.conf:/...
user avatar
  • 105
0 votes
1 answer
33 views

Old LEMP stack WordPress site won't deploy any more

I've inherited a WordPress 5.7 site running on an Ubuntu 16.04.3 x64 droplet, which uses a separate DigitalOcean managed MySQL 8 database. The WordPress site is a Trellis LEMP stack site. PHP version ...
user avatar
0 votes
0 answers
68 views

nginx unable to see files in external hdd

What I'm trying to do: I'm trying to have a website on nginx (Ubuntu) where all its files are stored in an external hard disk. What I did: I connected the hard disk via usb, added it to /etc/fstab by ...
user avatar
  • 11
1 vote
0 answers
156 views

nginx fails to listen on specific IPv6 address

Ubuntu 20.04.3 nginx version: nginx/1.18.0 (Ubuntu) Hello, I just followed a simple procedure to set ngnix to listen to a specific IPv6 address https://geekflare.com/enable-ipv6-nginx-apache/ and we ...
user avatar
0 votes
1 answer
156 views

Wowonder Configuration for Nginx Not Working

my wowonder PHP script website currently running on an apache server and it is working well. but I'm not happy with the speed it provides because my site is growing day by day and I need more speed ...
user avatar
0 votes
1 answer
54 views

Nginx and a per server's user setting

On my local dev machine, I'd like to run an nginx server with several websites, each of them running with a different user that can be either used to run the process and/or at least used to ...
user avatar
3 votes
1 answer
263 views

Ubuntu 20.04.3: nginx crashes with segfault

I have an Ubuntu box (20.04.3) on which nginx stopped already twice with a segfault: Nov 16 00:01:23 documents-oo kernel: [2726316.050697] nginx[2579242]: segfault at 41 ip 00007fbf59548593 sp ...
user avatar
6 votes
2 answers
1k views

Ubuntu 20.04 on WSL2: Folder owner & group are being reset after each start

Well, I have a WSL2 with Ubuntu 20.04.3 LTS on it. It is intended for web-development purposes, so nginx, php and other related apps are installed there. No GUI. So when I start it with wsl from ...
user avatar
  • 163
0 votes
0 answers
49 views

Uppercase to lowercase in nginx module

I have a nginx module which is redirecting the user to different folders depending on the URL. The logic is this: mysite.site/folder1, mysite.site/folder2, mysite.site/folder3 etc. What I want to do ...
user avatar
  • 1
0 votes
0 answers
16 views

optimize php-fpm and nginx for high traffic on gigantic dedicated server

I have a dedicated server with gigantic hardware resources as you can see below: HPE ProLiant DL360 G10 2 x Intel Xeon-Gold 5220R 2.7GHz/24 Cores - 48 Threads 256 GB (2933,DDR4) 6 x 480 GB SSD (RAID ...
user avatar
0 votes
1 answer
235 views

How can I setup SSL in Tomcat9?

I have tried to install SSL on tomcat 9 on port 8443. However, I do not know if tomcat support pem or crt format SSL. I have made changes into server.xml but when start tomcat I am getting the below ...
user avatar
0 votes
0 answers
151 views

libnginx-mod-http-lua at ubuntu 21.10

According this: https://packages.ubuntu.com/search?suite=all&searchon=names&keywords=libnginx-mod-http-lua this module: libnginx-mod-http-lua just no longer available in newer version of ...
user avatar
0 votes
0 answers
49 views

how to pass request to tomcat from nginx through https instead of http

-1 i have setup nginx with reverse proxy to tomcat server.This is working fine. Now i want to proxy_pass over https to tomcat server.how can i do that.my nginx config below where abc.com is domain ...
user avatar
0 votes
0 answers
18 views

Improving script to check site response and restart the server

Any suggestions how I can improve this script. We are receiving 200 response but server is doesn't always restart #!/bin/bash if [[ $EUID -ne 0 ]]; then echo "This script must be run as ...
user avatar
  • 1
0 votes
0 answers
53 views

Redirect Transmission port 9091 to 80 on Ubuntu serving with Nginx

The admin of my network is ceaselessly disabling and enabling ports. I want my transmission Web UI to be served over port 80 instead of 9091. My server is running on Nginx not Apache (Apache solution)....
user avatar
0 votes
0 answers
38 views

Controlling cron jobs using third-party apps

I'm quite new to using cron jobs on my personal ubuntu server, so, I was wondering if there is any way that I can schedule cron jobs to control certain services such as Nginx from lets say Google ...
user avatar
0 votes
0 answers
366 views

Matrix-Synapse and Matrix-Element Server Client connection problems at fresh Ubuntu install

After installed Synapse on Ubuntu 20.04 with Nginx seems everything working fine. No errors and can access the ports 8008 and 8448. Testing with the federation URL https://federationtester.matrix.org/ ...
user avatar

1
2 3 4 5
18