Integrating Janus FTP and Janus Web Server: Difference between revisions
m (Created page with "If you have <var class="product">Janus Web Server</var>, you may have set up rules to simulate folders using <var>JANUS WEB ON</var>. For example, for your web server, you mi...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
If you have <var class="product">Janus Web Server</var>, you may have set up rules | If you have <var class="product">[[Janus Web Server]]</var>, you may have set up rules | ||
to simulate folders using <var>[[JANUS WEB ON]]</var>. | to simulate folders using <var>[[JANUS WEB ON]]</var>. | ||
For example, for your web server, you might have this rule: | For example, for your web server, you might have this rule: |
Revision as of 22:56, 17 February 2012
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
.