Start an apache server in any directory from command line
apache, command-line-interface, static-files, static-site, staticfilehandler
Solution
`http-server` is a much better simple http server than pache, it's what I use currently! :)
Use [pache][1]
Install with npm - which comes with node here: http://nodejs.org/
sudo npm install pache -g
Run on current dir, port 3000:
pache
Or specify directory and port:
pache site-directory 2000
[1]: https://github.com/devinrhode2/pache
Problem
I want to be able to start an apache server from the command line, typing something like `apache site-folder` or `apache . --port=2000` This should read and use `.htaccess` files. I know about `python -m SimpleHTTPServer` and it's close to what I need, but not quite. Ideal solutions: - Contributing a great command line interface to apache itself - Writing a simple command line tool that wraps/contains apache (or something) - Linking to docs on an existing cli for apache I just want to type `command <Directory> --port=8000 --other-options` The command name could also be `pache` At some point I may want to use this in production. It should be easy to send the process to the background, and then stop that instance or all instances, like forever Relevant links: http://httpd.apache.org/docs/2.4/programs/httpd.html Also It should be only one command for anyone to install the script for immediate use