home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
my2www05.zip
/
my2www_doc.eng
< prev
next >
Wrap
Text File
|
1998-06-11
|
16KB
|
319 lines
--------------------------------------- --------------------------------------- -
My2WWW v.05 WWW filter, decoder, virtula server support, My/2 Server support
--------------------------------------- --------------------------------------- -
Copuright (c) 1998 A. Ivanov
0. Agreement
1. General description
2. Contents of archive
3. Requirement
4. How to build My2WWW in ICS or GoWebServer
5. Description of a file of a configuration
6. Gratitude
7. Restriction of the freely distributed version
0. Agreement
This program is distributed FREE-OF-CHARGE and in a CONSTANT kind. Is forbidden
Debugging, decompiling. It is forbidden to change contents of the given archive.
1. Contents of archive
1. My2www_doc.rus the Documentation in Russian
2. My2www_doc.eng the Documentation in English
3. My2www.dll Basic DLL library
4. My2www.cfg an Example of a file of a configuration
5. Mypm.dll the Auxiliary library (should be placed somewhere in LIBPATH)
6. Mynv.dll the Auxiliary library (should be placed somewhere in LIBPATH)
7. Mynet.dll the Auxiliary library (should be placed somewhere in LIBPATH)
8. Koi Decoding table 866 - > KOI codepages
9. Win Decoding table 866 - > WIN codepages
2. General(common) description
My2www.dll is intended for embedding in HTTP servers of the following types:
(the list is given in item 3). My2www was tested on GoWebServer 4.6.1.
Given library is intended for:
1. Realization of the control of access to the information on yours of WWW server.
2. Realization of code conversion "on summer" (on-the-fly) contents
HTML of pages on yours server from 866 code pages to KOI, WIN, ISO.
3. Creation VIRTUAL WEB-servers on the basis of yours of GoWeb ßÑαóÑαá using
ONLY one IP address!
4. Represents itself as the client to My/2 Server.
(in more detail about My/2 look: http://penza.sura.com.ru/~alex/moreos2.shtml)
My2www.dll can:
1. To forbid reception of the documents from yours server on the chosen IP-addresses,
Redirect inquiry from yours server on anyone another of URL or server.
(any mask) is allowed. In more details see item 5 the Description of a file of a
configuration.
2. To forbid reception of the document (Picture, class, so everything,
That is possible to define URL. Any mask URL) from yours server is allowed
On forbidden for reception it of URL of the address (mask of addresses).
Redirect inquiry with URL on yours server on anyone another of URL on
Yours or anyone by the friend server.
In more details see item 5 the Description of a file of a configuration.
3. To recode contents HTML of the document "on summer" from WWW server to the client.
The code conversion is always conducted from 866 code pages in one of chosen:
KOI, WIN, ISO. In a file of a configuration (In more Details see item 5 the
Description of a file of a configuration.)
The code conversion is applied only to the following types of the documents:
text/* so "text/" and is farther anything you like.
IT IS NECESSARY to set variable XXX_URL_BEGIN and XXX_CODEPAGE,
Where XXX - name of code page from 3 letters;) (WIN, KOI, ISO). XXX_URL_BEGIN
This initial meaning of the address yours server, which will be considered as area,
Which from is necessary to give back the user not @ document, and its copy
In the appropriate code page. I understand, that is foggy. Now
I shall explain. For example, if the address yours of WWW server looks so:
Www.sura.com.ru
And you define in a file of a configuration the following:
KOI_URL_BEGIN koi, www
WIN_URL_BEGIN win, win1251, mustdie
ISO_URL_BEGIN iso
KOI_CODEPAGE D:\WORK_PRG\OBJ\WWW\OBJ\koi
WIN_CODEPAGE D:\WORK_PRG\OBJ\WWW\OBJ\win
ISO_CODEPAGE D:\WORK_PRG\OBJ\WWW\OBJ\iso
Those all inquiries, addressed on koi or koi.sura.com.ru or koi-ili-net.sura.com.ru
Or koi.moi.twoi or www.moi.twoi etc. will be subjected to code conversion from 866 code
Pages in page determined in variable KOI_CODEPAGE. In a file, determined by this
Variable not @ code table, and DECODING table from 866 in KOI lays
(or other page, which will wish). Actually, my2www simply will recode
From the current coding in the coding determined by a file XXX_CODEPAGE. So from
ANYONE in ANYONE. Nevertheless NAMES variable in a file of a configuration do not vary.
4. To create and to support upto 100 VIRTUAL WEB-servers on ONE IP address only!
What this such? It is yours - @ WEB-server, having synonym in DNS (actually other name)
And at the reference to yours server on this name the inquiry of the client will be readdressed
In other directory on yours WEB-server. Is possible to readdress in:
Other directory
Other disk
Network disk
The directory can correspond home page of your user.
Yes anywhere!
For this purpose there is an instruction in a file of a configuration named VIRTUAL_SRV
(look 5 in more detail. The description of a file of a configuration).
The code conversion described above is completely applicable to VIRTUAL servers.
As well the rights of access.
Example virtual server configuration:
======================================= ======
For the beginning in DNS it is necessary to register all synonyms given virtual server:
File NAMED.DOM
--------------
...
Koi.any-virtual-name.sura.com.ru. IN CNAME penza.sura.com.ru.
Win.any-virtual-name.sura.com.ru. IN CNAME penza.sura.com.ru.
Any-virtual-name.sura.com.ru. IN CNAME penza.sura.com.ru.
...
Thus we configured virtual servers with names:
Any-virtual-name
Koi.any-virtual-name; a synonym for KOI of code conversion.
Win.any-virtual-name; a synonym for WIN of code conversion.
File My2WWW.CFG
---------------
...
VIRTUAL_SRV koi.any-virtual-name.sura.com.ru, D:/ANYDIR/ANYSUBDIR
VIRTUAL_SRV win.any-virtual-name.sura.com.ru, D:/ANYDIR/ANYSUBDIR
VIRTUAL_SRV any-virtual-name.sura.com.ru, D:/ANYDIR/ANYSUBDIR
...
The directories, on which are displayed inquiries to VIRTUAL server
There can be any. Without "/" on the end!!!
Besides, for each of above mentioned servers they can be.
For example:
...
VIRTUAL_SRV koi.any-virtual-name.sura.com.ru, D:/ANYDIR/ANYSUBDIR/SUB-SUB-DIR1
VIRTUAL_SRV win.any-virtual-name.sura.com.ru, D:/ANYDIR/ANYSUBDIR/SUB-SUB-DIR123
VIRTUAL_SRV any-virtual-name.sura.com.ru, D:/ANYDIR/ANYSUBDIR/SUB-SUB-DIR45678
...
5. My2WWW can represent itself as the client to My/2 server (more
In detail about My/2 look: http://penza.sura.com.ru/~alex/moreos2.shtml).
For this purpose it is necessary to execute the following steps:
1. Install My/2 Server on any computer
(look http://penza.sura.com.ru/~alex/moreos2.shtml)
2. Install My2WWW (see item 5. How to build My2WWW in ICS or GoWebServer)
3. Correctly register MY2_SRV the instruction in a configuration file
For My2WWW.
4. By anyone of WEB by the client to execute connection with WWW server with
Built-in My2WWW.dll and to try to load the document "/My2".
If all has passed successfully, on the screen WEB browser you receive
Copy of a window My/2 Server. Above the users it is possible to carry out
The same actions, as in the program My/2.
If something has passed not so, My2WWW will give out on the screen browser
The message on a mistake with its characteristic.
I recommend to come or NetScape or MSIE.
3. Requirement
1. OS/2 WARP, WARP CONNECT, WARPSERVER or Merlin.
2. ICS 4.2 or 4.2.1 either GoWebServer 4.6 or GoWebServer 4.6.1.
3. HPFS (This not my requirement, and ICS and GoWeb)
4. HTTPDAPI.DLL (it goes together with above named servers).
4. How to build My2WWW in ICS or GoWebServer
Yes... It really whole song. It is better by handles go in \ETC\httpd.cnf
To find appropriate to section in it and to put the following. Choose item from
Below-mentioned, which approaches you. Find the appropriate section in
\ETC\httpd.cnf. The name of section corresponds to the first word in lines.
For example, Word PreExit. Search for section PreExit and insert a line
PreExit d:\www\dll\my2www.dll:MyPreExit
Also we act and in all other lines.
1. If want to carry out ONLY control of access
Or ONLY support virtual servers.
...
PreExit d:\www\dll\my2www.dll:MyPreExit
...
NameTrans * d:\www\dll\my2www.dll:MyNameTrans
...
ObjectType * d:\www\dll\my2www.dll:MyObjType
...
PostExit d:\www\dll\my2www.dll:MyPostExit
...
ServerInit D:\WWW\DLL\my2www.dll:MyInit D:\WORK_PRG\OBJ\WWW\OBJ\my2www.cfg, D:\WORK_PRG\OBJ\WWW\OBJ\wwwserv.exe
ServerTerm D:\WWW\DLL\my2www.dll:MyTerm
...
2. If want to carry out ONLY code conversion.
...
PreExit d:\www\dll\my2www.dll:MyPreExit
...
DataFilter d:\www\dll\my2www.dll:MyDataFOpen:MyDat aFWrite:MyDataFClose
...
PostExit d:\www\dll\my2www.dll:MyPostExit
...
ServerInit D:\WWW\DLL\my2www.dll:MyInit D:\WORK_PRG\OBJ\WWW\OBJ\my2www.cfg, D:\WORK_PRG\OBJ\WWW\OBJ\wwwserv.exe
ServerTerm D:\WWW\DLL\my2www.dll:MyTerm
...
3. If want to carry out the control of access, code conversion and support
Virtual servers.
...
PreExit d:\www\dll\my2www.dll:MyPreExit
...
NameTrans * d:\www\dll\my2www.dll:MyNameTrans
...
ObjectType * d:\www\dll\my2www.dll:MyObjType
...
DataFilter d:\www\dll\my2www.dll:MyDataFOpen:MyDat aFWrite:MyDataFClose
...
PostExit d:\www\dll\my2www.dll:MyPostExit
...
ServerInit D:\WWW\DLL\my2www.dll:MyInit D:\WORK_PRG\OBJ\WWW\OBJ\my2www.cfg, D:\WORK_PRG\OBJ\WWW\OBJ\wwwserv.exe
ServerTerm D:\WWW\DLL\my2www.dll:MyTerm
...
4. For support My/2 it is necessary to add:
1. If want, that /My2 the directory was accessible to all, that I - @
Did not recommend in any way, it is enough to find in httpd.cnf a file
Example of the instruction Service and number(line) to enter:
Service /My2* D:\WWW\dll\my2www.dll:MyServiceMy2
Notice!!! Second parameter JUST /My2*
If want, that given URI was protected by server,
That is necessary correctly to make the appropriate instruction Protect
And at once ambassador it to insert a line:
Service /My2* D:\WWW\dll\my2www.dll:MyServiceMy2
In this case at first will be made check name and password
The user, and then service of inquiry on /My2*
Example:
...
Protection PROT-USER-MY2 {
PasswdFile d:\mptn\etc\my2.pwd
ACLOverride On
Mask All (**
DeleteMask All (**
PostMask All (**
PutMask All (**
GetMask All (**
AuthType Basic
}
Protect /My2* PROT-USER-MY2
Service /My2* D:\WWW\dll\my2www.dll:MyServiceMy2
...
It is necessary to tell about the instruction ServerInit d \ETC\httpd.cnf separately. Its(her) format the following:
ServerInit [a Way to my2www.dll] [a way to my2www.cfg], [a way to a file, which My2www will start in this moment (moment of start WWW server)]
5. Description of a file of a configuration
DENY_ACCESS FORBIDDEN 195.16.107. *, 194.84.32.70, 193.*.3*2.6*
DENY_ACCESS http: // www.disney.com 193.*.*.*
DENY_ACCESS [FORBIDDEN/Full_URL_name] [IPmask1]..., [IPmask100]
In this variable the masks IP of addresses, with which are described
The input(entrance) and capture of ANY documents from yours will be forbidden
by server. Or at attempt of access to yours server, the client will be
REDIRECTED in ANY other place. Can be listed
Up to 100 masks. It is possible to mention this instruction some times.
URL_DENY_ACCESS http: // www.porno.com/ / ~ alex/* 195.16.107. *, 194.84.32.70, 197.14.*3.*
URL_DENY_ACCESS ftp: // ftp.sura.com.ru/ / ~ dizelist/* 195.16.107.*
URL_DENY_ACCESS FORBIDDEN /*.gif 194.84.32.70
URL_DENY_ACCESS [FORBIDDEN/Full_URL_name] [URL mask] [IP mask1]..., [IP mask100]
In this variable the masks IP of addresses [IP maskN] are described,
Which with will be forbidden an input(entrance) and capture of the documents on a mask
[URL mask]. All can be no more than 100 URL mask and IP mask.
Also inquiry on ANYONE of URL can be REDIRECTED on ANYONE
Another (is not necessary on yours server).
KOI_CODEPAGE D:\WORK _ PRG\OBJ\WWW\OBJ\koi
WIN_CODEPAGE D:\WORK _ PRG\OBJ\WWW\OBJ\win
ISO_CODEPAGE D:\WORK _ PRG\OBJ\WWW\OBJ\iso
XXX_CODEPAGE [path\filename]
Way to a file of code conversion for XXX code pages.
KOI_URL_BEGIN koi, www
WIN_URL_BEGIN win, win1251, mustdie
ISO_URL_BEGIN iso
XXX_URL_BEGIN [anyname1], [anyname2]..., [anyname5]
To each coding can be up to 5 synonyms.
See item 2. The general description (my2www.dll can: [3.])
VIRTUAL_SRV dns.name.address.com, D:/PATH/SUBDIR/SUB-SUBDIR
These instructions in a file of a configuration can be up to 100.
By this instruction is described VIRTUAL server and that
Way on a local disk on which reflected all
Inquiries on given server.
In this case all inquiries about yours of WWW on the address
Dns.name.address.com, will be readdressed not
In a root directory server (it is usual D:/WWW/HTMLS)
And in D:/PATH/SUBDIR/SUB-SUBDIR.
Inside the documents on VIRTUAL server of the reference
Can be both absolute and relative.
Both those and others work. Is checked up.
MY2_SRV 194.84.32.1, 7777
In first parameter it is possible to specify as IP the address, and
DNS name. As second parameter it is necessary to specify
Number of port, on which My/2 Server accepts inquiries.
(in more detail about My/2 look http://penza.sura.com.ru/~alex/moreos2.shtml)
6. Gratitude
Many thanks Richard Gray for the explanatories in work GWAPI.
7. Restriction of the freely distributed version
The freely distributed version is absolutely full-function. Unique(sole)
Restriction this quantity of the specific instructions in a file of a configuration.
From version 0.5 DEMO:
In a file of a configuration of the instructions DENY_ACCESS can be up to 1.
----------- // --------------- URL_DENY_ACCESS can be up to 1.
----------- // --------------- VIRTUAL_SRV can be up to 1.
So, there is more given quantity My2WWW will not perceive.
Restrictions on code conversion and work with My/2 server is not put.
If you had questions or offers, write to me.
--------------------------------------- -------------------------------------
Alexandr A. Ivanov
Email: alex sura.com.ru
WWW: http://penza.sura.com.ru/~alex
--------------------------------------- -------------------------------------