solero / wand

Docker setup for Houdini
MIT License
91 stars 38 forks source link

404 error #16

Closed Tairex777 closed 3 years ago

Tairex777 commented 3 years ago

I'm trying to use a virtual machine to run wand, I have it set to Bridged Adapter so I can access it from the network. All I get is:

404 Not Found
nginx/1.17.10

when going to the destination. I have tried adding /old and /play to the URL, but it isn't working.

Note: I will use example IP addresses. I will use 1.1.1.1 for the computer I'm connecting from and 2.2.2.2 for the virtual machine. Error from terminal

2021/09/24 06:35:22 [error] 16#16: *1 "/usr/share/nginx/legacy//old/index.html" is not found (2: No such file or directory), client: 1.1.1.1, server: 2.2.2.2, request: "GET / HTTP/1.1", host: "2.2.2.2"

I have noticed a double slash there, but I don't know how to remove it.

Settings from .env file

WEB_PORT=80
WEB_HOSTNAME=2.2.2.2
WEB_LEGACY_PLAY=http://2.2.2.2/old
WEB_LEGACY_MEDIA=http://2.2.2.2/legacy
WEB_VANILLA_PLAY=http://2.2.2.2/play
WEB_VANILLA_MEDIA=http://2.2.2.2/media
GAME_ADDRESS=2.2.2.2
GAME_LOGIN_PORT=6112

Leaving it on localhost and accessing from the VM gives me a CORS error in the Console of the Inspector. Any ideas as to what I'm doing wrong? Note: All of the IP addresses are LAN IP addresses and not public ones.

Tairex777 commented 3 years ago

I got around this by modifying the hosts file of the machine I want to access it from.