<div dir="ltr"><div>Hello,</div><div><br></div><div>I'm trying to serve some files from
/proc but nginx return a 0 bytes content because the file size of many
files in /proc/ tree is simply 0 by design.<br><br></div><div>here is my sample conf file:<br></div><div>...<br>location = /route {<br></div><div> root /proc/net;<br></div><div>}<br><br></div><div>and the result of the corresponding curl:<br>> GET /route HTTP/1.1<br>> Host: <a href="http://172.16.0.3:1513" target="_blank">172.16.0.3:1513</a><br>> User-Agent: curl/7.68.0<br>> Accept: */*<br>> <br>* Mark bundle as not supporting multiuse<br>< HTTP/1.1 200 OK<br>< Server: nginx/1.23.1<br>< Date: Tue, 12 Dec 2023 15:08:00 GMT<br>< Content-Type: text/plain<br>< Content-Length: 0<br>< Last-Modified: Tue, 12 Dec 2023 15:08:00 GMT<br>< Connection: keep-alive<br>< ETag: "65787750-0"<br>< Accept-Ranges: bytes</div><div><br></div><div>is there a simple way to configure nginx to return the cotent of /proc/net/route or any other file in /proc ?<br><br></div><div>thanks<br></div><div>regards</div><div><a class="gmail_plusreply" id="m_7042623536602292227plusReplyChip-0">++ Jerome</a></div></div>