PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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 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 : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

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 4th July 2018, 17:15

More on this

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

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

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