9
edits
m (→..using Nginx) |
m (→..using Nginx: improve readability) |
||
Line 142: | Line 142: | ||
location ~ ^/([^/]*_all_|mw|random|search|skin|suggest)(.*)$ { | location ~ ^/([^/]*_all_|mw|random|search|skin|suggest)(.*)$ { | ||
# Choose these links as "Home" pages within respective wikis (adjust to your needs) | # Choose these links as "Home" pages within respective wikis (adjust to your needs) | ||
rewrite ^/wikipedia_de_all_nopic_2014-11/$ | rewrite ^/wikipedia_de_all_nopic_2014-11/$ "$0"A/Würmeiszeit.html break; | ||
rewrite ^/rezeptewiki_de_all_2014-06/$ "$0"A/html/L/ä/u/t/Läuterzucker.html break; | |||
rewrite ^/rezeptewiki_de_all_2014-06/$ | |||
# Skip logging certain uris (each tex formula is a png in zim files..) | # Skip logging certain uris (each tex formula is a png in zim files..) | ||
Line 159: | Line 157: | ||
location / { | location / { | ||
# For "Library" link of Kiwix Server to work ( | # For "Library" link of Kiwix Server to work (adjust HOSTNAME to your.setup.tld) | ||
valid_referers "~(localhost|kiwix|HOSTNAME|([0-9]+.){3}[0-9]+)(|:[0-9]+)/[^/]*_all_"; | valid_referers "~(localhost|kiwix|HOSTNAME|([0-9]+.){3}[0-9]+)(|:[0-9]+)/[^/]*_all_"; | ||
if ($invalid_referer != 1) { | if ($invalid_referer != 1) { |
edits