Prev | Current Page 435 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

Thus, if a web server, say example.com , is configured to have its root to point to
the directory D:\www (or //path/to/www on * nix) that contains a file named page.html , this resource
can be reached on the Internet using the URI address http:// www.example.com/page.html .
Directories and subdirectories are mapped one to one separated by the slash symbol / . When a URI
points directly to a directory and not to a file (may it be virtual or real), the web server can show the
content of the folder if so configured, or redirect to a default page. The NekoTools redirects the request to
the first file encountered in the directory between index.html , index.htm , and index.n . If none of
those options are available, an error Page Not Found (code 404) is reported. Production web servers such
as Apache have several options to deal with files, folders, and virtual paths, restricting accesses and so on.
In many cases, the server assembles the page contents dynamically, varying their contents with the
parameters received in the request.


Pages:
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447