How do I execute CGI scripts from any directory ?
[cgi-aliases] can be used to alias specific
directories for CGI usage. This is the fastest and most secure method of
adding another directory the execution of CGI scripts. This method is not
appropriate if you have CGI scripts that are found throughout your document
directories or need to be in the same directory as your documents.
To treat all files within your document directories that end in .pl
as PERL CGI scripts, a module must be used.
A default module cgi_module is provided to execute CGI scripts.
The following entry can be used to execute .pl files as CGI
scripts:
[modules]
*.pl = samples.dll:cgi_module
How do I restrict logging by IP address or request ?
Logging can be restricted using the Don't Log IPs and/or
Don't Log Requests configuration entries in the config/config.ini
file. A space separated list of IP addresses or requests can be provided for
each configuration entry to not log HTTP requests matching the
given IP or URL request. The wild-card character question-mark (?) can
be used to match a single character and star (*) can be used to pattern
match against multiple characters.
How do I add a page counter ?
To use the built-in page counter, you must create a file in the tmp
directory of the Sambar Server installation. The file should initially
contain the character 0 (you'll find the files tmp/index and
tmp/samples corresponding with the two counters found in the Sambar
Server samples. Each time the page with a counter is referenced, the
counter in the file is incremented. To create a new counter, we'll call
foobar and place it on a new page foobar.htm, we simple
create a file called foobar in the tmp directory and then
insert the following where we wish the counter to appear:
<IMG SRC="/session/pagecount?page=foobar">
The directory where the counter files are saved (tmp) can be
modified by altering the Application Directory configuration
parameter in the config.ini file.
How do I add/remove/modify users ?
All user management is performed from the User Management icon found
in the System Administration main page. After clicking on the
User Management icon, a list of users will be displayed. From
these forms, you can add, delete or update user profiles.
Changes to user accounts take effect immediately.
It is recommended that you modify the password of the "admin" user
prior to putting the Sambar Server on a public network. Simply click
on the "admin" account, and enter a new password into the Password
field. Then update the admin account.
How do I password protect a file/directory ?
The [restrict] section of the config/security.ini file is
used to restrict access to an individual file or directory of files. After
setting up a user or group of users, you can restrict access with an
entry such as:
[restrict]
/foobar = bob staff
The above entry restricts access to urls matching /foobar to
the user bob or the users in the group staff.
How do I increase the "Process Timeout" period of the server ?
The "Process Timeout" is for network operations determined by the
config/config.ini configuration entry:
[common]
Network Read Timeout = 300
The period (300) is in seconds.
How can display the current count of a page without increasing the page count ?
Stephen Goodson offers:
<!--#include file="C:/sambar416/tmp/counterfilename" -->
|