Ask Your Question

The most minimal web server for my Laptop?

asked 2015-03-09 19:04:16 -0500

Kanada gravatar image

Hello. I am looking for experienced advice on a single issue. Of the competitors to the current Apache web server, I don't remember the names of them, in the compatible repositories for Fedora 20 which of them is the lightest? It need not do anything but serve "/var/www/" directories and html files upon request. Tutorials, especially with emphasis on security, are very welcome.

As some background I am going to install a web server to run in the background on my laptop as a no fuss means to share files any network I connect to. Most of the time it will have zero load on it and at most two or three simultaneous connections.

Thanks for your time.

edit retag flag offensive close merge delete



There are better ways to share files than set up a web server. Why not use FTP or samba shares that are specifically designed for this process? Please note that this isn't a Fedora specific question and is probably a lot more suited to a generic forum such as stackoverflow and friends.

FranciscoD_ gravatar imageFranciscoD_ ( 2015-03-10 06:43:42 -0500 )edit

If I can get a web server running inside the same hardware foot print then it's a better solutions for sharing data one way. This goes back to client side and network specific configuration issues. On a network that is truly mixed or ad-hoc nothing is easier then a web server once configured.

Kanada gravatar imageKanada ( 2015-03-10 18:53:47 -0500 )edit

I don't understand what you mean by "the same hardware footprint" - do you mean same hardware, or the same resources? Using a webserver is not the best way, for one, placing files into /var/www requires you to have root access - a non root user cannot do this.

I also hope you've first looked at other methods before you claim that "nothing is easier than a webserver once configured." Gnome, for example, provides sharing capabilities out of the box with Gnome3 - I'm quite sure that is easier and preferred than setting up a web server.

FranciscoD_ gravatar imageFranciscoD_ ( 2015-03-11 04:41:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-10 16:17:01 -0500

To transfer pdfs to an ipad I have often found hosting an impromptu webserver quite useful. I use python:

python -m SimpleHTTPServer 8080

In fact, what I do is I have an alias for zsh so that I can navigate into a folder type serveup and it will host my folder and tell me where I'm likely to find it on the network.

alias serveup='echo "SERVING UP:\nPossible addresses..." && ifconfig | grep "inet " && python -m SimpleHTTPServer 8080'

I grep for my IP addresses (often I have multiple connections) and then run the python thing but the alias means I don't have to type all that stuff

edit flag offensive delete link more


I've never used python or "alias". I'll look into your suggestion though because it appears to be very promising.

Kanada gravatar imageKanada ( 2015-03-10 18:56:14 -0500 )edit

Question Tools

1 follower


Asked: 2015-03-09 19:04:16 -0500

Seen: 419 times

Last updated: Mar 10 '15