Simple & Fast Python Web Hosting From Any Folder On Linux
Page 1 of 1
Simple & Fast Python Web Hosting From Any Folder On Linux
Simple & Fast Python Web Hosting From Any Folder On Linux
A function for .bashrc
Open a new terminal and goto folder you wish then type:
Change port to what you want but remember port forwarding and firewall rules!
- 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
Re: Simple & Fast Python Web Hosting From Any Folder On Linux
More on this
linuxjournal.com/content/tech-tip-really-simple-http-server-python
linuxjournal.com/content/tech-tip-really-simple-http-server-python
Similar topics
» Linux Record Desktop Function & Serve Current Folder Via Python Web Server
» Simple Python Relay Switch For Door Unlock
» Watch A Folder For Changes With Bash On Linux
» Securing Your Linux Web Server Folder Access By IP
» windows xp and linux samba sharing folder shares
» Simple Python Relay Switch For Door Unlock
» Watch A Folder For Changes With Bash On Linux
» Securing Your Linux Web Server Folder Access By IP
» windows xp and linux samba sharing folder shares
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|