Welcome! Log In Create A New Profile

Advanced

Works only in root..

March 13, 2021 04:52PM
Hi GROUP !

I've a problem with NGINX (reverse proxy).

All work perfectly if I assign internal server to root:

server {
listen 80;
listen [::]:80;

access_log /var/log/nginx/reverse-access.log;
error_log /var/log/nginx/reverse-error.log;

location /{
proxy_pass https://192.168.1.10;
}
}
and ask browser to: NGINX_IP\

___

and stop work if I use a path different from ROOT:

server {
listen 80;
listen [::]:80;

access_log /var/log/nginx/reverse-access.log;
error_log /var/log/nginx/reverse-error.log;

location /qnap{
proxy_pass https://192.168.1.10;
}
}

and ask browser to: NGINX_IP\qnap

____

What am I doing wrong ?

Thanks !
Subject Author Posted

Works only in root..

bubugian March 13, 2021 04:52PM

Re: Works only in root..

Sergey A. Osokin March 14, 2021 12:00AM

Re: Works only in root..

bubugian March 15, 2021 07:11AM

Re: Works only in root..

Francis Daly March 15, 2021 01:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 56
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready