15 lines
476 B
PHP
15 lines
476 B
PHP
# Loaded in http context, only referenced by the txiaw virtual host.
|
|
# Original request_uri is used so rewritten article URLs are not homepage traffic.
|
|
map $request_uri $txiaw_home_path {
|
|
default 0;
|
|
~^/(index[.]php)?([?]|$) 1;
|
|
}
|
|
map $args $txiaw_home_random_arg {
|
|
default 0;
|
|
~(^|&)r(=|&|$) 1;
|
|
}
|
|
map "$request_method|$txiaw_home_path|$txiaw_home_random_arg|$http_user_agent" $txiaw_home_cc_block {
|
|
default 0;
|
|
"~^(GET|HEAD)[|]1[|]1[|][[:space:]]*$" 1;
|
|
}
|