I am writing a small website, but I do NOT want to figure out how to install and configure complete LAMP stack to test the website from my ~/home
directory. That will be completely disruptive and unnecessary.
All I want is to have a directory, e.g. ~/home/Documents/Website
and run a small web server from that folder as the website's "home" folder.
I know Jekyll can do something similar, but it only seems to work with Ruby/Jekyll-based sites that it builds and configures.
Isn't there some small web server program that I can easily install and then just run very simply?
For instance, if I just needed to run something like e.g. simple-server serve ~/home/Documents/Website
from a command line and then navigate to e.g. localhost:4000
or whatever to test the site, that would be perfect.
If this is already possible in Ubuntu and I just don't know how, please let me know.
php
python
or plainhtml
? – Dan Sep 05 '14 at 19:33html
andcss
. I might want to addNodeJS
in the future, but then I will have a different set-up. – etsnyman Sep 05 '14 at 19:46file://
address rather than ahttp://
address. Some links and small Javascript snippets simply do not work. – etsnyman Sep 05 '14 at 19:58http://
rather thenfile://
you need a web server. Apache is most common, there are others, nginx, use any one you wish. I am not familiar with Jekyll, but if you have experience with it, use it. – Panther Sep 05 '14 at 20:10