Python Forum
How to Create a web server pointing to a folder using python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: How to Create a web server pointing to a folder using python (/thread-1044.html)



How to Create a web server pointing to a folder using python - pras120687 - Nov-29-2016

Hi,

Please help me in creating the webserver pointing to a folder using python programming.

At present am using cmd line argument 

python -m SimpleHTTPServer 8888

But now i want to implement using python code.


RE: How to Create a web server pointing to a folder using python - nilamo - Nov-29-2016

Twisted is pretty good. But really, if you're serving static/flat files, you should use something that's been doing that for a while, like nginx or apache.