Hi Reinis and Francis, Thanks for your hands. I resolved the issue. I've moved before_body.txt and after_body.txt to another domain without https forced redirect. It works fine with a simple proxy_pass even over https. Thanks for all your help. Best regardsby moyamos - Nginx Mailing List - English
Francis Daly Wrote: ------------------------------------------------------- > On Tue, Sep 01, 2020 at 01:12:03AM -0400, moyamos wrote: > > Hi there, Thanks Francis for your reply. :-) > It looks like you had: > > location /src/ { > alias /storage/path/content/; > } > and the url /src/before_body.txt would provide the content of the > locby moyamos - Nginx Mailing List - English
Thanks for the reply. :-) I have added a location as follows: location ~/src/(.*) { proxy_pass http://externalserver.com; } It works when the entire URL is loaded in a browser. However, in the "autoindex" page, "Object Moved This document may be found _here_" show up before and after the files list.by moyamos - Nginx Mailing List - English
Hi, I have the following server in NGINX and it works fine. But, I am wondering is it possible to add text to a response from a remote URL where hosts my before_body.txt and after_body.txt? Is there any way to tackle this? Is it possible at all? server { listen 80; root /storage/path; index index.html; server_name test.domain.com; location / { try_fileby moyamos - Nginx Mailing List - English