home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
web213w2.zip
/
web.doc
< prev
next >
Wrap
Text File
|
1999-04-28
|
9KB
|
234 lines
Web/2 v1.3w2 (c) 1998-1999 dink ( http://dink.org )
What is Web/2?
^^^^^^^^^^^^^^
Web/2 is a Web server (HTTPD as the unix folks know it) for OS/2 v3.0 or
newer. It uses separate threads for each connection so everything is fast
plus it's very easy to configure and supports both FAT and HPFS filesystems.
(please read the "whats new" section, because some features in that section
aren't mentioned anywhere else!)
Whats New?
^^^^^^^^^^
- 1.3w2 -
1: fixed a bug in redirection with keepalive
- 1.3w -
1: added $QUERY_STRING html variable. example, put $QUERY_STRING in your
html file (example filename: blah.html) then load up
http://localhost/blah.html?this_is_a_test and $QUERY_STRING will be replaced
with "this_is_a_test"
2: fixed a bug that caused 404 not found on one particular proxy server
- 1.3v6 -
1: Couldn't send files from a cd-rom drive or other read-only media (fixed)
2: No longer sends a filelisting of /cgi-bin/ (idea by p0ing, says it might be
a security risk)
3: Made the date format nicer in the web/2 style logfile/compatible w/all
countries :)
4: Removed url-minder ignore from textcounter (incompatibilities w/javascript)
5: More code optimizations, removed and rewrote redundant code
6: Overflow error in getstr() (was accessing string[-1], eek!)
7: <host> hostname would get chopped short if name was long
8: Now compiled with VP/2 2.0 beta 3! (http://www.fprint.co.uk/vpascal)
- 1.3v5 -
1: Added support for umlaut characters in the file-list
2: Fixed a problem with the OS/2 and Web/2 "uptime" html-tags reporting
weird values after 24 days.
3: Sped up/Optimized some routines
4: Weird CGI's can no longer corrupt the Web/2 window
5: Fixed a possible RunTime error 216 (it would very rarely, if ever, happen)
6: Added support for Streaming MP3's (.M3U files)
7: New "Powered by Web/2!" icon, thanks to Bin-x on irc. Check out sample.zip
8: Added a web e-mail cgi! Check out email.doc in sample.zip
- 1.3v4 -
1: Fixed a result code in the CGI routines which prevented some scripts to
run properly
2: Added caching routines to the resolver, this should speed up things a bit!
3: Fixed a bunch of small bugs & optimized code
4: Made it so you can easily upgrade your web/2 when new versions are
released! (just unzip this package to your web/2 dir and voila!)
- 1.3v3 -
1: Fixed up the file/directory list, it doesn't use %20 for spaces anymore,
so files with spaces will look normal to the client
2: Added referer, browser & cgi requests to ncsa/apache style logfile
- 1.3v2 -
1: The /redirect/ feature would screw up on MS IE 4.0 browsers, fixed
- 1.3v -
1: Added NCSA/Apache style logfile option (run setup.exe to turn it on/off)
*note* if you run any log analyzer program, be sure to delete your web.log
after switching to the ncsa/apache style logfile.
2: Cleaned up some code
- 1.3u -
1: Fixed PATH_TRANSLATED in the cgi routines (thanks to Ltning for reporting
the bug!)
2: Added HTTP_REFERER and several other env. variables to the cgi routines
3: Removed unneeded debugging code
- 1.3t -
1: Fixed a problem with WebExplorer not being able to do CGI Posts
2: Fixed several misc. bugs
- 1.3s -
1: Added SSI commands: <!--#exec cgi=""--> and <!--#include virtual=""-->
2: Web/2 will display "notfound.htm" if it exists, instead of the default
"File not found" message
3: Web/2 now supports directories under the cgi-bin directory
4: Sped up the cgi routines
5: Added support for virtual hosting via IP
- 1.3r -
1: Fixed some more problems with the aliasing, everything should work OK
now
2: New feature to send a file list if no index.htm/index.html exists
(see web.cfg for the option to toggle this on/off)
3: Multiple textcounters! Each .htm/.html file can have its own <textcounter>
now
4: Web/2 can now resume transfers (HTTP/1.1 "Range:" command support)
5: The html, cgi-bin and icons directory can now be set via web.cfg
6: Added virtual domain hosting support
7: Misc bug fixes
8: Wrote a nice setup program (setup.exe) to go along with Web/2!
- 1.3o -
1: Better support for sub-directories under aliased directories
- 1.3n -
1: Improved/Optimized the cgi code
2: Added a "url redirection" feature ex:
http://www.yoursite.com/redirect/http%3A//dink.org
(this is usefull if you'd like to see who uses your links :)
- 1.3k -
1: Fixed a bug that caused some log entries to get corrupted
2: Released 1.3k publically
- 1.3j -
1: Made the socket send() blocksize configurable via web.cfg
2: Added some new SSI codes, <referer>, <webversion>, <blocksize>, <sysuptime>,
<web2uptime> and <connections> - check out stat.htm
3: Added logging of "Browser" and "Referer"
- 1.3f -
1: Better support for directories under \web\html
2: Misc. bug fixes and speed improvements
3: Added a config file (web.cfg) instead of commandline parameters
(no more command line options! everything is now in the web.cfg file
though a web port specified on the command line will override the
port in the config!)
4: Added some CGI env. variables which were somehow left out
- 1.3 -
1: Web/2 will no longer consume 100% cpu when 'detaching' it.
2: Added html ssi tags <date> <time> <time24h> <ip> <host> and <browser>,
refer to index.htm for examples.
3: CGI Scripting support (check out page.htm and the stuff in the cgi-bin dir)
4: Misc. bugfixes & speed enhancements.
Upgrading from a previous version
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Unzip this package into your Web/2 directory, then run setup.exe to
automatically update your web.cfg with any new option(s).
Up and Running!
^^^^^^^^^^^^^^^
Just unzip it into a directory, like c:\web, make a dir under c:\web
called html, then copy all of your html/image/whatever files into
c:\web\html. If you are using pkunzip, make sure you use the -d option!
If you'd like to try the sample Web/2 pages, unzip sample.zip
Run setup.exe to configure Web/2, then create a program icon on your desktop
with the following settings: (assuming c:\web is where you unzipped web/2)
Path and Filename: c:\web\web.exe
Working Directory: c:\web
Specifying a port number as a parameter will override the port number in
Web/2's configuration.
Note:
If you're using HPFS and would like to use index.html instead of index.htm
for the index file, edit the alias.cfg and remove the entry for index.htm!!
If you are using F.A.T. file allocation
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You may use alias.cfg to alias your file names to whatever you want!
Example: you can alias super-long-filename.html to blah.htm, you can even
alias directories!
(edit alias.cfg with your favorite text editor for details..)
Neat feature!
^^^^^^^^^^^^^
In your html file(s), you can include "<textcounter>" anywhere in the
file to use the built-in textcounter. If you want to change the number
of hits your page has received, edit counter.dat :-)
For an example of how to use the textcounter, look at the enclosed index.htm
file.
Virtual Hosting How-To
^^^^^^^^^^^^^^^^^^^^^^
Have all your domain names you wish to host point to the IP of the OS/2
Machine you plan on running Web/2 on, then edit the alias.cfg and set up
each domain. Say, the domain name is "www.blah.com", and the directory with
the html files is "c:\hosting\blah" - all you need to do is add a new line to
the alias.cfg containing: "c:\hosting\blah virtual:www.blah.com" and voila!
Web/2 can also do virtual hosting via IP (IE: if each host has a different IP,
on the same machine) In the alias.cfg, instead of specifying a domain name,
specify the IP instead.
Example alias.cfg entry: "c:\hosting\blah virtual:127.0.0.1"
(opinion mode)
This method is compatible with the ancient HTTP standards and wastes IP
addresses.. I can't think of a single web browser that doesn't support the
"Host: <hostname>" (HTTP/1.1) token.
(opinion mode off)
URL Redirection
^^^^^^^^^^^^^^^
The reason for this feature is so you can log who visits the links on your
page. An example would be...
Without redirection:
<a href="http://www.blah.com/bob/index.htm">Bob's page</a>
With redirection:
<a href="/redirect/http%3A//www.blah.com/bob/index.htm">Bob's page</a>
Keep in mind, use %3A instead of a : (notice in the example above), to
maintain compatibility with all web browsers.
Restrictions & Limitations
^^^^^^^^^^^^^^^^^^^^^^^^^^
1: Aliases don't work under virtual hosts
2: The cgi-bin, icons and virtual includes dirs under virtual hosts are
the same as a non-virtual host
3: The "startup" directory of cgi's is the same dir as web.exe. 90% of the
cgi's i've tested worked flawlessly, the other 10% worked with a small
modification.
Notes & Stuff
^^^^^^^^^^^^^^^
Web/2 is freeware, if you'd like to send me a postcard, that would be most
excellent. Please e-mail me for my mailing address :-)
Bug reports, comments & "help" are welcome, please e-mail me at:
http://dink.org/email
Greets go out to: (in no particular order)
#bats, #os2...
Ananda
Ltning
Rosmo
Pete Moylan (for his wonderfull FTP server)
Tiny
..other people I can't think of at this time..