Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Looking for a simple webserver

Options
  • 28-10-2012 6:44pm
    #1
    Registered Users Posts: 218 ✭✭


    For a little project I'm developing. I want to be able to serve the contents of a particular directory and browse from the local network without the hassle of setting up apache.

    Something like:
    $ serve --port 8080 code/project/www
    


Comments

  • Moderators, Technology & Internet Moderators Posts: 37,485 Mod ✭✭✭✭Khannie


    Lighttpd

    edit: I think python can do this very, very handy.


  • Registered Users Posts: 218 ✭✭Tillotson


    OSI wrote: »
    cd /directory/of/files/to/serve
    python -m SimpleHTTPServer
    

    Perfect, I have python3 installed as default so the command is:
    python -m http.server
    


Advertisement