MyWebServer
Home Free Downloads Docs FAQ's The Collective Community Tools Help About MyWebServer

MyWebServer |   Technical Info
 
 

Local Configuration

When you click the Config button MyWebServer launches a browser that immediately allows you to log on and configure MyWebServer. MyWebServer is able to do this even if the server is not up. How does it do this? By using a different port than is normally used by the web. When you select config, MyWebServer starts a second web server at port 9600. If port 9600 is not free then MyWebServer tries the next higher port until it finds a free port. It is through that port that local configuration takes place.

Format of the Configuration File

Other than MyWebServer.exe the only thing required to get MyWebServer running is a configuration file. This file is named MyWebServer.INI and should be stored in the same directory as MyWebServer. MyWebServer.ini is a standard windows ini type file. The following is a typical MyWebServer.ini file.

[Config]
servername=YourISP.com/YourWebSite
wwwroot=C:\Program Files\MyWebServer\WWWRoot
default=index.html
logs=N
list=Y
cgi=N
port=80
defaultPageProperties=bgColor=#ffffff
searchEnabled=Y
homeEnabled=Y
homePageLocation=index.html
favoritesEnabled=Y
favoritesLocation=C:\WINDOWS\Favorites
userListEnabled=Y
universalNavBarEnabled=Y
uploadEnabled=Y
uploadMaxSizeKB=1000
uploadSaveLocation=C:\Program Files\MyWebServer\WWWRoot
messageUploadEnabled=N
messageMaxSizeKB=1000
messageSaveLocation=C:\Program Files\MyWebServer\WWWRoot
postEnabled=N
postMaxSizeKB=1000
postSaveLocation=C:\Program Files\MyWebServer\WWWRoot
redirectorEnabled=N
ftpSiteName=YourISP.com
ftpUserID=Your FTP User ID
ftpPassword=Your FTP Password
ftpPath=Your Home Page Location
ftpUploadFileName=index.html
useJavaScriptRedirector=N

[Server-2-Config]
servername=YourISP.com/YourWebSite
wwwroot=C:\Program Files\MyWebServer\WWWRoot
adminid=
adminpw=
default=index.html
logs=N
list=Y
cgi=N
port=9600
defaultPageProperties=bgColor=#ffffff
searchEnabled=Y
homeEnabled=Y
homePageLocation=index.html
favoritesEnabled=Y
favoritesLocation=C:\WINDOWS\Favorites
userListEnabled=Y
universalNavBarEnabled=Y
uploadEnabled=Y
uploadMaxSizeKB=1000
uploadSaveLocation=C:\Program Files\MyWebServer\WWWRoot
messageUploadEnabled=N
messageMaxSizeKB=1000
messageSaveLocation=C:\Program Files\MyWebServer\WWWRoot
postEnabled=N
postMaxSizeKB=1000
postSaveLocation=C:\Program Files\MyWebServer\WWWRoot
redirectorEnabled=N
ftpSiteName=YourISP.com
ftpUserID=Your FTP User ID
ftpPassword=Your FTP Password
ftpPath=Your Home Page Location
ftpUploadFileName=index.html
useJavaScriptRedirector=N

[Server-2]
secondPortEnabled=N

[Mime]
gif=image/gif
jpeg=image/jpeg
jpg=image/jpeg
html=text/html
htm=text/html
pps=application/pps
pot=application/pot
ppt=application/ppt
doc=application/msword
[Script]
pl=perl.exe
cgi=perl.exe
[Request]
goodByeKiss=4000

The entries under the config section map exactly to the configurable items that can be modified using the config command. For a list of their meanings click here.

The [Mime] section holds all of the mime mappings for MyWebServer. The format is [file extension]=[mime tag]. This tells MyWebServer which mime tag to send for which file.

The [Request] section holds settings specific to web Requests. The goodByeKiss entry adjusts the amount of time MyWebServer keeps connections opened in Milliseconds. By default the value of goodByeKiss is set to 3000 or 3 seconds. Values lower than 3000 can be used on faster PC's. Slower PC's can use values greater than 3000. The value can be increased if difficulties are encountered retrieving pages from MyWebServer.

Special Entries in MyWebServer ConfigFile
You can make entries in the MyWebServer Configuration file that can effect the look and style of MyWebServers built in application pages. The configuration file is named MyServer.ini and it is located in the same directory as MyWebServer.exe. You can add entries with the following names in the [Config] or [Server-2-Config] sections of the file.


vpPageProperties                A Page Properties String like: bgColor=#ff00ff
vpTableProperties               A Table Properties String like: BORDER=0
vpTHRowProperties               A Table Header Row Properties String like: bgColor=#66ccff
vpOddRowProperties              A Odd Row Number Properties String like: bgColor=#cbfad2
vpEvenRowProperties     A Even Row Number Properties String like: bgColor=#caeaff
vpNavBarBtnProperties   A Nav Bar Buttons Properties String like: target='_parent'
vpNavBarBtnImgProperties        A Nav Bar Buttons Image Properties String like: height='25' width='75'
vpEnablePageHeaders     A Enable Headers Properties String like: Y

 

 
 
 

[ Home ] [ Downloads ] [ Docs ] [ FAQs ] [ The Collective ] [ Community ] [ Tools ] [ Help ] [ About ]