Questions tagged [nginx]

nginx (pronounced “engine x”) is a lightweight web server and a reverse proxy server

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

NGINX different php version 5/7 in subfolders

I'm trying to configure NGINX to works with different version of PHP in different locations subdir, but something doesn't work and return me 404: location / { try_files $uri $uri/ /...
0
votes
0answers
10 views

wget ERROR: cannot verify localhost's certificate, ..Self-signed certificate encountered

How Can I implement a secure https connection on ngnix I want to implement https on my localhost.I am running http server nginx on ubuntu 20.04 What I did was i issued the command sudo openssl req -...
0
votes
0answers
9 views

Nginx server configuration with symlinks to root folder

I am developing an laravel app. I have a server configuration like this: server { listen 80; server_name dev.site.com; return 301 https://dev.site.com$request_uri; } server { ...
0
votes
0answers
16 views

NodeJS + Nginx 404 Not Found but URL+PORT is working

I have nodeJS on my VPS and with my domain name. When I do in my browser : https://mydomain1.com => 404 error https://mydomain1.com:8080 => Everything works just fine ! default file on /etc/...
1
vote
1answer
30 views

NodeJS + Nginx 403 Forbidden but URL:PORT is working

I have a NODEJS website on production and I can't access to : https://mydomain1.com => 403 Forbidden https://mydomain1.com:443 => 403 Forbidden But everything is working when I add port &...
0
votes
0answers
10 views

Nginx reverse proxy dynamic error pages with client IP

I am using nginx 1.19 in reverse proxy mode. Based upon certain conditions in ModSecurity, the nginx might display 403 forbidden error page to client. So far every thing is working fine. However, ...
0
votes
0answers
12 views

Make uWSGI startup when the system boots

I'm pretty new to server configurations and even newer to nginx and uWSGI, First I try to do this Make uWSGI startup when the system boots, the rc.local file have this content: #!/bin/bash /usr/local/...
0
votes
1answer
3 views

Stop Nginx from auto-starting on Mac. Port conflict on port 80, using LocalWp / Local By Flywheel

I have an application (LocalWp or Local By Flywheel), that uses nginx to run on localhost. Whenever I reboot my machine, Nginx starts back up and thereafter LocalWp starts up, but hits a port conflict,...
0
votes
0answers
19 views

Nginx don't redirect to nodeJs port

I have a NodeJS app on port 8080 and my Nginx file look like this : server { listen 80 default_server; listen [::]:80 ipv6only=on; root /var/www/html; index index....
0
votes
2answers
29 views

nginx doesn't start in docker, unless manually exec'ing into it and starting

I am fairly new to docker. I have to build a docker file that will start node express server and Nginx as a reverse proxy. but the problem is node server starts but Nginx does not start. when I ...
0
votes
1answer
18 views

What is a simple solution to proxy an HTTP service on a remote network only accessible via SSH

I have a system that runs several web interfaces I can only connect to via SSH. To get around this I use port forwarding to forward each of the HTTP application ports to my local computer. I would ...
0
votes
1answer
12 views

Certbot fails to start nginx

I am using kernel 3.10 on CentOS 7. I have successfully installed CertBot 1.10.1 using alternative installation instructions as certbot-auto. I have manually added certbot-auto to autorun via systemd ...
1
vote
1answer
54 views

How does a reverse proxy server receive the subdomain?

I recently set up a reverse proxy server on some some Docker containers using Nginx and it works as expected. I am reverse proxying on these containers themselves to applications being run on these ...
0
votes
0answers
9 views

nginx rewrite for backend only

Say I have a URL like this https://example.com/test/images and I want to rewrite that to https://example.com/images but I still want the user to see the original request URL? It seems using the ...
1
vote
0answers
108 views

OCSP not working consistently with NGINX

Host: Ubuntu 20.04.2 (5.4.0-67-generic) x64 Server: NGINX 1.18.0 (Ubuntu) CA: Let's Encrypt Having a really hard time getting OCSP to work consistently. Any help would be appreciated. Thanks in ...
0
votes
1answer
50 views

nginx vs haproxy in private network

I am currently using haproxy on my OPNsense. It is currently also set up to serve some internal WebGUIs to pass on the LE wildcard certificate I have for my domain. Mainly stuff like unifi controller, ...
2
votes
2answers
34 views

Nginx WordPress pretty permalinks show 404. Working only with plain permalink setting

Tried so many tutorials but could not get it working in my local development server (CentOS 8). I can view and edit fine with plain/ugly permalinks setting. When I change to any other permalink ...
0
votes
0answers
7 views

Connecting Domain to nginx

So I have Nginx running on ubuntu server inside proxmox VM, and it's redirecting traffic to my ghost blog, and when I use my local IP 10.0.0.143:80, it works fine, but when I try to access using my ...
0
votes
0answers
20 views

NGINX location matching exact URL

server { listen 80; server_name test.com www.test.com; set $base_root /var/www/test; root $base_root; access_log /var/www/test/frontend/runtime/log/access.log; error_log /...
0
votes
0answers
121 views

Bitwarden 502 Gateway Error when I attempt to connect to subdomain

I'm setting up BitwardenRS on a Raspberry Pi along with a website to host files on. The website works fine. But when I attempt to connect to Bitwarden via my Subdomain, It gives me a 502 Bad Gateway ...
0
votes
0answers
104 views

Connection refused while connecting to upstream - NGINX error

In my log file nginx shows me error: failed (111: Connection refused) while connecting to upstream, client: x.x.x.x, server: myhost.com, request: "POST /route HTTP/1.1", upstream: "...
0
votes
0answers
29 views

Uwsgi - python vs cgi plugins difference?

Trying to understand the difference between uWSGI plugins python3 and cgi. I am using CGI plugin, where I can forward any http requests made to Nginx to uWSGI, so it can run a python script, like so: ...
0
votes
1answer
25 views

Ban across entire system based on ssh attempts

I have fail2ban set up to ban anyone who tries to connect via. ssh without my certificate. I currently have a list of 1886 banned addresses (and counting), majority of which originate from China. ...
0
votes
0answers
33 views

Synology Router Port Forwarding to NGINX

Setup: My Synology Router (RT2600ac) has setup a port forwarding to my server in my home network. This server is running nginx and acts as a reverse proxy to map the incoming http requests to ...
1
vote
0answers
36 views

NGINX as TLS-transparent (secure TCP) and a TLS-terminating (TLS offload) reverse-proxy based on sub-domain name

I host a few services from my home network to the internet and I learned recently about reverse-proxy concepts using NGINX. Some of my services (like Home Assistant) have the built-in ability to ...
1
vote
1answer
50 views

How to forward HTTPS to HTTP for any IP address?

I have an iFrame in an HTTPS site. This iframe must point to an IP (not specific, there are hundreds of different ones) in HTTP. Currently, it doesn't work: "This request has been blocked; the ...
0
votes
0answers
159 views

Why has connection to my minecraft server (via nginx) been lost after setting up new network, while all other nginx served services work fine?

I host a bunch of services (via subdomains) in nginx, e.g. mine.mydomain.com, doku.mydomain.com, etc. This has run smoothly for years (Ubuntu Server, now on 20.04 LTS, almost everything, including ...
0
votes
0answers
17 views

nginx error with certbot

I'm running a virtual machine with ubuntu 20.04 server and nginx. I'm attempting to make my url hit the file that my ip address brings up. Using the command using certbot: sudo certbot --nginx -d {...
0
votes
1answer
19 views

CentOS8 SSH Public Key auth and Nginx

I have an issue with making SSH pubkey auth work the way I'd like and I don't know if it's possible to make it work or not. I have a few websites hosted under different /home/$USER. All webfiles are ...
0
votes
0answers
14 views

NGINX, letsencrpyt: Security certificate is from www.github.com

This is really weird. We have a server with two subdomains something.domain.org which run different applications. Sometimes, everything works fine, but periodically the newer application is ...
0
votes
0answers
13 views

Nginx: Finding the location of specific folder

Using nginx on my website, am trying to exclude https://www.example.com/folder1 from basic auth. But the problem I don't know folder1 to which location block it belongs, so then I can exclude it. ...
1
vote
0answers
487 views

NGINX RTMP stream with Hamachi

In summary, I builded a NGINX server on my Raspberry PI 4 to stream to my cousin when we are doing a multiStream on Twitch (Did this because I found nothing free that can stream 1080p60). In others ...
0
votes
1answer
27 views

Docker collabora office with nextcloud on nginx, debian stopped working

I have a Debian 9 LEMP server up and running since 2 years. Nextcloud, Collabora Office in docker, with Letsencrypt certificates. Everything runs smooth. I always did my updates to the latest versions....
1
vote
1answer
23 views

Hosting several applications from home

I'm hosting several applications from home. My current "dirty" solution is, to forward multiple ports in my router. Downside is, I have to remember which ports serve which application. Plus, ...
0
votes
0answers
7 views

nginx: split requests to very large directories to subdirs

I have webdav server serving requests for items like /path/to/directory/not_a_problem1.json and /path/to/directory/eeca9352c1ec475aadbd9d8c6e6aea94.ext. (long name of exactly specific number of chars,...
0
votes
1answer
60 views

Using location variables to access subfolders and files

I'm trying to get nginx to add_after_body a file called readme.php at the end of every directory listing in an index. For every subfolder, another readme.php can exist, which is to be added instead of ...
0
votes
0answers
4 views

no 0-RTT on nginx 1.19.6

I use a compiled version of nginx (standard, current mainline version 1.19.6) on Fedora 33. Everything works fine, i have Qualys A+ with all 100%. But I can't get 0-RTT to work. Everything is ...
1
vote
0answers
25 views

how to setup ssh proxy by user in k8

I currently host gitlab in kubernetes, and would also like to move an sftp service there. I would like to host both with a single load balancer and (nginx) ingress. The problem is that nginx ingress ...
0
votes
1answer
35 views

Lighttpd returning from curl rather than nginx

I have been having issues with being able to reach my websites hosted on my Raspberry Pi on my home network. It was all working until recently and I can't work out what I've done to break things :( If ...
1
vote
0answers
25 views

Nginx Reverse Proxy to TCP

I have an rtmp server (no changes can be made) but I want to serve it from the main domain. How can I do this with nginx or similar? url: rtmp: //domain.com/live/stream_id I want to serve as follows. ...
0
votes
0answers
85 views

Nginx reverse proxy is rewriting url to 127.0.0.1

I have a nginx reverse proxy on a server where I run a bunch of apps, e.g. app1.domain.com, app2.domain.com, etc. I recently added a new application with the following config (with LetsEncrypt for SSL)...
1
vote
0answers
18 views

Installing three nginx dynamic modules when Nginx itself is installed via yum/dnf

We have a limitation on the server to only install Nginx via DNF. This currently (as of this date of writing) installs Nginx v1.18.0. We cannot compile our own Nginx. I understand that with this we ...
0
votes
0answers
25 views

Nginx reverse proxy for getting access to custom URLs

I would like to make some html page with address string on my local Debian (Raspberri Pi) server, where I can use any user defined URL (inc internal addresses). Something like a web-browser inside a ...
0
votes
1answer
81 views

HTTPS connection refused after redirect on my Nginx server

I’m unable to get to my web server via HTTPS. If I try and connect on port 80 the connection is redirected to port 443 as a quick wget shows: --2021-01-04 22:45:51-- http://corballis.co.uk/ Resolving ...
0
votes
0answers
15 views

mount directory in docker container for nginx-webserver, using docker-compose // Piwigo Nginx NAS Docker

I'm trying to mount a specific directory from a docker host system to a Nginx-Webserver, using docker-compose, but I couldn't reach the expected content in the web application (Piwigo Photo-Gallery). ...
1
vote
1answer
190 views

Increased traffic - Server probed by bots?

Since December 24 my server experiences increased resource consumption. Additionally the Nginx server seems to be unstable which causes several errors. The CPU usage used to average at around 5%. But ...
0
votes
0answers
33 views

Why is a request via my reverse proxy faster than a direct connection?

I have an ESP8266/ NodeMCU connected to my wifi which I used to make my fan a smart home device. It has a very simple HTTP server running, which allows me to send GET and POST request to get or change ...
0
votes
1answer
30 views

Nginx virtual host only serves static file on www variant of domain

I have a Nginx virtual host configured for my domain.co.nz and www.domain.co.nz website on my Ubuntu 18.04 VPS. The file for the virtual host sits within the /etc/nginx/sites-enabled directory. It ...
1
vote
1answer
93 views

Having problems with nginx in openwrt

I have a router with external ip xxx.yyy.zzz.aaa with openwrt installed on it. It also has nginx package installed. I also has a web server with internal ip aaa.bbb.ccc.eee, connected to router's lan. ...
1
vote
1answer
22 views

Changing proxy cache key nginx server

I would like to understand how to change the proxy_cache_key in Nginx: proxy_cache_key $scheme$proxy_host$uri; I have found the documentation related to it but I don't understand how to perform the ...

1
2 3 4 5
18