I have an index.html on the folder where SimpleHTTPServer is running, but depending on the value of a URL GET parameter I want to show a directory listing instead. Is that possible? I was trying to query the root directory using ajax, but it returns index.htmlby default.
I guess one possible option is to rename index.html to something like main.html and never use index.html.
You can override do_GET() and catch the path and parameter you are interested in, and do the right thing from there.