Synchronet v3.17b-Win32 (install) has been released (Jan-2019).

New Synchronet YouTube channel

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
server:web [2010/03/15 15:43]
digitalman
server:web [2015/11/06 10:02]
deuce [webctrl.ini per-directory configuration file] Document Rewrite and JSPreExec webctrl.ini keys.
Line 49: Line 49:
 === Authorization === === Authorization ===
  
-Default value: ''​Basic,​Default''​+Default value: ''​Basic,​Digest''​
  
 A comma-separated list of authentication mechanisms in order of preference. A comma-separated list of authentication mechanisms in order of preference.
Line 173: Line 173:
 Disable SSJS execution. Disable SSJS execution.
  
 +''​ALLOW_TLS''​
  
 +Enable TLS support.
 ==== Other configuration files ==== ==== Other configuration files ====
  
Line 216: Line 218:
 Each directory under the [[#​RootDirectory]] may have a ''​webctrl.ini''​ file which overrides certain settings for Each directory under the [[#​RootDirectory]] may have a ''​webctrl.ini''​ file which overrides certain settings for
 the directory it's in and all child directories. ​ Configuration keys may be set the directory it's in and all child directories. ​ Configuration keys may be set
-either globally, ​or in a per-filename group. ​ Using the * and ? wildcards as +either globally, in a per-filename group, or, in version 3.17 or greater, a per-directory-name group. 
-the group name such as ''​[*.html]''​. ​ The following keys may be used in these files:+Using the * and ? wildcards as the group name such as ''​[*.html]''​ or ''​[dirname/​]''​. ​ The following keys may be used in these files:
  
 === AccessRequirements === === AccessRequirements ===
Line 250: Line 252:
  
 For example, to require a login, but allow **any** user to access files in a For example, to require a login, but allow **any** user to access files in a
-directory, but only a sysop to access ''​*.log''​ files, the following could be used:+directory, but only a sysop to access ''​*.log''​ files and .git directories, the following could be used:
 <file webctrl.ini>​ <file webctrl.ini>​
 AccessRequirements=level 0 AccessRequirements=level 0
 [*.log] [*.log]
 +AccessRequirements=level 90
 +[*.git]
 AccessRequirements=level 90 AccessRequirements=level 90
 </​file>​ </​file>​
  
 +=== FastCGISocket ===
 +Specifies the socket and port of a FastCGI listener in the <​Address>:<​Port>​ format (ie: 127.0.0.1:​9000). ​ Should be used with wildcard sections like this:
 +<file webctrl.ini>​
 +[*.php]
 +FastCGISocket=127.0.0.1:​9000
 +</​file>​
 +
 +Added on November 1st, 2015 to CVS (in 3.17a).
 +
 +See [[howto:​php]] for details on using with PHP.
 +
 +=== Rewrite* ===
 +Specifies a Javascript snippet which can modify the http_request.request_string. ​ This allows internal redirects like the RewriteRule feature in Apache .htaccess files. ​ The key must *begin* with the string "​Rewrite"​ which may be followed by any legal INI key characters. ​ The order of execution is not guaranteed.
 +
 +Added on November 3rd, 2015 to CVS (in 3.17a).
 +
 +=== JSPreExec ===
 +A JavaScript snippet which is executed in the same context as Rewrite* lines, but before any Rewrites are executed. ​ This allows load()ing some common code before execution... ie: ''​JSPreExec=load(js.startup_dir+'/​rewrite_lib.js'​);''​.
 +
 +Added on November 3rd, 2015 to CVS (in 3.17a).
  
 ===== JavaScript Objects ===== ===== JavaScript Objects =====

In Other Languages