Simple & Fast Python Web Hosting From Any Folder On Linux

Go down

Simple & Fast Python Web Hosting From Any Folder On Linux Empty Simple & Fast Python Web Hosting From Any Folder On Linux

Post by jamied_uk on 4th July 2018, 17:14

Simple & Fast Python Web Hosting From Any Folder On Linux


Code:
cd /home/somedir
python -m SimpleHTTPServer

A function for .bashrc


Code:
function quickweb(){
python -m SimpleHTTPServer
}


Open a new terminal and goto folder you wish then type:

Code:
quickweb


Change port to what you want but remember port forwarding and firewall rules!


Last edited by jamied_uk on 4th July 2018, 17:19; edited 2 times in total
jamied_uk
jamied_uk
Admin

Posts : 2466
Join date : 2010-05-09
Age : 36
Location : UK

http://address-shortner.co.uk

Back to top Go down

Simple & Fast Python Web Hosting From Any Folder On Linux Empty Re: Simple & Fast Python Web Hosting From Any Folder On Linux

Post by jamied_uk on 4th July 2018, 17:15

More on this

linuxjournal.com/content/tech-tip-really-simple-http-server-python
jamied_uk
jamied_uk
Admin

Posts : 2466
Join date : 2010-05-09
Age : 36
Location : UK

http://address-shortner.co.uk

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum