|
![]() |
We want to serve web pages quick and easy, just installing the Java Web based Server, we need to download this zip file HTTPG.zip, and have installed a JVM version greather or equals than 1.3. You'll be ready to serve from your PC web pages with your modem or DSL conecction. www.no-ip.com provides a competitive free and paid domains, for home users that want to have a name for teir computers on Internet (you should not have routers or firewalls to do this to avoid problems).
On windows uncompress onto C:\ folder the zip file httpg.zip, on Linux just decompress on /usr/local/ or in our home directory or in an accesible place. To start the server use an editor to modify .conf file on the httpg/conf folder to change the root clause to point to your root folder for webpages, for example the root clause should be like that: root /home/gus/public_html or on windows root c:\web, put some files on this folder. Note: if you wish to see the Java Sources uncompress the com.compunauta.jar file
By default the server port is 80, you need permission to use them, if not you can touch the runserv.bat (win) or runserver.sh (Linux) to change the port, if you change them your pages should be accesed by http://ourip:port/index.html where our ip is the IP Address on the network or Internet, if we do not have network, wen can play with 127.0.0.1 but only works on our computer. When you open or run the script, you should see something like in the pictures, and you are able to test your server http://127.0.0.1 on your favorite web browser, I recommend Mozilla or Firefoxfor PHP support just install php on your computer, if we have problems compile from sources with --enable-cgi, on gentoo do emrege pgp-cgi
Some ScreenShots Serving Preprocesed pages with GusParser or PHP.
![]() |
![]() |
For example we want to make an alias, then on .conf file add or modify some line like alias d:\manga\movies;/mov or alias /usr/share/doc;/manuals is completely explanatory that if you acces the las semi colon separated folder you see the content of the first folder, if someone use ../../ to try access over this folders the resolver inside the server deny that kind of access out the specified folders.
Bandwith increasing decreasing add this two lines bandwidth 409600 and below bandwidthtime 9000 it means aprox 400kbytes each 9 seconds (9000 milliseconds) you can touch this values, more bandwithtime less cpu usage, less bandwith time more accurate.
Disallowing lamers that use to get more than 1 fragment file at same time, just add th_per_fl 1 it means just 1 segment per file per Remote IP.
Limit the amount of files served at the same time for each Remote Addr, just add th_per_ip 8 to allow 8 files at the same time to a single Remote PC.
Enable PHP or GusParser just adding html_like_gp on, every file .html or .htm or .css are parsed With GusParser, and .php files with php-cgi.
If you wish to serve seriously more pages, then change on the start scripts the THREADS to something more than 10 or 20 threads export MAXTHREADS=10 or on the win script set MAXTHREADS=20.
You can fill up the upper mail form for comments. This software is maded by Gustavo Guillermo Pérez and is GPL OpenSource software.