Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
server:web [2023/12/19 19:12] – [Startup INI [Web] Section Keys] Create a quick-reference settings table digital man | server:web [2023/12/23 02:14] (current) – [Configure] Update SCFG screenshot digital man | ||
---|---|---|---|
Line 7: | Line 7: | ||
The Synchronet Web Server is a mostly HTTP 1.1 compliant web server capable of | The Synchronet Web Server is a mostly HTTP 1.1 compliant web server capable of | ||
handing basic web servicing tasks. | handing basic web servicing tasks. | ||
- | general-purpose web server one would come to expect | + | general-purpose web server one would come to expect, including |
It also, through Server-Side JavaScript (SSJS), allows dynamic pages to be | It also, through Server-Side JavaScript (SSJS), allows dynamic pages to be | ||
Line 13: | Line 13: | ||
- | ===== Configuration | + | ===== Configure |
- | ==== Initialization Settings | + | The Synchronet Web Server can be configured via [[util: |
+ | |||
+ | < | ||
+ | ╔══════════════════════════════════════════════════════════════════╗ | ||
+ | ║ Web Server | ||
+ | ╠══════════════════════════════════════════════════════════════════╣ | ||
+ | ║ │Enabled | ||
+ | ║ │Log Level | ||
+ | ║ │HTTP Interfaces | ||
+ | ║ │HTTP Port | ||
+ | ║ │HTTPS Support | ||
+ | ║ │HTTPS Interfaces | ||
+ | ║ │HTTPS Port 443 ║ | ||
+ | ║ │SSJS File Extension | ||
+ | ║ │Index Filenames | ||
+ | ║ │Content Root Directory | ||
+ | ║ │Error Sub-directory | ||
+ | ║ │Strict Transport Security | ||
+ | ║ │Virtual Host Support | ||
+ | ║ │Access Logging | ||
+ | ║ │Max Clients | ||
+ | ║ │Max Inactivity | ||
+ | ║ │Filebase Index Script | ||
+ | ║ │Filebase VPath Prefix | ||
+ | ║ │Filebase VPath for VHosts | ||
+ | ║ │Authentication Methods | ||
+ | ║ │Output Buffer Drain Timeout | ||
+ | ║ │Lookup Client Hostname | ||
+ | ║ │CGI Support | ||
+ | ║ │CGI Directory | ||
+ | ║ │CGI File Extensions | ||
+ | ║ │CGI Default Content-Type | ||
+ | ║ │CGI Max Inactivity | ||
+ | ║ │JavaScript Settings... | ||
+ | ║ │Failed Login Attempts... | ||
+ | ╚══════════════════════════════════════════════════════════════════╝ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ... or via [[monitor: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ... or via manual edit of the '' | ||
+ | |||
+ | ==== sbbs.ini | ||
The '' | The '' | ||
Line 30: | Line 75: | ||
| BindRetryCount | | BindRetryCount | ||
| BindRetryDelay | | BindRetryDelay | ||
- | | MaxClients | + | | MaxClients |
| MaxInactivity | | MaxInactivity | ||
| MaxCgiInactivity | | MaxCgiInactivity | ||
Line 43: | Line 88: | ||
| Authentication | | Authentication | ||
| HttpLogFile | | HttpLogFile | ||
- | | FileIndexScript | + | | FileIndexScript |
- | | FileVPathPrefix | + | | FileVPathPrefix |
- | | FileVPathForVHosts | + | | FileVPathForVHosts |
| OutbufDrainTimeout | | OutbufDrainTimeout | ||
| TempDirectory | | TempDirectory | ||
| Options | | Options | ||
- | **Detailed setting descriptions ** | + | === Options === |
+ | The '' | ||
+ | |||
+ | Default value: **'' | ||
+ | |||
+ | In addition to the [[config: | ||
+ | |||
+ | == DEBUG_RX == | ||
+ | |||
+ | Log all received data to the console log, as well as various | ||
+ | extra bits related to receiving data. | ||
+ | |||
+ | == DEBUG_TX == | ||
+ | |||
+ | Log all transmitted data except the reply body itself, as well | ||
+ | as various extra bits of information related to transmitted | ||
+ | data. | ||
+ | |||
+ | == DEBUG_SSJS == | ||
+ | |||
+ | Log server-side JavaScript execution details. | ||
+ | |||
+ | == VIRTUAL_HOSTS == | ||
+ | |||
+ | Supports name-based virtual hosts. | ||
+ | host names, you can have each host name return unique content | ||
+ | depending on which hostname is used. ie: if | ||
+ | '' | ||
+ | system, you could have FreeBSD-specific pages on one, and | ||
+ | general *nix stuff on the other. | ||
+ | |||
+ | A virtual host is added by simply putting the desired content | ||
+ | into a sub-directory of [[# | ||
+ | ie: '' | ||
+ | the request host name (very old browsers, or some automated | ||
+ | tools) they will be served out of document root. | ||
+ | It is therefore a good idea to put links to your various | ||
+ | virtual hosts in an '' | ||
+ | like this: | ||
+ | <code html> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | Your browser is either too old to support | ||
+ | name-based virtual hosts, or you have visited a | ||
+ | virtual hosts that is not yet configured. | ||
+ | following are hosted here:< | ||
+ | <a href=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | == NO_CGI == | ||
+ | |||
+ | Disable CGI/FastCGI script execution. | ||
+ | |||
+ | == HTTP_LOGGING == | ||
+ | |||
+ | Enable logging to a Common Logfile Format log as described in | ||
+ | the HttpLogFile section. | ||
+ | programs (like Webalizer: http:// | ||
+ | |||
+ | == NO_JAVASCRIPT == | ||
+ | |||
+ | Disable SSJS execution. | ||
+ | |||
+ | == ALLOW_TLS == | ||
+ | |||
+ | Enable TLS/SSL support. | ||
+ | |||
+ | == HSTS_SAFE == | ||
+ | |||
+ | Indicates that all URLs available via http are also available via https and redirects clients who want a TLS session to the https location. | ||
+ | |||
+ | ==== Reference ==== | ||
+ | |||
+ | Web Server configuration settings reference: | ||
+ | |||
=== RootDirectory === | === RootDirectory === | ||
Line 160: | Line 285: | ||
A Server-side JavaScript (SSJS) file to execute and provide HTML/CSS indexes to file libraries and directories accessed via virtual file paths. | A Server-side JavaScript (SSJS) file to execute and provide HTML/CSS indexes to file libraries and directories accessed via virtual file paths. | ||
- | |||
- | === Options === | ||
- | |||
- | Default value: '' | ||
- | |||
- | The '' | ||
- | |||
- | **'' | ||
- | |||
- | Log all received data to the console log, as well as various | ||
- | extra bits related to receiving data. | ||
- | |||
- | **'' | ||
- | |||
- | Log all transmitted data except the reply body itself, as well | ||
- | as various extra bits of information related to transmitted | ||
- | data. | ||
- | |||
- | **'' | ||
- | |||
- | Log server-side JavaScript execution details. | ||
- | |||
- | **'' | ||
- | |||
- | Supports name-based virtual hosts. | ||
- | host names, you can have each host name return unique content | ||
- | depending on which hostname is used. ie: if | ||
- | '' | ||
- | system, you could have FreeBSD-specific pages on one, and | ||
- | general *nix stuff on the other. | ||
- | |||
- | A virtual host is added by simply putting the desired content | ||
- | into a sub-directory of [[# | ||
- | ie: '' | ||
- | the request host name (very old browsers, or some automated | ||
- | tools) they will be served out of document root. | ||
- | It is therefore a good idea to put links to your various | ||
- | virtual hosts in an '' | ||
- | like this: | ||
- | <code html> | ||
- | < | ||
- | < | ||
- | < | ||
- | </ | ||
- | < | ||
- | Your browser is either too old to support | ||
- | name-based virtual hosts, or you have visited a | ||
- | virtual hosts that is not yet configured. | ||
- | following are hosted here:< | ||
- | <a href=" | ||
- | <a href=" | ||
- | </ | ||
- | </ | ||
- | </ | ||
- | |||
- | **'' | ||
- | |||
- | Disable CGI script execution. | ||
- | |||
- | **'' | ||
- | |||
- | Enable logging to a Common Logfile Format log as described in | ||
- | the HttpLogFile section. | ||
- | programs (like Webalizer: http:// | ||
- | |||
- | **'' | ||
- | |||
- | Disable SSJS execution. | ||
- | |||
- | **'' | ||
- | |||
- | Enable TLS support. | ||
- | |||
- | **'' | ||
- | |||
- | Indicates that all URLs available via http are also available via https and redirects clients who want a TLS session to the https location. | ||
==== Other configuration files ==== | ==== Other configuration files ==== | ||
Line 276: | Line 325: | ||
- | ==== webctrl.ini | + | ==== webctrl.ini ==== |
Each directory under the [[# | Each directory under the [[# | ||
the directory it's in and all child directories. | the directory it's in and all child directories. | ||
Line 283: | Line 333: | ||
=== AccessRequirements === | === AccessRequirements === | ||
- | Specifices | + | Specifies |
files in this directory. | files in this directory. | ||