Prev | Current Page 450 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


In the Neko directory there is also a mod_neko.ndll (without the 2 before the dot) that is the module
for Apache version 1.3.x.
The following line declares that each request for files ending with the .n extension must be processed by
to the neko - handler that is part of the neko_module .
Finally the DirectoryIndex line suggests trying to look for and serve an index.n file when the path to
a directory is requested from a user agent.
That ??™ s it!
To test your installation, compile an .n file and copy it to the default web server directory (by default
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs ). Now point your browser
to the URI http:// localhost/filename.n where filename is the name of your compiled Neko file
and see the result. Later in this chapter, a real - world example that you can also test in your Apache
environment will be provided.
Installing Apache and Mod_Neko on Linux (Ubuntu)
Many Linux distributions come with Apache already installed. If it is not your case, open a terminal
window and type:
> sudo apt-get install apache-dev apache
Be sure that the installed version is 2.


Pages:
438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462