“Ad-hoc webserver” for static files on UNIX/MacOSX?

前端 未结 4 1643
你的背包
你的背包 2021-01-31 14:32

Is there such a thing as a tiny little webserver that I can invoke from the command line that just fetches files from the local filesystem and serves them via HTTP on specific p

4条回答
  •  青春惊慌失措
    2021-01-31 15:22

    Apache HTTPD is built into Mac OS X - just switch on 'Web Sharing' in the Sharing Preferences.

    To make it also work over port 8080, you'd need to add some configuration. See this article on Serverfault for starting point.

提交回复
热议问题