Last Updated: February 25, 2016
· briandfoy

Use App::HTTPThis for a quick static web server

Sometimes I need to quickly serve a directory of static file, perhaps for JavaScript libraries, things I want to get through AJAX while I test, or many other little tasks that are too small to set up a proper web server. There are many Perl web frameworks that can spin up a web server, and even more modules that allow me to set up a small web server. I consistently forget whatever it was I did last time and keep thinking when I figure it out this time, I should make a shell alias. I never seem to remember that part though.

To make this easy, Pedro Melo created the App::HTTPThis Perl module, which provides a program called http_this. All the details are hidden behind that program.

prompt$ http_this
Exporting '.', available at: 

Now, there is it. I can browse that directory in my browser.

2 Responses
Add your response


Command python -m SimpleHTTPServer dont do that? Run in your terminal and start a simple http server. Run sweet in MAC machines.

over 1 year ago ·

I imagine that there are many tools out there from a variety of languages. That's a good one too, I guess.

over 1 year ago ·