You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Jason Strongman <ja...@gmail.com> on 2014/06/10 04:00:48 UTC
Local File Access
Outside of building a plug-in, does ATS have a native facility which allows
for reading local system files? I have a file residing in my system log
directory that I want to access via ATS.
I was thinking something along the lines of the below remap rule, although
I tried and didnt seem to work.
map http://mydomain.com/file.log file:///var/log/file.log
If using the header rewrite plugin, not sure how I could expand the
conditional access rule to expose local files either.
Setting a specific body_factory directory against my map rule partially
works, although I have to reload ATS each time for my updated logs to be
read.
Re: Local File Access
Posted by Miles Libbey <ml...@apache.org>.
Hi-
I think you may be able to use the experimental plugin 'healthchecks' for this:
https://github.com/apache/trafficserver/tree/master/plugins/experimental/healthchecks
miles
On Mon, Jun 9, 2014 at 7:00 PM, Jason Strongman
<ja...@gmail.com> wrote:
> Outside of building a plug-in, does ATS have a native facility which allows
> for reading local system files? I have a file residing in my system log
> directory that I want to access via ATS.
>
> I was thinking something along the lines of the below remap rule, although I
> tried and didnt seem to work.
>
> map http://mydomain.com/file.log file:///var/log/file.log
>
>
> If using the header rewrite plugin, not sure how I could expand the
> conditional access rule to expose local files either.
>
> Setting a specific body_factory directory against my map rule partially
> works, although I have to reload ATS each time for my updated logs to be
> read.
>
>
>