Build your own web server software.
You can download the source code from IBM. Link is below.
$ mkdir nweb
$ cd nweb
Download and extract the tar file
$ tar zxvf es-nweb.tar
Compile
$ gcc nweb.c -o nweb
(Compiles quickly)
nweb port [directory} and run in background:
(I just used the current directory for testing)
$ nweb 8181 . &
IBM suggests.
https://www.ibm.com/developerworks/systems/library/es-nweb/index.html
$ mkdir nweb
$ cd nweb
Download and extract the tar file
$ tar zxvf es-nweb.tar
Compile
$ gcc nweb.c -o nweb
(Compiles quickly)
nweb port [directory} and run in background:
(I just used the current directory for testing)
$ nweb 8181 . &
Point to it from a browser. Actually I used the web directory on my existing web server to see what I would get.).
IBM suggests.
$ mkdir /home/nag/webpages $ cd /home/nag/webpages $ cp /tmp/nweb.tar . $ tar xvf nweb.tar $ ls client.c index.html nigel.jpg nweb.c nweb_AIX51 nweb_RedHat9_pentium nweb_SuSE_SLES8_PowerPC $ chmod ugo+x nweb $ chmod ugo+r *.html *.jpg $ nweb 8181 /home/nag/webpages &More information here and the download at:
https://www.ibm.com/developerworks/systems/library/es-nweb/index.html
Comments
Post a Comment