How to change port from 8000 on simplehttpserver in linux?
Asked
Active
Viewed 1.1k times
8
-
1Please tell me you at least *tried* a cursory google search before posting this question? – EEAA Apr 12 '11 at 02:27
-
2@EEAA My google search took me here! – Eric Wilson Apr 07 '15 at 22:47
2 Answers
18
The following was found in the first result for a google search for "simplehttpserver".
$ python -m SimpleHTTPServer <port_number>

EEAA
- 109,363
- 18
- 175
- 245
-
5And now the first google result for "simplehttpserver change port" is this page – Steve Blackwell Jan 09 '14 at 03:22
0
I also needed to know about this but realized that I was using the simplehttpserver
package installed from npm
(though internally it still uses the python version). I found out a bit more about the package here: https://github.com/tikonen/blog/tree/master/simplehttpserver. Although not mentioned in the docs, a quick read-through of the code points to the answer.
Here is what I found: simplehttpserver <-b bindhost> <-p port> <-m mimetype> <webroot>

Andrew McOlash
- 101
- 1