Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 26 Aug 2016, 19:37
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
A Simple HTTP Server
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
labbe5

Joined: 13 Nov 2013
Posts: 530
Location: Canada

PostPosted: Thu 07 Jul 2016, 10:18    Post subject:  A Simple HTTP Server
Subject description: How to create a simple HTTP server
 

http://pclosmag.com/html/Issues/201607/page09.html

The PC LinuxOS Magazine has an article about how to create a simple HTTP server.

This is a summary :

To set up a temporary, very simple, HTTP server for any directory in your /home directory, follow these instructions.

Open a terminal and cd to the directory of choice.

Issue the following command:

python -m SimpleHTTPServer

You can then access the contents of that directory using a browser pointed at the IP address of the PC at port 8000.

192.168.3.12:8000 as an example, from any PC on the LAN.

You can also access the directory from the same machine (not very useful) using

http://127.0.0.1:8000

or

http://localhost:8000
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 10984
Location: Stratford, Ontario

PostPosted: Thu 07 Jul 2016, 10:52    Post subject:  

There is a GUI front-end for SimpleHTTPServer here.
Back to top
View user's profile Send private message 
Uten


Joined: 29 Jan 2008
Posts: 105

PostPosted: Thu 07 Jul 2016, 19:16    Post subject:  

We can also use (at least on FatDog64-702 ).
Code:
busybox httpd -f -p 8080 -h /root/spot

If memory serves me right not all flavors of puppy / busybox has the httpd applet compiled in.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 10984
Location: Stratford, Ontario

PostPosted: Fri 08 Jul 2016, 09:49    Post subject:  

Uten wrote:
If memory serves me right not all flavors of puppy / busybox has the httpd applet compiled in.

You need to provide all the config stuff needed by an HTTP server. The Python app works OOTB.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0524s ][ Queries: 11 (0.0118s) ][ GZIP on ]