Your question has nothing to do with Backtrack!
More follows the link That Will help you! As a tip, always read the documentation for the software you want to use!
20.19. SimpleHTTPServer â€” Simple HTTP request handler — Python v2.7 documentation
Copy the code to the bottom of this page!