Sambar Server Documentation

Frequently Asked Questions

Part 2 of 2 [ Contents ] [ Previous ] [ Next ]

General Configuration

How do I configure the Sambar Server to serve Java applets?
How can the Sambar Server access mapped drives?
How can the Sambar Server serve WAP content?
What does the Automatic Directory Readme directive do?
How do I stop IE from caching dynamic content?

Sambar Service Tuning

Will the Sambar Server run as an NT Service?
Can I force the server to bind to a specific IP address (on a multi-homed machine)?
How do I modify the user login timeout duration?
How do I change the realm name for authentication requests?
How do I add MIME types to the Sambar Server?
Is it possible to filter HTTP logs? I would like to not log my requests. (e.g. to administration pages)

Interface

How can I redefine an icon displayed with files when listing a directory?
Can I customize the error messages returned from the Sambar Server?
How do I implement multiple default documents?

FTP Server

How do I change the FTP login/logout messages?
Will the FTP server interact with the NT, LDAP or Radius user database for username/password/directory information?

Proxy Server

Will the Sambar Server act as a proxy server?
How do I get AOL Instant Messenger or ICQ to work with the proxy?

General Questions

Does the encryption used in the passwd and RC@encrypt use a server-specific seed?
What is the maximum length of a configuration entry in the security.ini or config.ini files?
What is the maximum size I can upload as POST arguments or using multipart/form-data?
Why does my Microsoft Access ODBC connection consume so much of the CPU resources when idle?
Why does the Sambar Server stop responding when my laptop goes into suspend mode?
Why are there sometimes "ghost" watcher or Sambar Server icons?
Why won't the server start if the calendar is set past 2038?
What do the 499 status codes in the access log mean?
What is the robots.txt file used for?
What is the favicon.ico used for?
What is the /session directive?
How can I expose log reports (/sysadmin/reports/server) to my users?

Miscellaneous Troubleshooting and Questions

Are you browsing a local file (file://) rather than an HTTP connection (http://)?
Is there a way I can use spaces in my page names?

 

General Configuration

How do I configure the Sambar Server to serve Java applets?

Java applets are served up just like images or HTML files. You do not need to do anything special. If your applets aren't working, make sure that you are pointing to the applet properly in your APPLET tag. Java servlets are supported as well, see the JavaEngine documentation for details.


How can the Sambar Server access mapped drives?

If run as an NT Service you must make sure to give the Sambar Server service a user with which to LOGON during startup and that user must belong to the ADMINISTRATORS group in order to access mapped drives.


How can the Sambar Server serve WAP content?

WAP sites are generally regular HTTP servers. The end-user's WAP-enabled device contacts a gateway which then makes an HTTP request, compiles the data and sends the compacted version back to the device. The HTTP server need only support the basic WAP mime types:

application/vnd.wap.wmlc wmlc
application/vnd.wap.wmlsc wmlsc
image/vnd.wap.wbmp wbmp
text/vnd.wap.wml wml
text/vnd.wap.wmls wmls

What does the Automatic Directory Readme directive do?

If Automatic Directory listings are enabled, then before listing the contents of the directory, the server first looks for a README file to display above the directory listing. You can go to any directory where you do not have an index.htm file and create a file called README. Then visit the directory with your browser and the contents of the README file should be listed before the directory listing.


How do I stop IE from caching dynamic content?

IE requires the Expires header for setting the expiration of dynamic content. The following Expires header demonstrates an example HTML page that forces the expiration of content:

<HTML><HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD><BODY>
</BODY></HTML>


Sambar Service Tuning

Will the Sambar Server run as an NT Service?

Yes. The Sambar Server NT Service can be found at bin/ntserver.exe. The instructions for installation and execution of the Sambar Server NT Service can be found in the Installation Documentation. In addition, an NT Service monitor can be found at bin/ntview.exe; the NT Monitor connects to the NT Service and displays log activity. The source code for the Sambar Server NT Service and NT Monitor can be found in the samples/source directory.


Can I force the server to bind to a specific IP address (on a multi-homed machine)?

Yes. In the config.ini file there is an entry in the [common] section which can be used to force the server to bind to a specific IP address at startup. The parameter, Force IP Bind should be set to the single IP address you wish the server to be bound to.


How do I modify the user login timeout duration?

User logins are automatically timed out after the system defined Timeout Duration; the login timeout duration defaults to 30 minutes. To modify the user session timeout, modify the Timeout Duration in the [events] section of the config.ini file.


How do I change the realm name for authentication requests?

The realm name is defined in the Security Realm configuration variable defined in the config/config.ini file.


How do I add MIME types to the Sambar Server?

MIME entries are located in the config/mime.ini configuration file.


Is it possible to filter HTTP logs? I would like to not log my requests. (e.g. to administration pages)

The configuration parameter Don't Log Requests in the config/config.ini can be set to /sysadmin* for to eliminate all requests for pages starting with /sysadmin. You can also restrict by IP address using the Don't Log IPs.



Customizing Icons

How can I redefine an icon displayed with files when listing a directory?

The configuration file config/iconmap.ini contains the icon mappings for displaying files when a directory listing is performed by the server.


Can I customize the error messages returned from the Sambar Server?

Yes. All error messages can be found in the messages directory where the Sambar Server is installed. Any modifications made to these error files will reflected in subsequent Server error responses. In addition, to use the Sambar scripting within the error messages, rename the error file you wish to use scripting within so that the file ends with the .stm extension rather than .htm. For example the file messages/notfnd.htm can be renamed messages/notfnd.stm; after making this change, you can add tags such as <RCEdocument_uri> and <RCEreferer> to indicate the specific document that was not found along with the referring page.


How do I implement multiple default documents?

The "Default Page" configuration variable (config.ini and vhost.ini) can be a space separated list of files to search for when no document is specified.



FTP Server

How do I change the FTP login/logout messages?

The FTP login message is returned from the FTP_WELCOME message defined in the config/macros.ini file. If there is no FTP_WELCOME define, then no welcome message is returned. The logout message is returned from the FTP_GOODBYE macro definition. You must restart the Sambar Server after modifying the config/macros.ini file in order for your changes to take effect.


Will the FTP server interact with the NT, LDAP, SQL Server or Radius user database for username/password/directory information?

Yes. NT Domain authentication, as well as LDAP or Radius authentication are available in addition to the internal server authentication mechanism. See the Authentication documentation for details on configuring these features. Further, I provide all of the source code for the username/password validation and directory location for HTTP as well as FTP (see samples/source/login.c -- http_connect() and ftp_connect()).



Proxy Server

Will the Sambar Server act as a proxy server?

The Sambar Server comes with a non-caching HTTP proxy server as well as SMTP, POP3, IMAP4 and pass-thru proxy servers. These proxies perform modest security filtering (the implementation code is included with the server, see samples/source/security.c.

The proxies were designed to facilitate multiple clients on a private network connecting to the Internet on a single PPP (dialup) connection. This can be implemented by having one machine connect to the Internet via modem while also listening to requests from their local network. Note that the gateway machine must be configured with two IP addresses -- one for the modem connection and one for the ethernet connection -- to support this operation.

The "Act As HTTP Proxy", "Act As SMTP Proxy", "Act As POP3 Proxy" and "Act As IMAP4 Proxy" parameters in the configuration file can be used to turn these features on. All proxy configuration can be performed via the system administration interface.

See the Proxy documentation for more details.


How do I get AOL Instant Messenger or ICQ to work with the proxy?

These programs rely on the SOCKS protocol to support operation behind a proxy. You will need to enable the SOCKS 5 proxy within the Sambar Pro Server and setup DNS on your local network to get these to work.

Important: The SOCKS5 proxy has a 300 second idle timeout, so ICQ must be configured accordingly.



General Questions

Does the encryption used in the passwd and RC@encrypt use a server-specific seed?

The encryption performed in the server uses a "seed" found in the config.ini file: Public Key = Sambar Server Encryption Key. This key can be modified to ensure that encryption on the server is different on each server installation; modifying this key affects all passwd entries as well as RC@encrypt function calls. The one drawback to changing this key is that the sacrypt and htpasswd utilities have this seed hard-coded in them (Sambar Server Encryption Key). A future release will permit these utilities to be passed in an arbitrary seed.


What is the maximum length of a configuration entry in the security.ini or config.ini files?

The maximum length of any single entry line in a configuration file is 1024 bytes.


What is the maximum size I can upload as POST arguments or using multipart/form-data?

The Sambar Server has a default limit of 100KB for all content length (this applies to all GET/POST arguments as well as multipart/form-data). This limit can be increased or decreased by modifying the Maximum Content-Length parameter in the config.ini file. Authenticated users are restricted to the limit specified by the Maximum User Content-Length parameter; this allows the system administrator to increase POST limits for authenticated users (i.e. to allow for larger WebMail attachments.)


Why does my Microsoft Access ODBC connection consume so much of the CPU resources when idle?

When using the MDAC 2.1 version of the Microsoft Access ODBC driver, an excessive amount of network packet and/or file activity occurs even when the ODBC connection is idle. The PageTimeout setting for the ODBC data source (DSN) can be increased to reduce the number of CPU cycles consumed on idle connections. Many thanks to Bert Hanks for tracking down this problem.


Why does the Sambar Server stop responding when my laptop goes into suspend mode?

Typically when a laptop goes into suspend mode it shuts down or puts on standby all unnecessary services. Networking is considered one of these. The solution is to disable the suspend mode on the machine. Many thanks to Patrick Maddox for identifying and documenting this problem.


Why are there sometimes "ghost" watcher or Sambar Server icons?

The ghost icons are a problem with the system tray updates. The problem is that if the Sambar Server is not shutdown gracefully (or more often, when it shuts down the Watcher Daemon), the program does not unregister itself with the system tray. These ghost icons go away when you move your mouse over them.


Why won't the server start if the calendar is set past 2038?

Time is calculated from 1970 in seconds on most machines using the time() function. In 2038, the number of seconds that can be stored in an integer is reached and time() returns -1. The Sambar Server requires time() for many internal uses so it won't start if time() returns -1 on startup. The move to 64-bit machines will eliminate this problem long before 2038 so there hasn't been a great deal of effort to fix this issue.


What do the 499 status codes in the access log mean?

The 499 status indicates that the user canceled the HTTP request before the entire document could be downloaded.


What is the robots.txt file used for?

The robots.txt file is for web robots like those used by search engines. This file indicates what areas of the site may be searched and what areas should not be searched. See http://www.robotstxt.org/wc/robots.html for more information.


What is the favicon.ico used for?

Visitors to your site using IE 5.0 or higher who add your URL to their Favorites automatically request /favicon.ico from the server. Internet Explorer displays this icon file by your site's URL in the Favorites pulldown menu.


What is the /session directive?

The /session directive in an URL is used to indicate that a Sambar Server RPC should be executed to fulfill the request. There is no /session directory. The parameter immediately following /session (i.e. /session/sendmail) corresponds to the RPC to be executed and parameters to pass to the RPC. The System Administrator console reports provide a list of all RPCs available for execution via the /session directive and the security restrictions imposed on each RPC. Many of the RPCs configured for execution are provided in source code in the samples subdirectory of the Sambar Server installation.


How can I expose log reports (/sysadmin/reports/server) to my users?

Many folks have questioned how to expose the server reports calendar displayed in the System Administration forms to end-users. Since the reports are placed in the /sysadmin folder which requires an administrator login, a workaround is to setup an alias in the config/mappings.ini file, i.e.

/report/ = d:/sambar63/sysadmin/reports/
With this alias, users can access the reports directory via /reports/ and bypass the System Administration login requirement.


© 1998-2006 Sambar Technologies. All rights reserved. Terms of Use.