rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Mike Korneev

Pages: 1
Programmers corner / Re: How I can force HFS to send nonexisting file
« on: June 22, 2018, 05:32:58 PM »

[not found]
{.add header|Location:/NotFound.txt.}

In such a case requestor will see that there was redirection...
But I want requestor will sure that he got an exactly requested file.

Programmers corner / How I can force HFS to send nonexisting file
« on: June 20, 2018, 09:32:24 PM »
I want to somehow force HFS to act in such manner:

[request (or download?, or some another event?)]
if HFS can send requested file
   dodefault (send it)
  send the content of, for example, /NotFound.txt (or d:\HFS\NotFound.txt) as if requested file exists in
  HFS's VFS and HFS perform a routin operation so that requestor will be
  sure that he got a requested file

How I can do this?

Thank you very much!

Just some file on my computer. For example "x:/xxx/xxxx/"

or when I put a url that does not match any physical file like ""

Yes, this is the case. When someone request from HFS file which doesn't exist I want to send some existing file intead of requested file which is not exists.

When someone requests from HFS file which HFS can't find in his VFS, HFS send "Not served: 404 - Not found" error.
And I want to force HFS to send some file instead of 404 error.

What is the simplest way to do this?

Sorry for my bad english :-)

Всем привет!

Мне бы хотелось, в случае, когда запрашиваемый файл не найден и HFS отвечает "Not served: 404 - Not found", посылать некий файл.

Как это, в случай с HFS 2.3k, проще всего сделать?

Pages: 1