Delegate file serving to Apache

0 views
Skip to first unread message

whoiste...@hotmail.com

unread,
Aug 9, 2008, 2:05:28 AM8/9/08
to wxJavaScript
Since Apache can serve files on its own and probably quite efficient
at it (atleast it's got it's only caching mechanisms), if I want to
serve a file from a wxjs, instead of using the IO module and
wxFile.read(), how can I redirect the request to the file in wxjs?

Not sure if I am framing this question properly.

The exactly idea I want to implement, is:
I liked my client to be able to find a file using a partial filename,
e.g. wildcards *partial_filename*, in another word, the client only
knows a portion of the filename.

After some research, it seems Apache doesn't have this file search
feature.
At the moment, I can use wxDir to find the filename, and use print the
response back, I guess this is quite fast already, but conceptually,
it seems I doing something that Apache should be able to do.

Franky Braem

unread,
Aug 10, 2008, 7:05:19 AM8/10/08
to wxjava...@googlegroups.com
whoiste...@hotmail.com schreef:
Isn't it possible to redirect the browser to the file you have find?

Franky.

whoiste...@hotmail.com

unread,
Aug 11, 2008, 12:14:42 AM8/11/08
to wxJavaScript
Yes, right now I do this:
1) client send the partial filename queue to server e.g. *file*
2) server sends the filename it finds back to client
3) client sends file requests to server again
4) server returns the file

This means I need to make to two requests in order to avoid using
wxFile.

What should be done is:
1) client send partial filename queue to server
2) server returns the file

I guess what I do works anyways, but I don't understand enough about
Apache to be able to do it better.

On Aug 10, 7:05 pm, Franky Braem <franky.br...@gmail.com> wrote:
> whoisterence...@hotmail.com schreef:
Reply all
Reply to author
Forward
0 new messages