i | n | f | r | a | d | i | g |
Web directive | Meaning |
---|---|
(can occur in 'ifweb.txt' file) | |
NOHTTP [0|1] | HTTP web server |
NOHTTPS [0|1] | HTTP+SSL web server |
HTTP_PORT 80 | HTTP port |
HTTPS_PORT 443 | HTTPS port |
ADMIN_PORT 80 | Web-admin port |
LOGW ../data/web.log | Web-server log files |
LOGFILEFORMAT [clf|eclf|iis|eiis] | Specify log file format |
HTTPTIMEOUT seconds | HTTP idle connection timeout in seconds (default is 300) |
HTTPCACHEINTERVAL hours | HTTP proxy cache time (default is 4 hours) |
SCRIPTTIMEOUT seconds | Script timeout in seconds (default is 90) |
INDEX filename | Default HTML page |
SSI [.ext] | Can process server-side includes in the web-server (but only for extension) |
MAPMIME .ext mimetype | Define mapping between a file extension and MIME type |
MAPCGI .ext program | Define mapping between file-extension and program |
ISAPI .ext dllname | Map a file-extension to an ISAPI DLL |
<VHOST hostname> | Start mapping virtual host |
</VHOST> | End mapping virtual host |
<VUSER userid> | Start mapping virtual user |
</VUSER> | End mapping virtual user |
<VDIR virtual> | Start mapping virtual directory for a virtual host or default |
</VDIR> | End mapping virtual directory |
ALIAS account | Alias the virtual user to a real account |
DIRLIST [0|1] | Can produce directory listings for a virtual host or default (default is no) |
USERCGI [0|1] | Support CGI from user directories for a virtual host or default |
ALLCGI [0|1] | Support CGI from non-user directories for a virtual host or default |
WWWROOT path | Root document directory for a virtual host or default |
CGIROOT path | Root CGI directory for a virtual host or default |
USERROOT path | Root user directory for a virtual host or default |
DIRECTORY path | Set the physical directory for a virtual host or default |
ALLOW [GET|PUT|POST|DELETE]+ | Specify allowed operations (default is GET & POST) |
LANG language[,...] | List of languages supported |
AUTH [userid|*] | Require a userid to log in and read |
NOAUTH | Don't require a userid to log in and read |
MAUTH [userid|*] | Require a userid to log in and get modify access |
NOMAUTH | Don't require a userid to log in and get modify access |
XAUTH [userid|*] | Require a userid to log in and get execute (CGI) access |
NOXAUTH | Don't require a userid to log in and get execute access |
PROXY port host:port | Proxy the given port to remote host and port combination |
HTTP_PROXY host:port | Proxy non-local HTTP to remote host and port combination |
BYPASSPROXY domain[,...] | Bypas proxy for given domains |
PERMIT [ip-address|hostname] | Grant 'ip-address' or 'hostname' rely access |
EXCLUDE [ip-address|hostname] | Deny 'ip-address' or 'hostname' relay access |
PROXYPERMIT [ip-address|hostname] | Grant 'ip-address' or 'hostname' access |
PROXYEXCLUDE [ip-address|hostname] | Deny 'ip-address' or 'hostname' access |
MAPMIME .html text/htmlMany common types are pre-defined (see ifweb.sam) if not specified here, but can be overidden or new types added.
MAPCGI .py python -uinstructs the system to run Python scripts using the 'python' program with the '-u' (unbuffered) option. Note: it is not necessary under Windows to specifiy .EXE extenxion on the program.
ISAPI .pl perlis.dllinstructs the system to run Perl scripts using the 'perlis.dll' ISAPI DLL. Using ISAPI faster throughput is possible than with loading and running an executable for each request.
PERMIT 10.* PERMIT domain.com PERMIT *.research.mydomain.com
Use the "ORDER PERMIT EXCLUDE" (the default) or "ORDER EXCLUDE PERMIT" to specify processing options.
EXCLUDE 10.0.*.0 # Training room EXCLUDE bdlg3.mydomain.comwill deny a certain subnet access.
Use the "ORDER PERMIT EXCLUDE" (the default) or "ORDER EXCLUDE PERMIT" to specify processing options.
PROXYPERMIT 10.* PROXYPERMIT 192.168.* PROXYPERMIT 127.0.0.1
Use the "ORDER PROXYPERMIT PROXYEXCLUDE" (the default) or "ORDER PROXYEXCLUDE PROXYPERMIT" to specify processing options.
EXCLUDE bdlg3.mydomain.comwill deny a certain subnet proxy access.
Use the "ORDER PROXYPERMIT PROXYEXCLUDE" (the default) or "ORDER PROXYEXCLUDE PROXYPERMIT" to specify processing options.
<VDIR /demo> DIRECTORY ../inetpub/demo AUTH * </VDIR> <VHOST test.mydomain.com> <VDIR /demo> DIRECTORY ../inetpub/demo-test AUTH progs AUTH sales </VDIR> </VHOST> <VHOST dev.mydomain.com> <VDIR /demo> DIRECTORY ../inetpub/demo-dev AUTH progs ALLOW GET+POST+PUT+DELETE </VDIR> </VHOST>
Note: this path can be a relative path. Forward slashes ('/') are allowed under Windows.
Note: this path can be a relative path. Forward slashes ('/') are allowed under Windows.
Note: this path can be a relative path. Forward slashes ('/') are allowed under Windows.
<VUSER test> ALIAS u101 <VDIR /demo> AUTH * </VDIR> <VDIR /dev> AUTH progs </VDIR> </VUSER>
<VHOST domain1> <VUSER test> <ALIAS u101 </VUSER> </VHOST> <VHOST domain2> <VUSER test> <ALIAS u102 </VUSER> </VHOST>
<VDIR /demo> DIRECTORY ../inetpub/demo ALLOW GET+POST+PUT+DELETE AUTH demo </VDIR>If a <VDIR> definition occurs outside of a <VHOST> definition it applies to the default host. If it occurs inside then it applies to that host only.
Note: this path can be a relative path. Forward slashes ('/') are allowed under Windows.
WWWROOT ../inetpub/wwwroot LANG fr-BE,fr,de,enwill map anyone coming in with their language set to 'fr-BE' to the directory '../inetpub/wwwroot-fr-BE', anyone with language set to 'fr-*' or 'fr' to '../inetpub/wwwroot-fr', anyone with language set to 'de' to '../inetpub/wwwroot-de' etc. All others will go to '../inetpub/wwwroot' as the default. This allows a web-site to customise it's appearance without first asking the user to make a choice. Note: the order on this keyword is not important, what matters is the order of preference set in the client's browser and whether or not the named adorned directory actually exists.