title: Java http server and web folder
body: <p>does anyone know how to create HTTP server in Java, but set default folder for web and than load files from it? I want to use <code>com.sun.net.httpserver</code> class. </p>
  
  <p>For example, I have folder named <em>abc</em> next to my java file. The java file runs HTTP server under port 8080. And if I open address <code>http://123.123.123.123:8080/</code> I want to see list of files from folder <em>abc</em>. In folder abc are some files, eg. <em>image.jpg</em>. So I want to open in my browser address to image file, like <code>http://123.123.123.123:8080/image.jpg</code>. This way I can open all other files from folder <em>abc</em> (also subfolders, files in subfolders etc.). </p>
  
  <ol>
  <li>Is it possible to create this HTTP server?</li>
  <li>Would it be somehow possible to run PHP files in the folder?</li>
  </ol>
  
  <p>Thank you very much for your answers.</p>