Prev | Current Page 479 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

n . Note that
whenever an HTTP relative to a directory is invoked, the web server ( NekoTools Server by default and
mod_neko if correctly configured) will look for an index.n file inside the directory and will execute it.
For this reason you can access the index.n without specifying the whole filename but just using the
following address once the web server is executed pointing to the web directory.
http://localhost:2000/
Now you can see the content of the homepage, actually a page that says that no content exists for the
homepage. Click the Edit button but wait, page ??? Not Found ??? ? Why that? This is because, as observed
earlier, the web server must be instructed so that all the calls are directed to your index.n file. To do
this, you have to add a new file .htaccess in the web directory. The content of the file must be:
< FilesMatch ???^([_a-z0-9A-Z-])+$??? >
RewriteEngine On
RewriteRule (.*) /index.n
< /FilesMatch >
This simple file instructs the web server so that every URI that does not match an existing file is
redirected to the index.


Pages:
467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491