exweserv.exe <name of config file>
Field types used in configuration | |
---|---|
integer value | Any integer value |
string value | Any string value (without any quotes, if quoted, the quotes become part of the string) |
boolean value | 1 means yes, 0 means no. (actually positive integer means yes and anything else no) |
authentication record |
You can have multiple these records, each specifying one valid username with password for user/password based access Format is login:type:password type specifies password type (0=plaintext, 5=md5) If no passwords are specified, access is allowed to everybody, otherwise only to one of users logging in with their passwords |
IP record | IP address in format X.X.X.X or address range in format X.X.X.X-Y.Y.Y.Y. The second address should be greater than first. This is used with allow/ban configuration records, when used, the records are traversed from last to first and first record specifying either allow or ban for remote address is used. If no ban/allow record of given type is found in configuration for given address, access is granted. Note: you can specify "all" in this record - it is same, as if you write 0.0.0.0-255.255.255.255 You can specify ban=all to ban everyone and then under this line allow only specific IP's |
Code | ... will be replaced with: |
%% | character: % |
%{Field} | Field from http request headers |
%a | remote IP address |
%B | response length in bytes (amount of data send without headers) |
%m | request method (GET, POST, ...) |
%q | query string (without ?) |
%r | first line of request |
%s | response code (200, 206, ...) |
%t | time in format (day/month/year:hour:minute:second) |
%u | username (with http authentification) |
%U | URL |
%v | webroot |
%a - %u [%t] "%r" %s %B
Field | Meaning |
mask |
You can use these characters in mask: *=any nymber (0 or more) of any characters ?=any 1 character Any other characters must match corresponding characters in filename If file matches mask, rule is used. If file matches multiple masks, only first rule in order is used and then the evaluation is stopped |
| set mime-type for this type of file. If mime-type for file is not specified, is is taken from table hardcoded in server |
action |
Can have folowing values: forbid : send error message "Forbidden" instead of file (HTTP code 500) exec : file will be run on server (cgi) execnph : file will be run on server (nph-cgi) sendnph : file will be send without adding any HTTP headers (useful if file contain already all headers) With sendnph anyhing from incoming headers is ignored (specifically method and Range) |
parameter | if action is exec or execnph, thes specifies an interpreter. It is then launched and its first parameter will be the filename, instead of launching the file directly (useful for perl scripts, etc ....) |
install.en.txt | Installation instructions |
description.en.txt | Decription of program |
changelog.en.txt | Changelog |
gpl.txt | License for using program (GPL) |