You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Unknown User <kn...@gmail.com> on 2015/06/22 16:07:11 UTC
Can ats serve some files on its own?
Can ats serve some files (static html files/plain text files) on its own,
without needing an origin server to serve it?
If it can not directly do that, would it be possible to add a file to the
cache to serve it?
Thanks,
Super
Re: Can ats serve some files on its own?
Posted by Jason Strongman <ja...@gmail.com>.
If you are just trying to satisfy your curiosity, then this should be
doable with the lua plugin.
Either by itself or coupled with an external lua module(lua rocks)
On Mon, Jun 22, 2015 at 2:00 PM, Leif Hedstrom <zw...@apache.org> wrote:
> In response to what others have said, we would really like for someone to implement an fcgi plugin for ATS :).
>
> -- Leif
>
>
>
>> On Jun 22, 2015, at 8:07 AM, Unknown User <kn...@gmail.com> wrote:
>>
>> Can ats serve some files (static html files/plain text files) on its own, without needing an origin server to serve it?
>> If it can not directly do that, would it be possible to add a file to the cache to serve it?
>>
>> Thanks,
>> Super
Re: Can ats serve some files on its own?
Posted by Leif Hedstrom <zw...@apache.org>.
In response to what others have said, we would really like for someone to implement an fcgi plugin for ATS :).
-- Leif
> On Jun 22, 2015, at 8:07 AM, Unknown User <kn...@gmail.com> wrote:
>
> Can ats serve some files (static html files/plain text files) on its own, without needing an origin server to serve it?
> If it can not directly do that, would it be possible to add a file to the cache to serve it?
>
> Thanks,
> Super
Re: Can ats serve some files on its own?
Posted by Reindl Harald <h....@thelounge.net>.
Am 22.06.2015 um 16:07 schrieb Unknown User:
> Can ats serve some files (static html files/plain text files) on its
> own, without needing an origin server to serve it?
> If it can not directly do that, would it be possible to add a file to
> the cache to serve it?
no, it is a proxy by definiton and not a hybrid like httpd with all the
drawbacks of trying to handle every usecase
Re: Can ats serve some files on its own?
Posted by James Peach <jp...@apache.org>.
> On Jun 22, 2015, at 7:07 AM, Unknown User <kn...@gmail.com> wrote:
>
> Can ats serve some files (static html files/plain text files) on its own, without needing an origin server to serve it?
Apart from error page templates, there's nothing that does this. You could write your own server intercept plugin to do it, but it's probably less trouble to just run a static origin server.
> If it can not directly do that, would it be possible to add a file to the cache to serve it?
You can use the PUSH method to insert an object into the cache <https://docs.trafficserver.apache.org/en/latest/admin/http-proxy-caching.en.html?pushing-content-into-the-cache#pushing-content-into-the-cache>
J