Skip to main content

Create localhost webserver simple http server

Using PYTHON
$ python -m SimpleHTTPServer 8000
This will start a webserver listening on port 8000 and serving files from the current directory.

Using PYTHON 3
python -m http.server

Using PHP
$ php -S localhost:8000

Using Ruby with Rack
$ rackup -b "run Rack::Directory.new('.')"

    Comments

    Popular posts from this blog

    AIOMgr: Preparing flush failed with VERR_NOT_SUPPORTED, disabling async flushes

    Create Virtual Host in IIS Server

    The model type is invalid. please select an item from the list ( ASP.Net MVC)