Welcome! Log In Create A New Profile

Advanced

How to hide/restrict log/error message in browser from nginx server

November 21, 2022 06:07AM
Hi All,

I am new to nginx thing, currently we have primary nginx.conf file under /etc/nginx/ and serval tenant specific server configuration file present in /etc/nginx/conf.d/ folder.

So any http request was made it provides verbose nature of error message in browser , it shows some source code file pat below (currently pasted dummy browser response):

at decodeURIComponent (<anonymous>)
at decode_param (/fdsfsdfdfdsf/layer.js:172:12)
at Layer.match (/fdsfsdfdfdsf/router/layer.js:123:27)
at matchLayer (/fdsfsdfdfdsf/index.js:587:18)
at next (fdsfsdfdfdsf/index.js:226:15)
at csrf (fdsfsdfdfdsf/index.js:117:5)
at /fdsfsdfdfdsf/security.js:128:17
at Layer.handle [as handle_request] (/fdsfsdfdfdsfr/layer.js:95:5)

So my question is is there any way i can hide/restrict this with nginx.conf file modification or server configuration files modification

Please suggest your thought

Thanks
Ashish
Subject Author Posted

How to hide/restrict log/error message in browser from nginx server

ashishbijwe November 21, 2022 06:07AM

Re: How to hide/restrict log/error message in browser from nginx server

Sergey A. Osokin November 21, 2022 08:18AM

Re: How to hide/restrict log/error message in browser from nginx server

ashishbijwe November 22, 2022 11:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 123
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready