Re: Python web server weirdness SOLVED

2018-06-08 Thread Gregory Ewing
Steven D'Aprano wrote: Never mind -- it turned out I had an "index.html" file in the directory which had been wget'ed from LiveJournal. That's okay, then. The other possibility was that your computer had been recruited into an evil botnet set up by LiveJournal to create backup servers for

Re: Python web server weirdness

2018-06-07 Thread Steven D'Aprano
On Thu, 07 Jun 2018 13:32:10 +, Steven D'Aprano wrote: > python3.5 -m http.server 8000 [...] Thank you to everyone who responded, pointing out that I should check for an index.html file. That was exactly the problem. And yes, I acknowledge that my original post was lacking in some

Re: Python web server weirdness

2018-06-07 Thread Tim Chase
On 2018-06-07 13:32, Steven D'Aprano 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

Re: Python web server weirdness

2018-06-07 Thread Ed Kellett
On 2018-06-07 14:32, Steven D'Aprano 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

Re: Python web server weirdness SOLVED

2018-06-07 Thread Steven D'Aprano
On Thu, 07 Jun 2018 13:32:10 +, Steven D'Aprano wrote: [...] > 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. Never mind -- it turned out I had an "index.html" file in the directory which had

Re: Python web server weirdness

2018-06-07 Thread Grant Edwards
On 2018-06-07, Steven D'Aprano 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

Re: Python web server weirdness

2018-06-07 Thread Grant Edwards
On 2018-06-07, Steven D'Aprano 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

Python web server weirdness

2018-06-07 Thread Steven D'Aprano
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