Closed babadoctor closed 1 year ago
Do you have index.html
in your root folder? What is the last modification date of it? I can reproduce the error if I manually set the modification date of index.html
to some nonsense (e.g. using touch -d '1937-01-31 8:46:26' index.html
on Linux).
Do you have
index.html
in your root folder? What is the last modification date of it? I can reproduce the error if I manually set the modification date ofindex.html
to some nonsense (e.g. usingtouch -d '1937-01-31 8:46:26' index.html
on Linux).
I am running a hugo static webpage and in the root directory of the webpage I am running http-server, and it seems to work.
The index.html file is in a folder within the root directory called "public".
I'm just going to chalk this up to hugo doing something weird with the modification date of the files, and will resolve to not leave it running for extended periods of time.
Environment Versions
OS Type Linux diode 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux (debian bullseye)
Node version:
$ node --version
v12.22.12http-server version:
$ http-server --version
v14.1.1Steps to reproduce
sudo http-server -p 80 --log-ip
Expected result
runs like normal
Actual result
for some unknown reason http-server quits with error, this was caused when a vulnerability scanner did something to it and it crashed.
...
Other information