![]() I used port 8000 above but you can chose any port you want, although any port number below 1024 may give you permission denied errors if not executing as root. Or if you have a brand new Mac with macOS 12 Monterey, the below configuration steps should help you set up your local web server on the macOS platform. Then open a web browser at This command will start a single threaded HTTP server bound to 0.0.0.0, the (simple) implications of which are that it is able to respond to internal and external requests. Python 2 - python -m SimpleHTTPServer 8000.Execute the command to start the server.Navigate to the directory you want to have the root directory. ![]() Note: If you don’t have Python installed (most likely you’re on Windows), get an installer from You can see the list of the locations of configuration. Lighttpd Install it via homebrew brew install lighttpd Create a configuration file called lighttpd. Click on Applications > Utilities, double-click on Terminal. ![]() Not a new trick by any means, but if you need a simple HTTP Server to serve files from directory, Python makes this easy. The httpd, by default, reads the configuration files after start. MacOS has the Apache web server pre-installed to turn it on, do the following: Click on Finder. Create a HTTP server with one command thanks to Python
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |