Aaron Mulder on 10 Sep 2018 15:18:33 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Big list of http static server one-liners


Dang, I thought this was going to be a big list of system admin humor.

Thanks,
       Aaron
On Mon, Sep 10, 2018 at 6:16 PM JP Vossen <jp@jpsdomain.org> wrote:
>
> Cool: https://gist.github.com/willurd/5720255
>
> To get on this list, a solution must:
> 1. serve static files using your current directory (or a specified
> directory) as the server root,
> 2. be able to be run with a single, one line command (dependencies are
> fine if they're a one-time thing),
> 3. serve basic file types (html, css, js, images) with proper mime types,
> 4. require no configuration (from files or otherwise) beyond the command
> itself (no framework-specific servers, etc)
> 5. must run, or have a mode where it can run, in the foreground (i.e. no
> daemons)
>
> Some samples:
>         $ busybox httpd -f -p 8000
>         $ python -m SimpleHTTPServer 8000       # Python 2.x
>         $ python -m http.server 8000            # Python 3.x
>
> Later,
> JP
> --  -------------------------------------------------------------------
> JP Vossen, CISSP | http://www.jpsdomain.org/ | http://bashcookbook.com/
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug