Move the mod_cgi files to /cgi/

master
pictuga 2015-04-07 09:36:00 +08:00
parent b267791199
commit decb3f15f6
2 changed files with 2 additions and 2 deletions

View File

@ -542,7 +542,7 @@ def cgi_app(environ, start_response):
else:
url = environ['PATH_INFO'][1:]
url = re.sub(r'^/?morss.py/', '', url)
url = re.sub(r'^/?(morss.py|main.py|cgi/main.py)/', '', url)
if url.startswith(':'):
split = url.split('/', 1)

View File

@ -1,5 +1,5 @@
AddHandler cgi-script .py
Options +ExecCGI
ErrorDocument 404 /morss.py
ErrorDocument 404 /cgi/main.py
ErrorDocument 500 "A very nasty bug found his way onto this very server"