Getting started with Janus Web Server: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Created page with "==Getting Started with Janus Web Server== How the server will respond to a request from a browser is determined by the JANUS DEFINE command and by JANUS WEB commands for the ser...")
 
Line 1: Line 1:
==Getting Started with Janus Web Server==
==Getting Started with Janus Web Server==


How the server will respond to a request from a browser is determined by the JANUS DEFINE command and by JANUS WEB commands for the server port. See the [[Janus Commands]] for an explanation of how '''JANUS DEFINE''' works for a Web, and [[Defining Web Rules]], which describes Janus Web Server processing based on the JANUS WEB command. The Janus TCP/IP Base Reference Manual contains complete JANUS DEFINE information, that is, for products in addition to Janus Web Server.
How the server will respond to a request from a browser is determined by the JANUS DEFINE command and by JANUS WEB commands for the server port. See the [[Janus commands]] for an explanation of how '''JANUS DEFINE''' works for a Web, and [[Defining Web Rules]], which describes Janus Web Server processing based on the JANUS WEB command. The Janus TCP/IP Base Reference Manual contains complete JANUS DEFINE information, that is, for products in addition to Janus Web Server.


Sample server “rules” decks and applications are included in the SIRIUS (as of version
Sample server “rules” decks and applications are included in the SIRIUS (as of version

Revision as of 20:24, 9 September 2011

Getting Started with Janus Web Server

How the server will respond to a request from a browser is determined by the JANUS DEFINE command and by JANUS WEB commands for the server port. See the Janus commands for an explanation of how JANUS DEFINE works for a Web, and Defining Web Rules, which describes Janus Web Server processing based on the JANUS WEB command. The Janus TCP/IP Base Reference Manual contains complete JANUS DEFINE information, that is, for products in addition to Janus Web Server.

Sample server “rules” decks and applications are included in the SIRIUS (as of version 6.8) or JANUS (for Sirius Mods versions prior to 6.8) Model 204 file that comes on the Sirius product tape:

  • To implement a server, alter one of the sample sets of rules — procedures prefixed with JANWEB_CONF — to your site's requirements. The rules can be re-executed while the server is up, and even while users are connected. So it is easy to start a Janus Web Server port and tune its configuration: just point your browser to it, and modify JANUS WEB commands and the procedures they reference until the Web Server has the right properties.
  • The SIRIUS (or JANUS) file also contains a complete Web-based application which can be used as is or altered to suit your needs. The application-level API is a simple set of $functions that provides all the power you need to write complex web=based applications.

Basically, incoming URLs are treated as tokens, and the Web Server can simply return the requested resources from the Model 204 procedures where they are stored (HTML, GIF files, and other binaries can be stored in Model 204 procedures). Or, the URL can be used as a trigger to initiate a User Language application which can process forms, build custom HTML documents, or take other actions. Janus Web Server comes with two utilities for loading files into Model 204 procedures:

SIRPIPE, which uses Model 204 BATCH2 threads, and SIRPUT, which uses HTTP PUT. Both of these utilities can load GIFs, JPGs, WAV files, AVI files, Adobe Portable document format files (PDFs), and any other binaries into Model 204. SIRPIPE and SIRPUT are described in detail in “Loading with the SIRPIPE and SIRPUT Utilities”.

In addition to these utilities, binary files can be loaded to Model 204 using the Form Based Upload utility that appears on the default home page when Janus Web Server is installed. This is described further in Uploading Files. Also, after a small set of "receive" rules are defined, HTTP-PUT uploads can be used to migrate entire directories from a local machine to Janus Web Server. To learn about HTTP PUT capabilities, see “HTTP PUT support” on page 356, and investigate the "Publish" feature of your web browser. Lastly, the Janus FTP Server lets you load directly to and from Model 204 procedure files. The Janus FTP Server is a Janus Sockets product

References and links