Re: How do I add text to a response from a remote URL in NGINX?

2020-09-02 Thread moyamos
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 regards Posted at Nginx Forum: https://for

Re: How do I add text to a response from a remote URL in NGINX?

2020-09-01 Thread moyamos
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/;

Re: RE: How do I add text to a response from a remote URL in NGINX?

2020-08-31 Thread moyamos
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

How do I add text to a response from a remote URL in NGINX?

2020-08-31 Thread moyamos
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;