Skip to content

Invalid Host header #9926

@mathiasrettich

Description

@mathiasrettich

Hello,
I tried to install Scratch on a Debian 12 system.

Expected Behavior

http://localhost:8601 shows a Scratch page.
http://192.168.10.15:8601 shows a Scratch page.

Actual Behavior

But http://debian:8601 returns the message Invalid Host header.

Steps to Reproduce

I proceeded as follows:

# as root
# install node.js
apt-get update && apt-get -y dist-upgrade
apt-get install -y curl git
curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh
bash nodesource_setup.sh
apt-get install -y nodejs

# setup the location of the Scratch code
mkdir -p /usr/app
cd  /usr/app
npm install -g npm@11.4.2

# get the base Scratch code
git clone --depth=1 https://github.com/LLK/scratch-vm.git
git clone --depth=1 https://github.com/LLK/scratch-gui.git

# build Scratch vm
cd /usr/app/scratch-vm
npm install
npm ln

# build Scratch gui
cd /usr/app/scratch-gui
npm install
npm ln scratch-vm
npm start

System Details

I have Debian 12 installed in a virtual machine.

If this is the wrong place for such a question, I apologize.
Thanks in advance,
Mathias

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions