# The access module is used to deny access to files.
Options
url.access-deny
Denies access to all files with any of given trailing path names.
Default value:empty
access.deny-all
Denies access to all files.
Note: access.deny-all should be used with a conditional to limit it (only from lighty 1.5x)
-----
"mod_accesslog",
accesslog.filename
name of the file where the accesslog should be written to if syslog is not used.
if the name starts with a '|' the rest of the name is taken as the name of a process which will be spawned and will get the output
e.g.:
if you have multiple workers on 1.4.x (now, the current version) and want all access logs to be written (without that, only one worker will write logs), use accesslog.filename = "\|/usr/sbin/cronolog.."
Default: disabled
"mod_alias"
The alias module is used to specify a special document-root for a given url-subset.
e.g
and additional locations can be added
The alias module is used to specify a special document-root for a given url-subset.
e.g
and additional locations can be added
Trailing slashes are stripped from the url before matching an alias.
i.e. the alias "/content/ => "/dirtocontent/" will not match the url "/content/";
it matches only something like "/content/somefile" or "/content/somesubdir/".
So in most cases you shouldn't use a trailing slash on the left side,
but DO use it on the right side!):
e.g. "/content" => "/dirtocontent/"
Now
"/content_x1/" is mapped to "/dirtocontent/_x1",
"/content/" -> "/dirtocontent/" and
"/content/somefile" -> "/dirtocontent//somefile" (yes, double slash).
If you don't use it on the right side too,
"/content_x1/" is mapped to "/dirtocontent_x1"
which you probably don't want.
alias.url = (
"/aa" => "/domain_aa_site/"
"/somewhere/else" => "/other/docroot/"
)
# "mod_auth",
# "mod_cgi",
# "mod_cml",
# "mod_compress",
# "mod_evasive",
# "mod_evhost",
# "mod_expire",
# "mod_extforward",
# "mod_fastcgi",
# "mod_flv_streaming",
# "mod_magnet",
# "mod_mysql_vhost",
# "mod_proxy",
# "mod_redirect",
# "mod_rewrite",
# "mod_rrdtool",
# "mod_scgi",
# "mod_secdownload",
# "mod_setenv",
# "mod_simple_vhost",
# "mod_ssi",
"mod_status",
# "mod_trigger_b4_dl",
# "mod_userdir",
# "mod_usertrack",
# "mod_webdav"
No comments:
Post a Comment