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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -