OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Python web server weirdness


On 2018-06-07, Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote:
> I'm following the instructions here:
>
> https://docs.python.org/3/library/http.server.html
>
>
> and running this from the command line as a regular unprivileged user:
>
> python3.5 -m http.server 8000
>
> What I expected was a directory listing of my current directory.
>
> What I got was Livejournal's front page.

That's very odd. What I get is the message below:

$ python3.5 -m http.server 8000
Serving HTTP on 0.0.0.0 port 8000 ...

-- 
Grant Edwards               grant.b.edwards        Yow! I invented skydiving
                                  at               in 1989!
                              gmail.com