title: Start an apache server in any directory from command line
body: <p>I want to be able to start an apache server from the command line, typing something like <code>apache site-folder</code> or <code>apache . --port=2000</code></p>
  
  <p>This should read and use <code>.htaccess</code> files.</p>
  
  <p>I know about <code>python -m SimpleHTTPServer</code> and it's close to what I need, but not quite.</p>
  
  <p>Ideal solutions:</p>
  
  <ol>
  <li>Contributing a great command line interface to apache itself</li>
  <li>Writing a simple command line tool that wraps/contains apache (or something)</li>
  <li>Linking to docs on an existing cli for apache</li>
  </ol>
  
  <p>I just want to type <code>command &lt;Directory&gt; --port=8000 --other-options</code></p>
  
  <p>The command name could also be <code>pache</code></p>
  
  <p>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 <a href="https://github.com/nodejitsu/forever" rel="noreferrer">forever</a></p>
  
  <p>Relevant links: <a href="http://httpd.apache.org/docs/2.4/programs/httpd.html" rel="noreferrer">http://httpd.apache.org/docs/2.4/programs/httpd.html</a></p>
  
  <h3>Also</h3>
  
  <p>It should be only one command for anyone to install the script for immediate use</p>