Home Web Server
Home Web Server
Home Web Server
Introduction
Home Web Server is a freeware Windows web server with lots of features.
This is a very common saying, but this time – the phrase has the real
meaning. To mention some of home web server features: There is support
for open SSL, support for PHP, support for CGI application, support for
executing ISAPI extensions, server-replace-tags, virtual root aliases, and
much more. This document will describe functions included.
1 of 19
Home Web Server
3. Then click “Start server” button. Next you see is that status bar says
that your web server has been started at port 80 and also to indicate
the web server is running the edit box at bottom left corner turns to
green.
4. Next switch to “System log” tab from the bottom of the window.
5. Run your default internet browser and navigate to address:
http://127.0.0.1. This address always re-presents your local computer.
6. To check that the default page served is coming from your local
computer, check out the home web server log (the one we just
switched the view to). It should now look like this:
7. You are now done with your first steps to run your own local web
server.
It was not so hard, wasn’t it? The default page explains also some of the
home web server features. By reading that page through and checking
out the http source files located under the installation path of home web
server you can easily build up very professional looking home page for
your self.
2 of 19
Home Web Server
Settings, Defaults
Server name:
For each client connected the home web server creates session,
which will carry on clients username and password for example. If
you set this timeout very short the client might not be able to
browse the “member” pages if defined – because their data are
timed out. Session timeout counter is restarted always on clients
last request time.
3 of 19
Home Web Server
Enable server-replace-tags:
When checked, home web server will start the http (and https)
server on program startup.
4 of 19
Home Web Server
Settings, Responses
This is root directory of your web server. And all users that has not
logged in are served with contents of this directory. By first startup
the program checks out where it was installed and then points to
the default page (installation dir / http) you saw on first startup if
following the step-by-step example.
5 of 19
Home Web Server
Templates directory:
Response files:
Response files are defined by only filename. The response files are
always checked from templates directory.
6 of 19
Home Web Server
Mime list tab on http settings window contains the mime types that http
server will check before serving out any document. By default, most of the
mime types are already defined.
7 of 19
Home Web Server
8 of 19
Home Web Server
This is one of the values that is used in CGI applications. Some CGI
applications use this CGI parameter.
PHP compiler:
If you want to serve out PHP files you need to use external PHP
compiler available from http://www.php.org for example. This
value is pointing to it’s default installation path C:\PHP\PHP.exe.
PHP.exe is really considered as CGI application, so the CGI
application must be enabled to serve out compiled PHP files.
9 of 19
Home Web Server
10 of 19
Home Web Server
Root aliases mean totally different web root paths for clients requesting
documents using these aliases after your domain name. Note that root
aliases should always have the “/” in the beginning.
Example:
Location = http://127.0.0.1/~matti/forum.html
If there is root alias defined for “/~matti”, the server changes this
clients root to directory defined for this. In this example the
documents will served from D:\HTTP\MATTI.
11 of 19
Home Web Server
Domain aliases mean totally different web root paths for clients
connecting to your ip address using different domain name. By setting
these values you can run unlimited amount of domain names on this very
same web server, and all those domains can really have their own web
roots.
Example:
12 of 19
Home Web Server
Settings, Security
On security tab in http settings window, there are all Open SSL related
items. They should be filled as follows:
SSL / TLS:
13 of 19
Home Web Server
Certification file:
Key File:
Password phrase:
When the HTTPS server is started the server needs to have the
correct password for the certification. This password is always
given when the certificate is created.
For more information about certificates and Open SSl, please visit
http://www.openssl.org.
14 of 19
Home Web Server
Server-Replace-Tags
If the server replace tags on http server settings are enabled the server
will replace html and text file following tags:
||DIRLIST(alias;directory)
Example tag:
||DIRLIST(/temp/;f:\http\pub\temp\)
15 of 19
Home Web Server
||FILESIZE(filename)
Example tag:
||FILESIZE(f:\http\pub\index.html)
||FILEDATE(filename)
||MONITORCOUNT(filename)
||MONITORCOUNTTODAY(filename)
||MONITORAVGPERDAY(filename)
16 of 19
Home Web Server
To modify or add http member client, you have to click open the Http
Settings tab from the bottom of user interface window. From that tab click
“New client” to add new client to member list or “Modify Client” to modify
existing member data. When starting to modify member, you must first
select member to modify from list below the buttons.
User name:
User name is the field to check when client tries to log in into his
private web pages. This field is case sensitive.
Password:
Home directory:
17 of 19
Home Web Server
To allow clients log into their personal pages, you must define login form
and logout form located into public pages (anonymous section). Forms
should be build up as follows:
Login form:
Logout form:
Note, that these are just examples. Important thing on these forms are
the hidden inputs and of course when logging in there must be username
and password that are send as parameters on post.
18 of 19
Home Web Server
Log Settings
Log settings window can be found on system log tab. Log settings
contains the settings how different items are logged while server is
running.
Visible log book will contain maximum this amount of lines. All lines
above this count will be just erased. Default is set to 500 lines.
If this checkbox is checked then home web server won’t log any
files served with mime type containing text “image”, this basically
will prevent logging of all images, unless image type is not defined
in mime type list in http settings. Default is not checked.
If checked home web server wont log any files served containing
“text” in its mime type definition.
If checked all files served will be logged into the file defined into
edit box below. Select file before checking this checkbox by clicking
the browse button on right.
19 of 19