Move the mod_cgi files to /cgi/
parent
b267791199
commit
decb3f15f6
|
@ -542,7 +542,7 @@ def cgi_app(environ, start_response):
|
||||||
else:
|
else:
|
||||||
url = environ['PATH_INFO'][1:]
|
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(':'):
|
if url.startswith(':'):
|
||||||
split = url.split('/', 1)
|
split = url.split('/', 1)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
AddHandler cgi-script .py
|
AddHandler cgi-script .py
|
||||||
Options +ExecCGI
|
Options +ExecCGI
|
||||||
|
|
||||||
ErrorDocument 404 /morss.py
|
ErrorDocument 404 /cgi/main.py
|
||||||
ErrorDocument 500 "A very nasty bug found his way onto this very server"
|
ErrorDocument 500 "A very nasty bug found his way onto this very server"
|
||||||
|
|
Loading…
Reference in New Issue