Works only in root..

Sergey A. Osokin osa at freebsd.org.ru
Sun Mar 14 04:59:27 UTC 2021


Hi,

is there any messages in error.log file?

While I'm here could you guide me - is there any specific reason to
use a back slash instead of a very common forward slash?

Thanks.

--
Sergey Osokin

On Sat, Mar 13, 2021 at 04:52:01PM -0500, bubugian wrote:
> 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 !
> 
> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,290968,290968#msg-290968
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


More information about the nginx mailing list