Integrating Janus FTP and Janus Web Server

From m204wiki
Jump to navigation Jump to search

If you have Janus Web Server, you may have set up rules to simulate folders using JANUS WEB ON. For example, for your web server, you might have this rule:

JANUS WEB W3216 ON /CGIBIN/* - OPEN FILE FTPTEST WITH X'BFFF' - CMD 'INCLUDE /CGIBIN/*'

This invokes procedures whose names start with /CGIBIN/, such as /CGIBIN/HELLO.UL. With Janus FTP, you can set up a prefixed folder to automatically prepend the /CGIBIN/ when storing a procedure. For example:

* Map to web rule JANUS FTP FTP01 ASSIGN /CGIBIN TO FILE FTPTEST PREFIX JANUS FTP FTP01 ALLOW /CGIBIN WRITE TO USER GLW

If you then execute the following sequence of FTP commands from an FTP client, the HELLO.UL procedure is stored as /CGIBIN/HELLO.UL, which matches the web rule pattern above:

CD /CGIBIN PUT HELLO.UL

The procedure can then be accessed from a web browser as http://your-url-goes-here/cgibin/hello.ul.

See also

The following topics complete the description of Janus FTP Server support: