python - Apache: ScriptAlias as a child of an Alias -
i want wsgiscriptalias under alias. e.g.
/appa/ returns static website.
/appa/api/ runs python module.
i have set in httpd.conf
alias /appa /source/appa/web/ wsgiscriptalias /appa/api /source/appa/bin/api.py/
but when browsing http://localhost/appa/api 404 not found.
renaming wsgiscriptalias appb/api works.
any ideas how achieve i'm looking for?
to meet requirement used aliasmatch instead of alias. e.g.
aliasmatch (?i)^/appa^(api)(.*) /source/appa/web$1 wsgiscriptalias /appa/api /source/appa/bin/api.py/
aliasmatch uses regex map requests other /appa/api request.
Comments
Post a Comment